Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime
🎉 Black Friday sale is here! Great savings on professional and developer memberships! Get 25% off now with code BLACK-FRIDAY-2024!

Exclude users group from a List

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
6 years 3 weeks ago #308459 by AlanJones
Exclude users group from a List was created by AlanJones
So I have a list for a church directory that displays all members. However, we want to exclude a few people that need access to the site from this master list. In my thinking, I was going to create a user group called "non-member" and then find a way to exclude "non-members" from this list. How would I do something like this.

Own Your Own Community!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
6 years 3 weeks ago #308461 by nant
Replied by nant on topic Exclude users group from a List

AlanJones wrote: So I have a list for a church directory that displays all members. However, we want to exclude a few people that need access to the site from this master list. In my thinking, I was going to create a user group called "non-member" and then find a way to exclude "non-members" from this list. How would I do something like this.


Just create a cb field checkbox field for excluding members and use that to filter your user list.

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

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
6 years 2 weeks ago #308595 by AlanJones
Replied by AlanJones on topic Exclude users group from a List
Can you give me an example of the code I would use to do that please?

Own Your Own Community!

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

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
6 years 2 weeks ago #308607 by nant
Replied by nant on topic Exclude users group from a List

AlanJones wrote: Can you give me an example of the code I would use to do that please?


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

  • AlanJones
  • AlanJones
  • ONLINE
  • Posts: 510
  • Thanks: 42
  • Karma: 2
6 years 13 hours ago #308872 by AlanJones
Replied by AlanJones on topic Exclude users group from a List
I cannot seem to generate the right query. The name of my field is cb_specialnonmember

How can I sort out all members who have this box checked?

Own Your Own Community!

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48560
  • Thanks: 8292
  • Karma: 1445
5 years 11 months ago #308881 by krileon
Replied by krileon on topic Exclude users group from a List
Edit your userlist within CB > List Management then under Filters be sure Basic is selected. Next for Field select cb_specialnonmember, for operator select Not Equal To, and for the value input 1. That should filter out any user that has the field checked.


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