Skip to Content Skip to Menu

CBsubs and ACL group

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 6 months ago - 10 years 6 months ago #244133 by dotcom22
CBsubs and ACL group was created by dotcom22
I have 2 group Registered (Joomla default which is a child of Public group) and a custom Professional group (child of Public too) and I want make it independent.

Then I have set 2 plan "Standard" and "Professional" and in Access tab of my plans, I have set relative group for setting "Subscribers User access level settings". Now when I subscribe as Standard I'm well assigned in the Registered group but when I subscribe as Professional I'm assigned in both Registered AND Professional group.

How to do for assign Professional plan users only in the Professional group ?? I suppose is possible if I set the Professional group to be a child of Registered group but is not what I want because in that case Professional will have also access to stuff planned for Registered.

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 10 years 6 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244175 by krileon
Replied by krileon on topic CBsubs and ACL group
CBSubs indeed won't remove the previous usergroup like that unless that subscription actually becomes expired. I recommend CB Auto Actions to control your usergroups instead of CBSubs until we can upgrade the CBSubs usage. To do this with CB Auto Actions you'll need the below trigger and conditionals.

Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To A

Plan Expired
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To PLAN_ID_HERE
Conditional 2: [var2] Equal To X

Replace PLAN_ID_HERE with the actual ID of your plans. You can also opt to have 2 Plan Activate actions that use Replace mode in the Usergroup action that'll replace all existing usergroups with whatever groups are selected.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
10 years 6 months ago #244215 by dotcom22
Replied by dotcom22 on topic CBsubs and ACL group
Not sure to have well understand the Action setup. I must use a "Usergroup" Action right ? I did not understand also if I must keep or not the desired usergroup in the Access Plan tab.

I have 2 free lifetime plan Standard (ID 1) and Professional (ID 2). So I suppose I don't need to set an Expired action because even if I introduce later some others plans, users will no move from their usergroup.

Then I tried to setup this action:

Plan Active
Triggers: onCPayUserStateChange
User: Automatic
Access: Everybody
Conditional 1: [var3] Equal To 2
Conditional 2: [var2] Equal To A
Mode: Remove usergroup
Group: Registered


But with this instead to remove Registered group it remove my custom Professional group. I don't understand also what is the second condition and the value "A".

any clue ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 6 months ago #244234 by krileon
Replied by krileon on topic CBsubs and ACL group

Not sure to have well understand the Action setup. I must use a "Usergroup" Action right ?

Yes.

I did not understand also if I must keep or not the desired usergroup in the Access Plan tab.

You can leave it set to Everybody as the conditionals are handling the plan state checking.

I have 2 free lifetime plan Standard (ID 1) and Professional (ID 2). So I suppose I don't need to set an Expired action because even if I introduce later some others plans, users will no move from their usergroup.

Be sure you're using the # under the ID column on the far right.

But with this instead to remove Registered group it remove my custom Professional group.

Be sure CBSubs and CB Auto Actions aren't both trying to control the usergroups as there could be some odd conflicts.

I don't understand also what is the second condition and the value "A".

That's the plan state. It means the "Registered" usergroup will be removed when the Plan of ID 2 becomes Active.


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.
The following user(s) said Thank You: dotcom22

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

Moderators: beatnantkrileon
Powered by Kunena Forum