Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

[SOLVED] Action Action configuration help

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 5 months ago - 11 years 5 months ago #230888 by krileon
Replied by krileon on topic Action Action configuration help

So, for example, after registration, user is automatically assigned to the Joomla usergroup "agent-basic", then I also want "agent-basic" populated to the cb_usertype field.

You need 2 actions for this. Please see the below examples.

Type: Usergroup
Trigger: onAfterUserRegistration
Access: Everybody
Mode: Add Usergroup
Groups: agent-basic

Type: Field
Trigger: onAfterUserRegistration
Access: agent-basic
Field: cb_usertype
Operator: Set
Value: agent-basic

You don't really need the first action though if you intend on making everyone basic at time of registration as you can set the registration usergroup within Users > User Manager > Options. If you set everyone to basic by default then all you need is the below.

Type: Field
Trigger: onAfterUserRegistration
Access: Everybody
Field: cb_usertype
Operator: Set
Value: agent-basic


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 5 months ago by krileon.

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

  • msws
  • msws
  • OFFLINE
  • Posts: 10
  • Thanks: 1
  • Karma: 0
11 years 5 months ago #230905 by msws
Replied by msws on topic Action Action configuration help
Hi, thanks for your patience with me. I followed your configuration directions. I used the second set only. Still is not working. After registration, the user is not assigned automatically to the ACL- they just go into the "Registered" bucket.

I took two screen shots, one of my auto action config, and one of the user manager to show you that they are not in agent-basic as the auto action "instructs".
Attachments:

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48616
  • Thanks: 8302
  • Karma: 1446
11 years 5 months ago #230928 by krileon
Replied by krileon on topic Action Action configuration help
In my first example you need to use two actions (a Usergroup and a Field action). The field action should be ordered directly below the usergroup action so it applies second as it's testing for the usergroup to exist, which it does not in your current case because you only configured the Field action. Please review my above reply carefully. The value you're setting the field to also doesn't appear valid, is it intentional that it's surrounded by brackets as it's not a valid substitution.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum