HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


v6 & Custom Profile Field

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#67379 (In Topic #14367)
Avatar

Community saint

Custom Profile Field are no longer displayed to users unless they are mandatory fields

I installed the ocUsermap plugin (after the v6 upgrade if sequence info is important) and can not see any of the custom fields unless I make them mandatory fields.

Note that I used the v5 version of the plugin as the v6 files appear to be corupt and give a "This file is not an addon for the website software" error during install.

In v5.0.3, all fields are displayed as expected, so this looks like a v6 upgrade issue rather then a plugin issue.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67390
Avatar

Just ran a test, seemed to work for me. So the fields have public and owner view permissions and are not blank for the user being viewed, right? Can admins see them? It's not due to privacy settings set on those fields right? (through the privacy module)


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67391
Avatar

Community saint

Chris Graham said

Just ran a test, seemed to work for me. So the fields have public and owner view permissions and are not blank for the user being viewed, right? Can admins see them? It's not due to privacy settings set on those fields right? (through the privacy module)
Permissions are fine,



And the privacy options at "Home > Admin Zone > Setup > Configuration > Privacy options" are all clear.

looks like the problem is just limited to the join screen.


Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67394
Avatar

Oh, it's always been like this, only required fields can be on the join form.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67397
Avatar

Community saint

Chris Graham said

Oh, it's always been like this, only required fields can be on the join form.

Ok. What's the logic behind that?

I think you're far more likely to get people to provide info on sign-up then hoping they will choose to edit their profile and provide the info at a later date. To me it is a missed oppertunity.

While you can encourage users to provide more info at a later date by telling/showing them how the info is going to be used, it can be harder to get that info from them later.

Date of birth I think is the classic. On sign-up if you make it mandatory you are likely to get many people putting just anything to get passed it. Make it optional and its likely that the people that filled it in have either given you an accurate date, or at least partially accurate year or year/month. If it is optional and you only collect it after sign-up, then you are unlikely to get valid dates at all.


Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67401
Avatar

It's just because we haven't broken core DB compatibility significantly since v4, and an OCF change is quite big. I definitely agree we would ideally have this option, which is why v6 has a hidden feature to enable it. Type this into OcCLE:

Code

:set_value('sep_cpf_join_setting','1');
then manually add a cf_show_on_join_form field on the ocp6_f_custom_fields table.
I believe then ocPortal then has full UI support for setting this. Obviously in the future when we break compatibility this will become normal without need to enable it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67407
Avatar

Community saint

Chris Graham said

 then manually add a cf_show_on_join_form field on the ocp6_f_custom_fields table.
I added the field to ocpo_f_custom_fields and the fields are now visible on the join form, but cause the following error:

Code

