Skip to Content Skip to Menu

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

  • Hansueli
  • Hansueli
  • OFFLINE
  • Posts: 48
  • Thanks: 1
  • Karma: 0
10 years 7 months ago - 10 years 7 months ago #242255 by Hansueli
Hello friends
I am using a query field to concatenate some field to an Address.
Now I installed CB Privacy.
I works perfect for normal fields.
But how can I set it up that a user can set the privacy to a query field?
I see that there are Fields to edit it:
CB Privacy: “Field privacy preferences” and I also set the
Location Profile Edit and Profile View: to Enable.

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

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 #242297 by krileon
CB Query Field has no edit display, but CB Privacy has a feature to force profile edit display. This should allow the privacy controls to display. Edit your query field and set "Force Edit Display:" to "Enable".


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 #242361 by Hansueli
Thank you but
It works in the profile but it does not hide the query field in a list.

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 #242378 by krileon
Are you adding it to a list by adding it to a column like any other field or are you adding it to a list via a delimiter field in a substitution. If you use [FIELD_NAME] substitutions they will ignore the privacy check as it does not due privacy check for PHP output, which is the output that [FIELD_NAME] will use.


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 #242386 by Hansueli
I do not understand your question.
So I explain what I did:
I have a query:

“SELECT wv62b_comprofiler.cb_addres, wv62b_comprofiler.cb_addressline2,
If( IsNull( cb_zip1 ) or cb_zip1 = "" ,
CONCAT(cb_city ," ",cb_zip2 ), CONCAT( cb_zip1, " ", cb_city , " ",cb_zip2 )) AS zCz,
wv62b_comprofiler.cb_country
FROM wv62b_comprofiler
WHERE wv62b_comprofiler.user_id= [user_id]”

in the field I have:
Mode: Internal
Output: Single Row
Columns: Multiple
Display Delimiter / Div

Name cb_address
Titel: Address

Location
Registration: Disable
Profile Edit Disable ( if I set to Enable then I have no selection: Public/Private
Profil Viewer: Enabled
Userlist View: Enabled

CB Privacy: Field privacy preferences:
Display: user can control privacy
Default: Public
Edit Display: Normal CB settings
Force Edit Display: Enable



In the I defined in Colum 3: Address

rh
Attachments:

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 #242401 by krileon
A users self and CB Moderators will always see the field. Even if it's marked private. Are you testing your userlist while logged out?


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