Do you have a way to auto set group based on email address?
Like if user has email using domain aaa.com or bbb.com, the set group to private1. And if user has domain ttt.com set group to private2 and so on? Do you think it is possible? Like this could be managed on registration, but still needs approval? Unfortunatelly I cannot let customers see options of groups at the registration page.
I believe we can write a custom code snippet that checks the domain of the email, and then based on the domain assigns a specific group as you described.
I didn't fully understand what you are looking for regarding approval: do you still want to use manual approval? In that case would this only serve to pre-select a group before approval ? Or were you saying that you'd like to use automatic approval in the case of those specific email domains?
Thanks for getting back. Yes, that is correct, it is for pre-select a group before approval. This way it makes it more fool proof since the "manager" of the site is not used to handle it.
Hi
Do you have a way to auto set group based on email address?
Like if user has email using domain aaa.com or bbb.com, the set group to private1. And if user has domain ttt.com set group to private2 and so on? Do you think it is possible? Like this could be managed on registration, but still needs approval? Unfortunatelly I cannot let customers see options of groups at the registration page.
Hello Johan,
I believe we can write a custom code snippet that checks the domain of the email, and then based on the domain assigns a specific group as you described.
I didn't fully understand what you are looking for regarding approval: do you still want to use manual approval? In that case would this only serve to pre-select a group before approval ? Or were you saying that you'd like to use automatic approval in the case of those specific email domains?
Kind regards,
Stefan
Hi
Thanks for getting back. Yes, that is correct, it is for pre-select a group before approval. This way it makes it more fool proof since the "manager" of the site is not used to handle it.
Great, thank you for confirming that,
To achieve this, please add the following PHP code snippet to your site:
In this code there are 2 default options there "gmail.com" and "yahoo.com", which go to group IDs 308 and 567.
You would need to replace the email domains (the ending part of the email), as well as replace the group IDs.
The group ID of each group is the number in the URL when you edit that group in the backend (e.g. ?post=308)
Let me know if you have any issues with that,
Kind regards,
Stefan