Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

CB Auto Action to adjust privacy on fields

  • cjmicro
  • cjmicro
  • OFFLINE
  • Posts: 147
  • Thanks: 11
  • Karma: 1
9 years 3 months ago #267810 by cjmicro
joomla 3.3.6
CB 1.9

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.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48474
  • Thanks: 8281
  • Karma: 1443
9 years 3 months ago - 9 years 3 months ago #267852 by krileon
Replied by krileon on topic CB Auto Action to adjust privacy on fields
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.
Last edit: 9 years 3 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum