Please Log in or Create an account to join the conversation.
Your current setup is correct except you need to use the after registration trigger and Value should be email substitution.1) I want the username to be a member's mail adres instead. So when they register the email adress should be saved as the username. I read that CB Auto Actions can do this and I think I'm fairly close. I've got the following:
Create a new action of type Code then use the after registration trigger (same as your first action), but ensure this action is ordered after your action that changes username. Now set method to PHP (create_function) and you can supply whatever PHP you need to call your other plugin.2) If this is possible, I'd like to send a setdata call to another plugin when someone changes their email adress, is this possible? If so, how can I achieve this?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You can disable this within CB > Configuration > User Profile.However the username can still be changed in the profile edit, is there any way I can prevent this?
Yes, you'd use the after profile update trigger.For the second part, would the trigger here be 'onAfterUserUpdate'? Or at least I would figure that is the trigger that happens when someone changes anything on their profile, is that correct?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.