Вот сам мод:
1. файл agreed.tpl :
CODE:
<tr class="normal">
<td class="tab_down"><b>Ваш пол:</b></td>
<td class="tab_down"><input class="tab" name="gender" type="radio" value="Male"> Муж. <input class="tab" name="gender" type="radio" value="Female" checked> Жен.</td>
</tr>
<td class="tab_down"><b>Ваш пол:</b></td>
<td class="tab_down"><input class="tab" name="gender" type="radio" value="Male"> Муж. <input class="tab" name="gender" type="radio" value="Female" checked> Жен.</td>
</tr>
2. файл register.php:
CODE:
$gender = $vars['gender'];
Далее
CODE:
$user['pass'] = $password;
$user['gender'] = $gender;
$user['gender'] = $gender;
3. файл profile.tpl :
CODE:
<tr class="normal">
<td class="tab_down"><b>Ваш пол:</b></td>
<td class="tab_down"><input class="tab" name="gender" type="radio" value="Male" $gender_male> Муж. <input class="tab" name="gender" type="radio" value="Female" $gender_female> Жен.</td>
</tr>
<td class="tab_down"><b>Ваш пол:</b></td>
<td class="tab_down"><input class="tab" name="gender" type="radio" value="Male" $gender_male> Муж. <input class="tab" name="gender" type="radio" value="Female" $gender_female> Жен.</td>
</tr>
4. файл profile.php :
CODE:
$gender_male = ($inuser['gender'] == 'Male') ? 'checked' : '';
$gender_female = ($inuser['gender'] == 'Female') ? 'checked' : '';
$gender_female = ($inuser['gender'] == 'Female') ? 'checked' : '';
Далее
CODE:
$inuser['gender'] = $vars['gender'];