Helpful Information
 
 
Category: vBulletin 3 Discussion
help please

hi

i have notice that about 05% of new members type their email like that: www.ex@hotmail.com
i dont know why they write www. before their email.. maybe cuase they think it works like a website or something like that. anway i need to do something like that:

if (www. isin $email) {
$email = str_replace("www.", " ", $email);
}

i dont know where/what/how should i moditfy.. database? register.php? register template?
i dontknow :paranoid:
please help me.. and type the code to me if you can

thanks

edit register.php, find:

$email = trim($email);

After that add:

if (substr(strtolower($email),0,4)=="www.")
{
$email=substr($email,4);
}

Enjoy..

thank you. but you have missed the email confirm feild, i just want to say it to other users may have same my problem

1.find:
$email = trim($email);

2.write down it:
if (substr(strtolower($email),0,4)=="www.") {
$email=substr($email,4);
}

3. find:
$emailconfirm = trim($emailconfirm);

4. write down it:
if (substr(strtolower($emailconfirm),0,4)=="www.") {
$emailconfirm=substr($emailconfirm,4);
}

no I didnt miss it.. You dont need to check it because if email field includes www. it will be replaced and now email and emailconfirmation fields wont match and user will automatically get the error ;)










privacy (GDPR)