Use email instead username when user register

11 years 8 months ago - 11 years 8 months ago #209260 by dotcom22
Ok I found a solution:

1) Create a new Auto-Action Field like this:

Trigger: onAfterUserRegistration
Users: Automatic
Access: Everybody
Conditional: none except if needed
Operator: Set
Value: keep this field empty (for delete the value composed by formatname who is generated by CB)

2) Then Create another new Auto-Action Field like this:

Trigger: onAfterUserRegistration
Users: Automatic
Access: Everybody
Conditional: none except if needed
Operator: Set
Value: [firstname][user_id]

Is necessary to take care to put the first action before the second otherwise this will not work.

Can you please just confirm this setup is fine and will not have any side effect ?

thank

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
The following user(s) said Thank You: ZER01

Please Log in to join the conversation.

11 years 8 months ago #209263 by krileon
Why are you clearing the username before setting the username? I don't understand why the first action is necessary.


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

Please Log in to join the conversation.

11 years 8 months ago #209264 by dotcom22
sorry you reply to me during I write my solution. IN fact you right is not necessary to setup two action...one is sufficient.

- Create a new Auto-Action Field like this:

Trigger: onAfterUserRegistration
Users: Automatic
Access: Everybody
Conditional: none except if needed
Operator: Set
Value: [firstname][user_id]

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
The following user(s) said Thank You: ZER01

Please Log in to join the conversation.

11 years 8 months ago #209267 by krileon
Yup, that looks fine.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.221 seconds

Facebook Twitter LinkedIn