In vBulletin 3.0x, I could insert this code in register.php to restrict registrations to my organization's e-mail domain:
PHP Code:
// Check for vaild eMail domain
if (!preg_match('/@(places\.)?pcsb\.org$/i', $_POST['email'])) {
eval('$errors[30] = "' . fetch_phrase('bademail', PHRASETYPEID_ERROR) . '";');
}
It doesn't work in vBulletin 3.5 - test registrations with outside e-mail addresses are still allowed. I inserted the code before CHECK FOR MISSING FIELDS in each version.
I'm a php novice. What am I doing wrong? Thanks!