Back to vBulletin 3.5 Add-ons

move banned mail groups on registration to moderated group
Mod Version: 1.00, by tyfoon

This modification is in the archives.
vB Version: 3.5.0 RC2 Rating: (0 vote - 0 average) Installs: 2
Released: 04 Sep 2005 Last Update: Never Downloads: 6
Supported Uses Plugins Code Changes Is in Beta Stage  

If you want to moderate only some mailadresses this is a plugin you can use

This mod uses one minnor file modification

in includes/function_user.php find

Code:
function is_banned_email($email)
{
	global $vbulletin;
	if ($vbulletin->options['enablebanning'] AND $vbulletin->banemail !== null)
	{
		$bannedemails = preg_split('/\s+/', $vbulletin->banemail, -1, PREG_SPLIT_NO_EMPTY);
		foreach ($bannedemails AS $bannedemail)
		{
			if (is_valid_email($bannedemail))
			{
				$regex = '^' . preg_quote($bannedemail, '#') . '$';
			}
			else
			{
				$regex = preg_quote($bannedemail, '#') . '$';
			}
			if (preg_match("#$regex#i", $email))
			{
				return 1;
			}
		}
	}
	return 0;
}
and replace with
Code:
function is_banned_email($email)
{
	return 0;
}

Download

This modification is archived and cannot be downloaded.

Similar Mods

AJAX: check for banned email on registration and changing mail vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024