Skip to Content Skip to Menu

[SOLVED] CB Privacy :How can a user set a query field to Private?

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242500 by krileon
Are you sure the fix was applied properly? I can not confirm your issue any further locally with the fix applied. I'm not sure what more to advise as it has been fixed for next release same as the quickfix provided. If you've any form of caching be sure the caching is purged so the page will update. Only alternative I can suggest is to enable display of empty fields again within CB > Configuration > User Profile and it should work fine in that case as well.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Hansueli
  • Hansueli
  • OFFLINE
  • Posts: 48
  • Thanks: 1
  • Karma: 0
10 years 7 months ago - 10 years 7 months ago #242516 by Hansueli
I am sure I fixed it properly.
Then I set: display empty fields and it is ok
But I cannot use this .it shows some fields I have to hide.

You can see it:
You can still log on as user “krileon”
You see the setup.
Then if you are not loged in you see the address field for “krileon”
And you see the list:
www.ifsda.org/index.php?option=com_comprofiler&task=usersList&listid=6
you see the changed file...
or dit i make a mistake?

[MOD EDIT]: Please do not attach subscriber content to these public forums.

rh
Last edit: 10 years 7 months ago by krileon.

Please Log in or Create an account to join the conversation.

  • Hansueli
  • Hansueli
  • OFFLINE
  • Posts: 48
  • Thanks: 1
  • Karma: 0
10 years 7 months ago #242539 by Hansueli
I changed to „to enable display of empty fields“
This is ok
In the meantime I hope for a release with the fix.
Thank you

rh

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242559 by krileon
Please try changing the proposed fix to the below.

Code:
$user->set( $fieldName, ' ' );

This will set the field value to space in all cases, which a lot of CB expects for a forced value hide. The quickfix only fixed if hide empty field was set and the empty value was set to '', but this defaults to -.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Hansueli
  • Hansueli
  • OFFLINE
  • Posts: 48
  • Thanks: 1
  • Karma: 0
10 years 7 months ago #242586 by Hansueli
Fix to
$user->set( $fieldName, ' ' );
on Line 148 ??

rh

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 7 months ago #242587 by krileon
Yes, on line 148 set it to that then retry. It'll force the output to a space which will hide its value. If still not working then something else is interfering with CB Privacy as again I can not confirm your issue locally with the fixes provided.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum