How could I restrict the 'Unknown' field from users? I want to force users to choose Male or Female option.
Regards,
Ed
Moderator: Moderators

Beeveer wrote:If they have choosed they can't go back to the unknown field.

Ed Guy wrote:Sorry, I did not understand. Does it mean the user only can choose the gender option once when subscribing? The user can't change the gender option later?
#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_register.php
#
#-----[ FIND ]------------------------------------------------
#
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
#
#-----[ REPLACE WITH ]----------------------------------------
#
if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) || ($gender == 0) )
#
#-----[ FIND ]------------------------------------------------
#
'LOCK_GENDER' =>($mode!='register') ? 'DISABLED':'',
#
#-----[ REPLACE WITH ]----------------------------------------
#
'LOCK_GENDER' => 'DISABLED',
#
#-----[ OPEN ]------------------------------------------------
#
templates/profile_add_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<!-- Start add - Gender MOD -->
<tr>
<td class="row1"><span class="gen">{L_GENDER}:</span></td>
#
#-----[ REPLACE WITH ]----------------------------------------
#
<!-- Start add - Gender MOD -->
<tr>
<td class="row1"><span class="gen">{L_GENDER}: *</span></td>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM 
Users browsing this forum: No registered users and 0 guests