Is there a way to setup dolphin or a mod to limit the registration for users having specific email address(es)?
For example: site accepts new registrar or registrations may occur for users having '@domain.com; @anotherdomain.net (john@domain.com) kind of addresses. Please advise.
I target members based upon specific email (Domain) address.
|
|
anyone know how to do this? |
Is there an easy way to limit new user registrations to only people with .edu email addresses?
I was thinking it might be possible in the Profile Field Builder -> Email -> Advanced Settings where it says the following:
return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@([a-z0-9\+\_\-\.]+)$/i', $arg0);
I am not a programmer, so I wouldn't know how to make the changes to that expression. Any help would be greatly appreciated.
Thanks,
|
|
hello - does anyone know how to limit registration by email address?
Thanks
|
In the [admin panel -> builders -> fields builder] click on "Email" field, switch to Advanced tab and replace "Check" expression from
return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@([a-z0-9\+\_\-\.]+)$/i', $arg0);
to
return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@domain\.com$/i', $arg0);
Best Regards AntonLV - http://www.boonex.com/market/posts/AntonLV |
Two quick questions:
1) If I want it to be '.edu', do I simply change the 'com' to 'edu'? 2) Facebook Connect: Will this also limit people adding accounts using Facebook Connect?
Thanks for your help. I greatly appreciate it! |
Two quick questions:
1) If I want it to be '.edu', do I simply change the 'com' to 'edu'? 2) Facebook Connect: Will this also limit people adding accounts using Facebook Connect?
Thanks for your help. I greatly appreciate it!
1) Yes
2) No
https://www.deanbassett.com |
|
Maybe this was obvious, but I will post it anyhow
For those of you who aren't programmers, like myself, the expression should read:
return (bool) preg_match('/^([a-z0-9\+\_\-\.]+)@([a-z0-9\+\_\-\.]+edu)$/i', $arg0);
|