Skip to Content Skip to Menu

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

Limit groups in GroupJive 3.0

  • LnG
  • LnG
  • OFFLINE
  • Posts: 37
  • Thanks: 2
  • Karma: 0
8 years 11 months ago - 8 years 11 months ago #272919 by LnG
Limit groups in GroupJive 3.0 was created by LnG
Hi, is it possible to limit users to only be in 1 group at a time?

Im using groups as teams and a user can only be in one team, the player has to leave his current team to be able to join a new team. I can only find where to limit the number of groups that can be created by a user.
Last edit: 8 years 11 months ago by LnG.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #272959 by krileon
Replied by krileon on topic Limit groups in GroupJive 3.0
No, it has no functionality to limit users to 1 group. There are no plans for such a feature at this time as it would increase the access checks for join links across the entirety of GJ, which would also require a query to do it resulting in a performance loss on nearly every GJ display.


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.

  • LnG
  • LnG
  • OFFLINE
  • Posts: 37
  • Thanks: 2
  • Karma: 0
8 years 11 months ago - 8 years 11 months ago #272961 by LnG
Replied by LnG on topic Limit groups in GroupJive 3.0
Ok :) I guess I could just remove the user from his previuos group when he joins a new with AutoAction query and "Before Join Group" as trigger.
Last edit: 8 years 11 months ago by LnG.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #272969 by krileon
Replied by krileon on topic Limit groups in GroupJive 3.0
You could have a CB Query Field that counts the number of groups they're in. Then using a Redirect action on the gj_onBeforeJoinGroup trigger to check if the count is greater than or equal to 1. If it is you can redirect them away, which should prevent the ->store from being called so they won't be able to join another group at all until leaving their current.


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.

  • LnG
  • LnG
  • OFFLINE
  • Posts: 37
  • Thanks: 2
  • Karma: 0
8 years 11 months ago #272984 by LnG
Replied by LnG on topic Limit groups in GroupJive 3.0
Thank you, I will try that because it sounds like the best solution.

I also had another question, since only GJ 3.0 beta works on my website, can I install that on my live website and later update to the normal version when its released? The old GJ did not work at all with the newest CB, but the beta works almost perfect.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
8 years 11 months ago #273017 by krileon
Replied by krileon on topic Limit groups in GroupJive 3.0
Yes, you can install the beta and upgrade to RC then subsequently stable when released. Just please keep in mind it is a beta and using a beta on a live site is not recommended.


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