Back to vBulletin 3.0 Add-Ons

Restrict registrations to one domain
Mod Version: 1.00, by Andreas

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 2
Released: 19 Jan 2005 Last Update: Never Downloads: 0
Not Supported  

This hack restricts new registratiosn to users who have eMail-Adresses from one specific domain.
This can be useful if you are running a corporate/internal forum.

In register.php FIND
PHP Code:
// check for missing fields 
ABOVE that ADD
PHP Code:
// Check for vaild eMail domain
if (!preg_match('/@mydomain\.com$/'$_POST['email'])) {
  eval(
'$errors[30] = "' fetch_phrase('bademail'PHRASETYPEID_ERROR) . '";');

Note: mydomain.com must be replaced with the restricted domain of course

Should work with all vB 3 versions.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024