PDA

View Full Version : Moderate new registrations with free email accounts only


Erwin
04-13-2002, 06:51 AM
At my site I have banned all free web-based email domain names like Hotmail or Yahoo.

However, it would be good if new members can still register with these banned email domains, but when they register they are automatically placed in a moderated usergroup until approval, whereas other new members registering with emails that are not banned would become registered immediately.

I tried implementing this myself, but no matter what I do, if an email address is in the ban list, it just would not be accepted.

Any ideas anyone?

Admin
04-13-2002, 06:53 AM
You'll need to comment out / delete this code from register.php:
if ($enablebanning and $banemail!="") {
if (stristr(" ".$banemail." "," ".$email." ")!="") {
eval("standarderror(\"".gettemplate("error_banemail")."\");");
exit;
}
if ($emaildomain=substr(strstr($email,"@"),1)) {
if (stristr(" ".$banemail." "," ".$emaildomain." ")!="") {
eval("standarderror(\"".gettemplate("error_banemail")."\");");
exit;
}
}
}
And then do whatever you did. :)

Erwin
04-13-2002, 06:57 AM
I'll give it a go again - I did that before, but got some errors. Thanks for the quick response. See, I don't use the COPPA system, so I was trying to modify the COPPA usergroup to turn that into the moderated free email group.

FlyBoy73
10-01-2003, 03:30 PM
Did this end up working? I know it is way old but thought I would check because it would be a great option for us as well.