Hi
These days I am customizing my registration page. I just want to add something and I need help how to do this.
I want to have this
Password
Confirm Password
E-Mail
Confirm-Email
Basically, I want users to enter password and e-mail twice to confirm it.
One Big Problem here
For some reason, I can’t use
{lang_user_realname} and other language tags in my html files (of my additional fileds). Other than that I m getting these additional fields working well.
Currently, I have added manually the title of these fields in my register_form.html, member_profile.html, member_editprofile.html so at least users can see them. But when I go to admin panel to edit/add a new user I see them blank.
So can someone give me any hint? What possible mistake it could be?
I have followed these instructions
To add new user text fields to the database so that you know more details about who is registering please follow these instructions.
----------------------------------
Step 1
Open: includes/db_field_definitions.php
----------------------------------
$additional_user_fields['user_adress'] = array($lang['user_adress'], "text", 1);
----------------------------------
Step 2
Open: lang/english/main.php
----------------------------------
$lang['user_adress'] = "Address:";
----------------------------------
Step 3
Open: templates/default/register_form.html
----------------------------------
<tr>
<td class="row2"><b>{lang_user_adress}</b></td>
<td class="row2"><input type="text" name="user_adress" size="30" value="{user_adress}" class="input" /></td>
</tr>
----------------------------------
Step 4
Open: templates/default/member_edit_profile.html
----------------------------------
Add:
<tr>
<td class="row2"><b>{lang_user_adress}</b></td>
<td class="row2"><input type="text" name="user_adress" size="30" value="{user_adress}" class="input" /></td>
</tr>
----------------------------------
Step 5
Add database fields via 'PHPMyAdmin' tool and add these fileds under 4images_user table
----------------------------------
And i also follwed
u'll need register {user_realname} in "main" .php files.
Just search for: $site_template->register_vars(array(
then u'll see bunch of "something" => $whatever,
"sometingelse" => $somethingelse,
just add this line there:
"user_realname" => $lang['user_realname'],
make sure, that if u entered as last line in the array, there is no comma at the end of your line, and line above yours must have comma.
M i missing something ?