[Add-on] Gender Required Field v0.9.1

Mod that adds a extra field to the users profile, the gender is displayed beside the posts

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

Postby Sippy on Mon 11. Oct, 2004 19:40

kooky wrote:
mguffey5 wrote:Is there anyway to make this a mandatory on the registration page.
set it in your AdminCP :wink:



I dunno but I do not have a button installed on my CP and I had no problems installing the mod..
Sippy
Poster
Poster
 
Posts: 30
Joined: Mon 04. Oct, 2004 04:02

Postby henrysas on Sat 20. Nov, 2004 10:34

Hi,
Can I use this mod mandatory for users who has already registered before I put this mod on my BB as well??
henrysas
Poster
Poster
 
Posts: 1
Joined: Sat 20. Nov, 2004 08:11

Postby Haruko on Tue 11. Jan, 2005 04:13

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>&nbsp;&nbsp;
      <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>&nbsp;&nbsp;
      <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.


Thanks for the code, splitfire!
Haruko
Poster
Poster
 
Posts: 6
Joined: Wed 23. Jun, 2004 12:48

Postby nasadows98 on Mon 08. Aug, 2005 12:55

What about adding a "THIRD" Gender Image, okay, let's say, a "Homosexual" image :lol: will be displayed if a user hasn't chosen his gender when register (this is just for fun :) ) ?
Can anyone do this for me?
nasadows98
Poster
Poster
 
Posts: 7
Joined: Mon 08. Aug, 2005 12:48

Postby nasadows98 on Mon 08. Aug, 2005 13:04

Just because I have 3 (wow!) gender images (taken from Yahoo! Messenger, and i'm just don't want to left any of them unused :lol: (greedy me! :twisted: )
ImageImageImage

I'm using only 2 images for my gender: ImageImage

I want to add, maybe, not a "Homosexual" field, but we can call it for another name, like "Blondes" :wink: for the rest image Image- a uncommon choice for special person of our forum, or just a default gender if none selected?
nasadows98
Poster
Poster
 
Posts: 7
Joined: Mon 08. Aug, 2005 12:48

Postby nasadows98 on Mon 08. Aug, 2005 13:10

nasadows98
Poster
Poster
 
Posts: 7
Joined: Mon 08. Aug, 2005 12:48

Postby donnie-d on Sat 27. Aug, 2005 00:42

How can this be comined with Custom registration form [2.0.6/EM]?
donnie-d
Poster
Poster
 
Posts: 43
Joined: Tue 11. Nov, 2003 01:48

Previous

Return to Gender [2.0.10/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron