group reaches a number of users free membership.

10 years 10 months ago #226714 by camppos
On GroupJive I want to be able to invite using other field other than the 4 listed (user id, username, name, email) Is there any way to do that.


I have a membership site that charge 10 per month if and when a group reaches a certain number of users for instance 12 can a owner of such group get a free membership? If that is possible, how can I do that with CBsubs?

Thank you,

Jesus

Please Log in to join the conversation.

10 years 10 months ago #226767 by krileon

On GroupJive I want to be able to invite using other field other than the 4 listed (user id, username, name, email) Is there any way to do that.

No.

I have a membership site that charge 10 per month if and when a group reaches a certain number of users for instance 12 can a owner of such group get a free membership? If that is possible, how can I do that with CBsubs?

You can't. GJ has no feature to limit the number of users in a group. You'd need to develop such an integration as a CB plugin that acts on GJs triggers then use a CBSubs plan to increase the limit, which could be stored to a separate database table to keep track of what user has what limit.


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 to join the conversation.

10 years 10 months ago #226783 by camppos
Thank you Krileon for your response. My interest is not on limiting the number of users in a group just once it reaches a 12 user the owner group could get the free membership.

Please Log in to join the conversation.

10 years 10 months ago - 10 years 10 months ago #226845 by krileon
Oh, I see. Yes, that can be done. Using CB Query Field you can query the GJ database table to count the amount of users in a users group(s). Once done you can use this as a conditional in CBSubs Promotions to give the user a discount. Example query as follows.
SELECT COUNT(*) FROM `#__groupjive_users` WHERE `group` IN ( SELECT `id` FROM `#__groupjive_groups` WHERE `user_id` = '[user_id]' )

Note the above counts every user in every group the user owns. So if they own 3 groups it'll count the users in all 3.

Next you'll add a conditional as follows to your CBSubs Promotion.

First condition: This condition
Date A, Field A or Value A: Constant Value or String (CB substitutions can be used)
Value A: [cb:userfield field="cb_myqueryfield" /]
Date B, Field B or Value B: Constant Value or String (CB substitutions can be used)
Value B: 11
Condition 1 (> for Dates): A > B (Value A is larger than Value B )


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.205 seconds

Facebook Twitter LinkedIn