Customizing SMF > Now Available

Ask for gender during registration

<< < (9/10) > >>

jannah:
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

redone:
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.

falguni1:
will someone update this mod.

TrueSatan:
No update needed the mod already supports current SMF versions.

aw06:

--- Quote from: [Unknown] on February 14, 2005, 07:02:58 PM ---Where ever you want the option to appear :P.

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


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

Add after that:


--- Code: --- </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>
--- End code ---

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

-[Unknown]

--- End quote ---

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: ---                     <input type="radio" name="gender" value="1" /> Male<br />
                     <input type="radio" name="gender" value="2" /> Female<br />
--- End code ---

or

--- Code: ---                     <input type="radio" name="gender" value="0" /> Male<br />
                     <input type="radio" name="gender" value="1" /> Female<br />
--- End code ---

or

--- Code: ---<input type="radio" name="gender" value="0" checked="checked" /> Male<br />
                     <input type="radio" name="gender" value="1" /> Female<br />
                    
--- End code ---

Which is the better code to use  :-\

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version