Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

CB Auto Actions - add users to two different Joomla ACL groups

7 years 9 months ago - 7 years 9 months ago #292389 by sagebr1874
Hi, I am using CB Auto Actions to add users to two different Joomla ACL groups, Alumni or Seniors, I have set this up so that this action happens on register. But its not working. The users still stay in the registered group, I have been at this for 2 days and I am at a loss. I am using radio buttons on the registration form. There is no error output to add even with error reporting to max. I am using Joomla 3.6. Could someone give me a place to start looking?

I used this tutorial: www.joomlapolis.com/documentation/18219-cb-auto-actions-changing-approval-workflow-based-on-cb-field-value
Last edit: 7 years 9 months ago by sagebr1874.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
7 years 9 months ago - 7 years 9 months ago #292423 by krileon
That tutorial changes the approval state of users. Has nothing to do with assigning ACL. Your usage is a relatively simple case though and should be easily done with the following.

Global
Triggers: onAfterUserRegistration
Type: Usergroup
User: Automatic
Access: Everybody
Conditions
1: [FIELD_NAME] Equal To VALUE_TO_MATCH_HERE
Action
Mode: Replace Usergroups (since you want to get rid of Registered)
Groups: SELECT_USERGROUP_HERE

You'll need 2 actions since you want to assign 2 different usergroups based off 2 different conditions. I don't know your field names and values, but below is an example based off guessing.

Global
Triggers: onAfterUserRegistration
Type: Usergroup
User: Automatic
Access: Everybody
Conditions
1: [cb_profiletype] Equal To Alumni
Action
Mode: Replace Usergroups
Groups: Alumni


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum