Quote:
Originally Posted by Erwin
This used to happen with my vB2 version - to be honest, I don't know how to fix that. You might want to search the vB2 thread and see if someone else posted a fix.
|
I'll try what gwhoooey mentioned in post #66 in this thread and let you know how I get on.
YAY! *hugs gwhooey*
That worked like a charm.
find:
PHP Code:
//CHANGE SETTINGS ABOVE//
Add above:
PHP Code:
$email_regular_expression="^([-!#\$%&'*+./0-9=?A-Z^_`a-z{|}~ ])+@([-!#\$%&'*+/0-9=?A-Z^_`a-z{|}~ ]+\\.)+[a-zA-Z]{2,4}\$";
find:
PHP Code:
if ($session_username) $errormessage .= " - ".$session_username."@".$session_server;
replace with:
PHP Code:
if (eregi($email_regular_expression, $session_username))
{
if ($session_username) $errormessage .= " - ".$session_username;
}
else
{
if ($session_username) $errormessage .= " - ".$session_username."@".$session_server;
}
find (2 times)
PHP Code:
$generated=$session_username."@".$session_server;
replace both instances with:
PHP Code:
if (eregi($email_regular_expression, $session_username))
{
$generated=$session_username;
}
else
{
$generated=$session_username."@".$session_server;
}