Skip to Content Skip to Menu

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

CBSubs with two user groups

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 9 months ago #218153 by activha
CBSubs with two user groups was created by activha
We need to have CBSubs plan affect users to two user groups.

Can you help me achieve this ? For now I have only find out how to affect users to a group, but doing this remove users from other groups.

We should be able to add to several groups and remove from several groups, all this on selection

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago #218195 by krileon
Replied by krileon on topic Re: CBSubs with two user groups
If you're on J1.5 then you can't have two user groups. If you're on J2.5+ for example then CBSubs should already be just appending the usergroup as it doesn't do replacements on J2.5+. You can't currently select to add or remove multiple usergroups as such usage is not implemented, but it is planned for a later release.


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.

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 9 months ago #218201 by activha
Replied by activha on topic Re: CBSubs with two user groups
Nice for the future releases ! :-)

We need paying users for a special plan to be added to two usergroups, would you have a suggestion for now ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48454
  • Thanks: 8280
  • Karma: 1443
11 years 9 months ago - 11 years 9 months ago #218207 by krileon
Replied by krileon on topic Re: CBSubs with two user groups
CB Auto Actions, the latest release now includes CBSubs triggers in the dropdown. Example configuration as follows.

Trigger: onCPayUserStateChange
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A

Now use whatever action you want (for example the usergroup action). var2 is the subscription status, so you can reverse the usergroups by checking that it's not equal to A, which is active. var3 is just the plan id, which you match against so it only applies to a certain plan.

This basically gives you the full power of CB Auto Actions combined with CBSubs. The above trigger is the same one we use in many of the integrations (can be reviewed in CBSubs 3.0 GPL).


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 9 months ago by krileon.
The following user(s) said Thank You: activha

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

  • activha
  • activha
  • ONLINE
  • Posts: 2327
  • Thanks: 117
  • Karma: 13
11 years 9 months ago #218307 by activha
Replied by activha on topic Re: CBSubs with two user groups
OK will give it a try
Thanks

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

Moderators: beatnantkrileon
Powered by Kunena Forum