Skip to Content Skip to Menu

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

Auto Actions Add Usergroup adding to wrong group

  • shardis89
  • shardis89
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 2
8 years 8 months ago #278569 by shardis89
Since upgrading to CB 2.0.13 from CB 1.9 my Auto Actions Add usergroup adds the wrong user to the wrong usergroup. I use cb_usertype field to capture value and then want auto action to add user to that group. However, the action is picking the wrong group. any ideas?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #278597 by krileon
It can only adds exactly what you've selected. Please provide your exact auto action configuration. You may have issues with user object chaining and need to enable reload user under the parameters tab of your action.


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.

  • shardis89
  • shardis89
  • OFFLINE
  • Posts: 3
  • Thanks: 0
  • Karma: 2
8 years 7 months ago #278833 by shardis89
Replied by shardis89 on topic Auto Actions Add Usergroup adding to wrong group
Under global tab I have "Triggers" set to onAfterUserRegistration
Type=Usergroup
User=Automatic
Access=Custom ACL: Everybody

Under Conditions Tab
Conditional enabled "YES" set to cb_usertype Equal To Agent where Agent is a selected parameter of custom field "cb_usertype" in the user registration.

Under "Actions" tab
Mode = Add Usergroups
Groups = Agent where Agent is a under the Registered Group

Under the "Parameters" tab
I have set Reload User to "Yes"

When a user registers and selects Agent in the Usergroup Field (i.e. cb_usertype) at registration it still only adds the user to the "Registered" group and not the "Agent". This applies to other selected parameters as well.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #278850 by krileon
Your condition is failing. You didn't supply a valid substitution so you're doing a literal string comparison of cb_usertype = Agent, which is always false. Your condition should be as follows.

[cb_usertype] Equal To Agent

Please note you can debug this and much more when creating actions. Enable debug mode and maximum error reporting in Joomla global configuration. Next under the Parameters tab of your action enable Debug. It'll output when a condition failed with the exact values it tried comparing in addition to any action configuration errors.


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: nant

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

Moderators: beatnantkrileon
Powered by Kunena Forum