tyfoon
09-03-2005, 10:00 PM
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
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
function is_banned_email($email)
{
return 0;
}
This mod uses one minnor file modification
in includes/function_user.php find
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
function is_banned_email($email)
{
return 0;
}