i have set all fields to private, but we have a field that users check to say whether they want their profile public. Is there an action I can choose to automatically update the privacy of all fields on those users who checked "yes" ? Then of course they can always edit privacy later, but would like to get them all updated at once.
User has checked cb_directory = Yes
Privacy of all fields that have privacy settings get switched to "public" instead of "private"
Thanks for any assistance. Otherwise I will have to go in and change each field individually.
You could use a query action on the after profile update trigger and update all their privacy rows in _comprofiler_plugin_privacy. I however recommend upgrading to CB 2.x and latest CB Privacy and just using the Profile Privacy field, which handles protecting the entire profile in addition to various fields. I don't recall if CB 1.x release of CB Privacy has this feature.
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.