Unfortunately a query has failed [INSERT INTO ocpo_f_member_custom_fields (mf_member_id, field_34, field_35, field_1, field_7, field_8, field_9, field_10, field_11, field_12, field_13, field_14, field_15, field_16, field_17, field_18, field_19, field_20, field_21, field_22, field_23, field_24, field_25, field_26, field_27, field_28, field_29, field_30, field_31, field_32, field_33) VALUES (13, '444', '', 2973, 2974, '', 0, 0, '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, '', '', '')][Field 'field_2958' doesn't have a default value] (version: 6.0, PHP version: 5.2.9, URL: /cms/index.php?page=join&type=step3&redirect=http%3A%2F%2Fmydomain%2Fcms%2Findex.php%3Fpage%3Dstart)
See attachment for full stack trace.
Attachment
» Download: An error has occurred.doc (96 Kb, 253 downloads so far)

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67408
Avatar

Ah, you may need to edit the ocp6_member_custom_fields table so field_2958 has a default value defined (and so on for other CPFs that are required but not on the join form).


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67409
Avatar

Community saint

Chris Graham said

Ah, you may need to edit the ocp6_member_custom_fields table so field_2958 has a default value defined (and so on for other CPFs that are required but not on the join form).
This is getting stranger by the minute. I tried setting a default value for field_2958 through phpMyAdmin and it does not allow it.

Code

SQL query: ALTER TABLE `ocpo_f_member_custom_fields` CHANGE `field_2958` `field_2958` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'kkk' MySQL said: Documentation #1101 - BLOB/TEXT column 'field_2958' can't have a default value
And now if I try and create a new member I get the following error:

Code

Either you (“Guest”) have lost access between the time of the link you clicked appearing and now, you have found a bug, or you are jumping into URLs.
It's 2:45 am here. I think I'll call it a night.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67410
Avatar

Ah, that's a shame. It's not really a supported feature which is why I didn't mention it first.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67416
Avatar

Community saint

Chris Graham said

Ah, that's a shame. It's not really a supported feature which is why I didn't mention it first.

It was worth a try. I guess I'll just have to wait until it becomes official  ;)

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67676
Avatar

FYI I am aiming to resolve this in 6.0.2 (I've been reviewing popular outstanding requests today). I have not reproduced the problem yet but I think it will be fairly easy.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67680
Avatar

Community saint

Thats great news Chris :thumbs:

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67684
Avatar

Community saint

While your working in that area, is it possible to make the date of birth field optional. I want to make it an optional field for my users and I want to be able to then use the demographics feature and maybe birthday reminders.

As there is no date type for custom profile fields, adding my own custome birthdate field would be less then elegant, and I would not get access to the inbuilt date features mentioned above.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67701
Avatar

I'm forcing myself not to add features to the public distribution at this time. It's all about ecosystem stability (i.e. fixing things, not risking breaking things) for at least the next few months.
Commercially we can do anything, if that's an option for you.

I have added the DOB optionality request to the tracker:
0000251: Make date field optional - ocPortal feature tracker

The other request is covered in a wider project ambition we have:
0000137: CPF/catalogue field unification - ocPortal feature tracker


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67703
Avatar

I tried to reproduce this yesterday to fix it and actually I couldn't. I just found a different bug instead, which I did fix.

Actually the error does not seem to make much sense. It says field '2958' is not filled in. That's a very high CPF ID number, I very much doubt you've experimented up to having created thousands of fields.
To compound this, the code pre-fills all CPFs with the defaults, and then overwrites those that were filled in on the form – so there's no scope for gaps, the code isn't trying to be too smart about it.

Is there a field ID #2958 in the f_custom_fields table? If not, maybe you just need to get rid of the field_2958 column from your f_member_custom_fields table as it would apparently have come from somewhere mysterious I can't explain.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#67711
Avatar

Community saint

Chris Graham said

I'm forcing myself not to add features to the public distribution at this time. It's all about ecosystem stability (i.e. fixing things, not risking breaking things) for at least the next few months.
Completely understand.

Chris Graham said

Commercially we can do anything, if that's an option for you.
Sure, I have a budget of 350 ocPortal points for such a fix  :lol:

But in all seriousness, this is just for a hobby site, so my budget is $0.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#67712
Avatar

Community saint

Chris Graham said

Actually the error does not seem to make much sense. It says field '2958' is not filled in. That's a very high CPF ID number, I very much doubt you've experimented up to having created thousands of fields.
Correct, I've barely touched it.

Chris Graham said

Is there a field ID #2958 in the f_custom_fields table? If not, maybe you just need to get rid of the field_2958 column from your f_member_custom_fields table as it would apparently have come from somewhere mysterious I can't explain.
Nope, only fields 1-35 in the f_custom_fields table. I have already deleted field_2958 from the f_member_custom_fields table.

Do you have a Samsung Galaxy S / Galaxy S II ? If so, why not check out my ScreenFree FM Radio .
Back to the top
 
Posted
Rating:
#74205
Avatar

Community saint

temp-

I have the same issue with the birthdate. Since this is a community site I was hoping to get birthdates to acknowledge birthdays but some of the early visitors took exception with the required date (even the ability to not display age did not assuage them). I was forced to turn off the collection of birthdates.

This really needs to be an optional field in the standard distribution.

Bob
Back to the top
 
Posted
Rating:
#74210
Avatar

There is a hidden option you can enable to make birth dates optional now. It's listed with the other hidden options in the codebook, and can be set via OcCLE.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Expand