Skip to Content Skip to Menu

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

[SOLVED] user privacy

10 years 11 months ago - 10 years 10 months ago #237625 by prophotodx
[SOLVED] user privacy was created by prophotodx
I want to have a public list of users if the user sets their profile to public, how do I do that? I have "Allow Link to Profile" set to yes and CB Privacy plugin installed. I set a superadmin user to private but users can still click on the username in the default list.
Last edit: 10 years 10 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 11 months ago - 10 years 10 months ago #237647 by krileon
Replied by krileon on topic user privacy
CB Privacy protects direct profile access only. Beyond that it does not protect API access to fields unless you configure it to. It will not remove users from lists. Privacy settings are stored to _comprofiler_plugin_privacy. So you should be able to add a filter to your userlist like the below example to filter it to public users only.

Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_plugin_privacy` AS p WHERE p.`type` = 'profile' AND p.`user_id` = u.`id` AND `rule` = 0 ) > 1 )

Note the above is just an example. I have no tested it. Adjust as needed.


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: 10 years 10 months ago by krileon.

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

10 years 10 months ago #238678 by prophotodx
Replied by prophotodx on topic user privacy
Getting this error

If difficulties persist, please contact the System Administrator of this site and report the error below.

1054 Unknown column 'p.userid' in 'where clause' SQL=SELECT COUNT(DISTINCT u.id) FROM lis1_users u JOIN #_user_usergroup_map g ON g.`user_id` = u.`id` JOIN #_comprofiler ue ON ue.`id` = u.`id` WHERE u.block = 0 AND ue.approved = 1 AND ue.confirmed = 1 AND g.group_id IN (-2, -1, 1, 9, 6, 7, 2, 3, 4, 5, 8) AND (( ( SELECT COUNT(*) FROM `#_comprofiler_plugin_privacy` AS p WHERE p.`type` = 'profile' AND p.`userid` = u.`id` AND `rule` = 0 ) > 1 ))

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 10 months ago #238702 by krileon
Replied by krileon on topic user privacy
Whoops, it's user_id not userid. Again, I did not test it and it's just an example. Adjust as needed.


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.

10 years 10 months ago #238710 by prophotodx
Replied by prophotodx on topic user privacy

krileon wrote: Again, I did not test it and it's just an example. Adjust as needed.


Working after that adjustment...I'm not a programmer otherwise I probably would have caught it...

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

Moderators: beatnantkrileon
Powered by Kunena Forum