Skip to Content Skip to Menu

group reaches a number of users free membership.

  • camppos
  • camppos
  • OFFLINE
  • Posts: 27
  • Thanks: 1
  • Karma: 0
11 years 6 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
11 years 6 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 or Create an account to join the conversation.

  • camppos
  • camppos
  • OFFLINE
  • Posts: 27
  • Thanks: 1
  • Karma: 0
11 years 6 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 or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
11 years 6 months ago - 11 years 6 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.
Code:
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.
Last edit: 11 years 6 months ago by krileon.

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

Moderators: beatnantkrileon
Powered by Kunena Forum