Confirm email address
Posted: Sun Jan 10, 2010 1:25 pm
This is really stupid mistake from Interspire, users are entering only once their email so they make mistake very often and you don't get their real email address.
To fix this, go to the Tools -> Form Fields -> Create New Field (in Account Singup fields)
Name it: Confirm Email Address
Go to phpmyadmin, select table isc_formfields and find your new form field with label Confirm Email Address (it is last row) and click Edit (little pen icon)
Make this values for your new form field:
formfieldisrequired - 1
formfieldisimmutable - 1
formfieldprivateid - ConfirmEmailAddress
formfieldsort - 2
So now when you sorted this field to be 2nd (formfieldsort - 2) you have to edit fields Password (formfieldsort - 2 -> 3) and Confirm Password (formfieldsort - 3 -> 4) so that you have fields in a normal order:
Email Address
Confirm Email Address
Password
Confirm Password
Now we have created formfield, now we have to "connect" Email Address and Confirm Email Address form field.
Open: Panels/CreateAccountJavascript.html
Find:
Add after:
Find:
Add after:
Open: language/front_language.ini
Add:
To fix this, go to the Tools -> Form Fields -> Create New Field (in Account Singup fields)
Name it: Confirm Email Address
Go to phpmyadmin, select table isc_formfields and find your new form field with label Confirm Email Address (it is last row) and click Edit (little pen icon)
Make this values for your new form field:
formfieldisrequired - 1
formfieldisimmutable - 1
formfieldprivateid - ConfirmEmailAddress
formfieldsort - 2
So now when you sorted this field to be 2nd (formfieldsort - 2) you have to edit fields Password (formfieldsort - 2 -> 3) and Confirm Password (formfieldsort - 3 -> 4) so that you have fields in a normal order:
Email Address
Confirm Email Address
Password
Confirm Password
Now we have created formfield, now we have to "connect" Email Address and Confirm Email Address form field.
Open: Panels/CreateAccountJavascript.html
Find:
Code: Select all
if (formfields[j].privateId == 'EmailAddress') {
emailField = formfields[j];
Code: Select all
} else if (formfields[j].privateId == 'ConfirmEmailAddress') {
emailconfirmField = formfields[j];
Code: Select all
if(passwordField.value == "") {
alert("%%LNG_AccountEnterPassword%%");
FormField.Focus(passwordField.field);
FormField.Focus(passwordField.field);
return false;
}
Code: Select all
if((emailField.value != "" || emailconfirmField.value != "") && (emailField.value != emailconfirmField.value)) {
alert("%%LNG_AccountEmailsDontMatch%%");
FormField.Focus(emailconfirmField.field);
return false;
}
Add:
Code: Select all
AccountEmailsDontMatch = "Your Email accounts dont match"