Hide or show the entire profile for registered users

3 years 2 months ago #323492 by Gruposenda
Hi Kyle, I already understood what would happen and this code has been perfect to solve the problem:
( ( SELECT COUNT(*) FROM `#__comprofiler_plugin_privacy` AS p WHERE p.`user_id` = u.`id` AND p.`asset` = 'profile' AND p.`rule` = 0 ) > 0 )

Thanks again for your help. Although the previous post was more than 2 years old, are you still trying to solve this case using a filter?

Best regards

Diego

Please Log in to join the conversation.

3 years 2 months ago #323499 by krileon

are you still trying to solve this case using a filter?

CB Privacy has to be heavily extended to modify the userlist query to exclude privacy protected users. It's something we're still working on as the privacy rules storage behavior needs to be improved first since the queries won't be optimized if we don't, which would result in slow userlists. That requires a storage rewrite of CB Privacy so it hasn't been a priority.


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.
The following user(s) said Thank You: Gruposenda

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.252 seconds

Facebook Twitter LinkedIn