4images Forum & Community
4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: ameenov on May 20, 2005, 11:52:57 AM
-
I want to users when register to retype the password and email
Beacuse sometimes they will miss type them !!
I mean some time they put a wrong email address by mistake ...
I don't want that to happen ...
Any help?
-
ok, in member_editprofile.html there is that option for the email. maybe if u include the code in register_form.html it will work just try this:
In register_form.html
Find:
<tr>
<td class="row2"><b>{lang_email}</b></td>
<td class="row2"><input type="text" name="user_email" size="30" class="input" value="{user_email}" /></td>
</tr>
Replace:
<tr>
<td class="row1"><b>{lang_email}</b></td>
<td class="row1"><input type="text" name="user_email" size="30" value="{user_email}" class="input" /></td>
</tr>
<tr>
<td class="row2"><b>{lang_email_confirm}</b></td>
<td class="row2"><input type="text" name="user_email2" size="30" value="{user_email2}" class="input" /></td>
</tr>
I hope it work
-
Thanks ascanio
I will try it, but I don't think it will work, because i think I have to modify the (register.php)
thanks again and I will get back if it didn't work
-
It is not working :?
Any help please :(
-
It is difficult that much or it needs a huge mod?
Just i want to know
-
@Ameenov
Yes you are right! You must also edit register.php
find:
else {
$msg .= (($msg != "") ? "<br />" : "").$lang['invalid_email_format'];
$error = 1;
}
Add after:
if ($user_email != $user_email2) {
$msg .= (($msg != "") ? "<br />" : "").$lang['update_email_confirm_error'];
$error = 1;
}
if ($user_email == "" || $user_email2 == "") {
$msg .= (($msg != "") ? "<br />" : "").$lang['update_email_error'];
$error = 1;
}
Try this :wink:
-
Hey,
it works perfectly! See: http://www.weltspass.de/register.php (http://www.weltspass.de/register.php)!
Now I don't get these damn emails: "Undelivered Mail Returned to Sender"
THX @ All!