Skip to Content Skip to Menu

User Limitation

  • adhillon
  • adhillon
  • ONLINE
  • Posts: 104
  • Thanks: 6
  • Karma: 1
3 months 3 weeks ago #340409 by adhillon
Replied by adhillon on topic User Limitation
Not sure if I missed anything. I am not an advanced user, but it seems like it applies to single subscription.
FYI, we have two subscriptions; one allows max 100 users per community, and the other allows 500 users. 
How can we implement your solution for both subscription?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49288
  • Thanks: 8423
  • Karma: 1465
3 months 3 weeks ago #340418 by krileon
Replied by krileon on topic User Limitation
It currently is setup to apply to all groups. Add an additional condition as follows to condition the auto actions per group. So you'll need 4 auto actions in total to have different limits for each or to use IF conditions for the join limit, whichever works best for you.

Field: Custom > Value
Custom Value: [var2_id]
Operator: Equal To
Value: GROUP_ID_HERE

Replace GROUP_ID_HERE with the ID of your group from CB GroupJive > Groups.


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.

  • adhillon
  • adhillon
  • ONLINE
  • Posts: 104
  • Thanks: 6
  • Karma: 1
2 weeks 22 hours ago - 2 weeks 19 hours ago #341261 by adhillon
Replied by adhillon on topic User Limitation
Please ignore.
The question has been answered in this thread. I missed it. 
Last edit: 2 weeks 19 hours ago by adhillon. Reason: update.

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

  • adhillon
  • adhillon
  • ONLINE
  • Posts: 104
  • Thanks: 6
  • Karma: 1
2 weeks 18 hours ago - 2 weeks 18 hours ago #341262 by adhillon
Replied by adhillon on topic User Limitation
Its working now as intended, except one minor issue.
How do I specify the following variables in the "To" field when sending customized emails:
email address of user trying to join the group.
email address of user that owns the group.
Which email address does 'email' (in square brackets) refer to?
Last edit: 2 weeks 18 hours ago by adhillon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 49288
  • Thanks: 8423
  • Karma: 1465
1 week 6 days ago - 1 week 6 days ago #341268 by krileon
Replied by krileon on topic User Limitation
Substitutions will always be based off the action User parameter. If it's set to Automatic it will try to find a user object for the auto action and use them. If it doesn't find one it will be of the user who triggered the event. With gj_onBeforeJoinGroup that should be the user who is trying to join the group.

So to send to the user who is trying to join the group just leave To blank or use [user_id] or email as To works with both user ids and email addresses. To send it to the group owner then we'll need to take a look at the available variables in that trigger, which are the following.

Code:
$_PLUGINS->trigger( 'gj_onBeforeJoinGroup', array( &$row, $group, $user ) );


So in this case var1 is the GJ User, var2 is the GJ Group, and var3 is the CB User. So to send to the group owner you should be able to just use [var2_user_id] since the user_id of the group is always its owner.


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: 1 week 6 days ago by krileon.

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

  • adhillon
  • adhillon
  • ONLINE
  • Posts: 104
  • Thanks: 6
  • Karma: 1
1 week 5 days ago #341269 by adhillon
Replied by adhillon on topic User Limitation
Thank you.
That works, as we want to notify the group owner and recommend upgrading to the paid subscription.
The following user(s) said Thank You: krileon

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

Moderators: beatnantkrileon
Powered by Kunena Forum