[SOLVED] CBSubs Subscribers User access level

11 years 6 months ago - 11 years 6 months ago #212560 by pwerner
Hello

cb 1.81
j 2.5.6
cbsubs 2.0.2

I am trying to change the user group based on subscriptions.

My ACL is Public > Registered > Free
> Paid

The current workflow is when someone registers, they are moved into the "Registered" group. When joining a subscription I have set in the Paid Subscriptions > Plans > Access > Subscribers User access level to change their group from "Registered" to either "Free" or "Paid", depending on the plan.

Under user management, I can see that Subscription has been changed to free or paid but the User Group is still "Registered"

Have I misunderstood the Paid Subscriptions > Plans > Access > Subscribers User access level and whats its supposed to accomplish? If so is there an alternate solution?

Or maybe its a configuration conflict? Has anyone done this with success? I can set up someone with login/password

Thanks

Please Log in to join the conversation.

11 years 6 months ago #212576 by krileon
Replied by krileon on topic Re: CBSubs Subscribers User access level
Where is your new usergroup located in the usergroups tree? Examples of working and non-working as follows (this is a bug!).

Non-Working
Public
- Subscriber
- Moderator
- - Administrator
- Registered
- - Author

Working
Public
- Moderator
- - Administrator
- Registered
- - Author
- - Subscriber


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.

11 years 6 months ago #212590 by pwerner
Replied by pwerner on topic Re: CBSubs Subscribers User access level
Krileon,

This is our current tree

Public
|- Registered
|- - Free
|- - Paid
|- Super Users

Please Log in to join the conversation.

11 years 6 months ago #212592 by krileon
Replied by krileon on topic Re: CBSubs Subscribers User access level
Is your free plan a free lifetime plan? If so please ensure within CBSubs > Settings > Global that free lifetime plans are configured to create subscriptions for users.


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.

11 years 6 months ago #212596 by pwerner
Replied by pwerner on topic Re: CBSubs Subscribers User access level
I have now changed "Create Subscriptions also for free lifetime plans" under the global tab in CBSubs settings to "Yes"

Tested both a Free sub and Paid sub but they still stay in the "Registered" group.

Will PM login credentials

Please Log in to join the conversation.

11 years 6 months ago #212657 by krileon
Replied by krileon on topic Re: CBSubs Subscribers User access level
You deleted all the default usergroups. Please do not do this. This should be less of an issue with future releases of CB, but as is CB expects them to exist.

I've corrected your usergroup permissions removing Public access to backend and fixing Registered as well as its child groups to have frontend login.

You'll need to re-create your usergroups. Notice "Registered" has an ID of "21". This should be "2". Please run the below query on your database to correct usergroups then test if working.
INSERT INTO `jos_usergroups` (`id`, `parent_id`, `lft`, `rgt`, `title`) VALUES (2, 1, 6, 19, 'Registered'), (3, 2, 7, 14, 'Author'), (4, 3, 8, 11, 'Editor'), (5, 4, 9, 10, 'Publisher'), (6, 1, 2, 5, 'Manager'), (7, 6, 3, 4, 'Administrator');
DELETE FROM `jos_usergroups` WHERE `id` = 21;
UPDATE `jos_usergroups` SET `parent_id` = 2 WHERE `id` = 19;
UPDATE `jos_usergroups` SET `parent_id` = 2 WHERE `id` = 20;
UPDATE `jos_user_usergroup_map` SET `group_id` = 2 WHERE `group_id` = 21;
UPDATE `jos_viewlevels` SET `rules` = '[6,3,13,8]' WHERE `title` = 'Special';
UPDATE `jos_viewlevels` SET `rules` = '[6,2,8]' WHERE `title` = 'Registered';
UPDATE `jos_viewlevels` SET `rules` = '[1]' WHERE `title` = 'Public';
UPDATE `jos_viewlevels` SET `rules` = '[2,20,8]' WHERE `title` = 'Free';
UPDATE `jos_viewlevels` SET `rules` = '[19,8]' WHERE `title` = 'Paid';

Note if your prefix is not jos_ please adjust as needed. Please backup before running. It will move your "Paid" and "Free" usergroups for you as well. It will also move users from the new Registered (21) back to the default (2). It also will correct the view access levels. So should be a run and done situation.

Will PM login credentials

For future reference do not PM me credentials unless I specifically ask for them. Install review is only done if I suspect a bug or it can't be debugged through posts.


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.185 seconds

Facebook Twitter LinkedIn