Here's how:
Open includes/ucp/ucp_register.php
Find:
Code: Select all
'tz' => request_var('tz', (float) $config['board_timezone']),
Code: Select all
//-- mod : Genders ------------------------------------------------------------
//-- add
'gender' => request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
Code: Select all
'tz' => request_var('tz', (float) $timezone),
Code: Select all
//-- mod : Genders ------------------------------------------------------------
//-- add
'gender' => request_var('gender', $user->data['user_gender']),
//-- fin mod : Genders --------------------------------------------------------
Code: Select all
'lang' => array('match', false, '#^[a-z_\-]{2,}$#i'),
Code: Select all
//-- mod : Genders ------------------------------------------------------------
//-- add
'gender' => array('num', true, 0, 2),
//-- fin mod : Genders --------------------------------------------------------
Code: Select all
'user_inactive_time' => $user_inactive_time,
Code: Select all
//-- mod : Genders ------------------------------------------------------------
//-- add
'user_gender' => $data['gender'],
//-- fin mod : Genders --------------------------------------------------------
Code: Select all
'S_TZ_OPTIONS' => tz_select($data['tz']),
Code: Select all
//-- mod : Genders ------------------------------------------------------------
//-- add
'GENDER_X' => GENDER_X,
'GENDER_M' => GENDER_M,
'GENDER_F' => GENDER_F,
'S_GENDER_X' => ($data['gender'] == GENDER_X) ? true : false,
'S_GENDER_M' => ($data['gender'] == GENDER_M) ? true : false,
'S_GENDER_F' => ($data['gender'] == GENDER_F) ? true : false,
//-- fin mod : Genders --------------------------------------------------------
Find:
Code: Select all
<tr>
<td class="row1"><b class="genmed">{L_TIMEZONE}: </b></td>
<td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>
</tr>
Code: Select all
<tr>
<td class="row1" width="35%"><b class="genmed"><label for="gender_x">{L_GENDER}:</label> </b><br /><span class="gensmall">{L_GENDER_EXPLAIN}</span></td>
<td class="row2">
<label for="gender_m"><input type="radio" name="gender" id="gender_m" value="{GENDER_M}"<!-- IF S_GENDER_M --> checked="checked"<!-- ENDIF --> /> {L_GENDER_M}</label>
<label for="gender_f"><input type="radio" name="gender" id="gender_f" value="{GENDER_F}"<!-- IF S_GENDER_F --> checked="checked"<!-- ENDIF --> /> {L_GENDER_F}</label>
<label for="gender_x"><input type="radio" name="gender" id="gender_x" value="{GENDER_X}"<!-- IF S_GENDER_X --> checked="checked"<!-- ENDIF --> /> {L_GENDER_X}</label>
</td>
</tr>
Now open: styles/prosilver/template/ucp_register.html (or prosilver based style)
Find:
Code: Select all
<dl>
<dt><label for="tz">{L_TIMEZONE}:</label></dt>
<dd><select name="tz" id="tz" class="autowidth">{S_TZ_OPTIONS}</select></dd>
</dl>
Code: Select all
<dl>
<dt><label for="gender_x">{L_GENDER}:</label><br /><span>{L_GENDER_EXPLAIN}</span></dt>
<dd>
<label for="gender_m"><input type="radio" name="gender" id="gender_m" value="{GENDER_M}"<!-- IF S_GENDER_M --> checked="checked"<!-- ENDIF --> /> {L_GENDER_M}</label>
<label for="gender_f"><input type="radio" name="gender" id="gender_f" value="{GENDER_F}"<!-- IF S_GENDER_F --> checked="checked"<!-- ENDIF --> /> {L_GENDER_F}</label>
<label for="gender_x"><input type="radio" name="gender" id="gender_x" value="{GENDER_X}"<!-- IF S_GENDER_X --> checked="checked"<!-- ENDIF --> /> {L_GENDER_X}</label>
</dd>
</dl>