Advertisement:
NameCheap

Author Topic: Ask for gender during registration  (Read 109245 times)

Offline jannah

  • Semi-Newbie
  • *
  • Posts: 14
Re: Ask for gender during registration
« Reply #40 on: December 17, 2007, 09:16:48 PM »
I just installed this mod and couldn't figure out why it wasn't working. When I went back and looked at it manually everything was fine as well. Then I realized that my SMF was using Modifications.english-utf8.php instead of Modifications.english.php D'OH!!  I copied the regular one over to utf and it works... but why is it defaulting to the utf one where can i change that?

Thanx.
Jannah

Offline redone

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 8,929
  • Gender: Male
Re: Ask for gender during registration
« Reply #41 on: December 17, 2007, 09:23:08 PM »
All this mod does is change the register.template.php. Converting to utf is something you must do to your board.

To resolve this you need a backup of your database prior to converting to utf.

Offline falguni1

  • Full Member
  • ***
  • Posts: 652
  • Gender: Female
  • http://beautymakeupdivas.com/
Re: Ask for gender during registration
« Reply #42 on: January 30, 2008, 03:19:53 AM »
will someone update this mod.

Offline TrueSatan

  • SMF Hero
  • ******
  • Posts: 1,783
Re: Ask for gender during registration
« Reply #43 on: January 30, 2008, 09:21:12 PM »
No update needed the mod already supports current SMF versions.

Offline aw06

  • SMF Hero
  • ******
  • Posts: 2,763
  • Gender: Male
  • Make The Link
    • shopinja.classifieds on Facebook
    • @shopinja on Twitter
    • ShopinJA.com
Re: Ask for gender during registration
« Reply #44 on: January 25, 2009, 11:46:43 PM »
Where ever you want the option to appear :P.

For example, if you wanted it after the password, you'd find:

Code: [Select]
</tr><tr>
<td width="40%">
<b>', $txt[82], ':</b>
</td>
<td>
<input type="password" name="passwrd2" size="30" />
</td>
</tr>

Add after that:

Code: [Select]
</tr><tr>
<td width="40%">
<b>Gender:</b>
</td>
<td>
<input type="radio" name="gender" value="0" checked="checked" /> Leave it to the imagination<br />
<input type="radio" name="gender" value="1" /> Male<br />
<input type="radio" name="gender" value="2" /> Female<br />
</td>
</tr>

If you're not comfortable with HTML, I suggest you look at the tutorials on www.w3schools.com ;).

-[Unknown]

Lets say i dont want a leave to imagination option, and i remove that line of code .. do i then have to change the value for male and female .. or they can remain on 1 & 2 ???

eg..
Code: [Select]
                     <input type="radio" name="gender" value="1" /> Male<br />
                     <input type="radio" name="gender" value="2" /> Female<br />

or
Code: [Select]
                     <input type="radio" name="gender" value="0" /> Male<br />
                     <input type="radio" name="gender" value="1" /> Female<br />

or
Code: [Select]
<input type="radio" name="gender" value="0" checked="checked" /> Male<br />
                     <input type="radio" name="gender" value="1" /> Female<br />
                    

Which is the better code to use  :-\
« Last Edit: January 25, 2009, 11:52:39 PM by aw06 »
:: ShopinJA.com Powered by SMF 1.1.19 | Ig-Oh Theme by Koni | 70 Rock Solid Error Free Mods | Many Custom Edits & Tweaks ::
- Host Unlimited Websites - Free Website Builder & Templates - Unlimited Disk Space & Bandwidth

Offline MoreBloodWine

  • SMF Hero
  • ******
  • Posts: 2,619
  • Gender: Male
  • ...
    • Uncharted 2: Among Thieves Stat Sig Generator
Re: Ask for gender during registration
« Reply #45 on: August 28, 2010, 03:53:29 AM »
Any chance of a 2.0 RC3 port ?
Download my custom 1.x / 2.x Who.template.php
Design your own sig @ myu2sig.com - Gen Status: - Total unique user count: