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] Auto usergroup after registration... :s

8 years 3 months ago #283402 by pierre2bzh
Hi the team,
I am sorry to post here but I read:
- your tutorial: www.joomlapolis.com/documentation/18237-cb-auto-actions-assigning-usergroup-based-on-cb-field-value
- lots of threads in this forum
but I still have this annoying problem: I can not obtain an auto usergroup after registration.

joomla 3.5
CB 2 Pro

My question is::
I have 3 main groups with Registred as Parent:
-Registred
--group1
--group2
--group3
In the CB registration form, I have a fied called "cb_typedecompte": it is a dropdown menu with "group1", "group2" and "group3" as propositions (only one choice).

So, I created with Auto Actions:
- Usergroup
- Automatic
- Everybody
- OnAfterUserRegistration
- [cb_typedecompte] egal to group1 , yes
- add usergroup, group1

But when I do a new registration with selecting "group1" in the dropdow field, the user is registred in the group "registred" and not in the group "group1".
That's really weird because I've the feeling to do right...
What's wrong? :s

Thank you very much, I become crazy... :s
Pierre

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283428 by krileon
Ensure CB Auto Actions is public and published within CB > Plugin Management. If it is enable debug mode and maximum error reporting in Joomla global configuration then edit your action and under Parameters enable Debug. Now retest frontend registration (your action is acting only on frontend). It'll output debug information if the action or the conditions failed.


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.

8 years 3 months ago - 8 years 3 months ago #283441 by pierre2bzh
Thanks Krileon to be always present for subscribers! :) I always try a lot of things before disturbing you but it is really pleasant to find you when a problem persists.
I checked: public / published.
And before trying the debug mode, I found something:
the ordering of the Auto Actions.
When I change to the first position, it works! But I hope my last first plugin will still work and I am a little but worry because I have the same plugins for other groups and all can not be in first, so I hope it will work nevertheless! :) and I have other plugins running (autologin, welcome email (for html emails), acymailing in regitration.
With this message, I just wanted to give a clue if other people have the same problem. :)
I'll give you my feedback soon! :)
Thanks
Last edit: 8 years 3 months ago by pierre2bzh.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48459
  • Thanks: 8280
  • Karma: 1443
8 years 3 months ago #283448 by krileon
Order is very important depending on what exactly you're doing. 1 action could be overriding the user store of another. To fix this if you've multiple actions acting on the user object like Usergroup or Field actions then be sure to enable user reloading under parameter and that should prevent your issue.

Another case where order is important is a redirect or redirect from auto login before your user object change. If you redirect before the user object change then the action doing that change (e.g. adding new usergroups) will never execute.


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

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

Moderators: beatnantkrileon
Powered by Kunena Forum