kooky wrote:set it in your AdminCPmguffey5 wrote:Is there anyway to make this a mandatory on the registration page.
I dunno but I do not have a button installed on my CP and I had no problems installing the mod..
Moderator: Moderators
splitfire wrote:Simpler yet, adding kooky's not-all-the-way-thought-through idea to carlos' working solution:
- Code: Select all
<!-- BEGIN switch_user_logged_out -->
<!-- Start add - Gender MOD -->
<tr>
<td class="row1"><span class="gen">{L_GENDER}:{GENDER_REQUIRED}</span></td>
<td class="row2">
<input type="radio" name="gender" value="1" {GENDER_MALE_CHECKED}/>
<span class="gen">{L_GENDER_MALE}</span>
<input type="radio" name="gender" value="2" {GENDER_FEMALE_CHECKED}/>
<span class="gen">{L_GENDER_FEMALE}</span></td>
</tr>
<!-- End add - Gender MOD -->
<!-- END switch_user_logged_out -->
<!-- BEGIN switch_user_logged_in -->
<!-- Start add - Gender MOD -->
<tr>
<td class="row1"><span class="gen">{L_GENDER}:{GENDER_REQUIRED}</span></td>
<td class="row2">
<input type="hidden" name="gender" value="{GENDER}">
<input type="radio" {LOCK_GENDER} name="gender" value="1" {GENDER_MALE_CHECKED}/>
<span class="gen">{L_GENDER_MALE}</span>
<input type="radio" {LOCK_GENDER} name="gender" value="2" {GENDER_FEMALE_CHECKED}/>
<span class="gen">{L_GENDER_FEMALE}</span></td>
</tr>
<!-- End add - Gender MOD -->
<!-- END switch_user_logged_in -->
Instead of "Changing your gender isn't allowed", it displays the radio buttons locked on the user's gender.
Note: I removed the "unspecified" portion since there's no need for it once you've made gender required.




Users browsing this forum: No registered users and 0 guests