Version: SMF 1.1.4
Link: http://reelfishn.powweb.com/rfmessageboard/index.php
Description: I want to make some things in the sign up process required such as Sex, Birthdate and Occupation.
Is this even possible?
THANKS!
Ryan
You can try with this
http://custom.simplemachines.org/mods/index.php?mod=319
Yes it's possible, most are common field already in SMF.
Gender
Gender On Registration (http://custom.simplemachines.org/mods/index.php?mod=407)
Date of Birth
Register.template.php
Find:
<tr>
<td width="40%">
<b>', $txt[81], ':</b>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
Add before:
<tr>
<td width="40%">
<b>', $txt[563], ':</b>
<div class="smalltext">', $txt[566], ' - ', $txt[564], ' - ', $txt[565], '</div>
</td>
<td class="smalltext">
<input type="text" name="bday3" size="4" maxlength="4" tabindex="', $context['tabindex']++, '" /> -
<input type="text" name="bday1" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" /> -
<input type="text" name="bday2" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" />
</td>
</tr>
But there currently isn't a default field for Occupation, so you'll need to use the Custom Profile mod Neorics posted.
Perfect!!! Thank you!!!
Quote from: Rumbaar on February 21, 2008, 05:37:34 AM
Yes it's possible, most are common field already in SMF.
Gender
Gender On Registration (http://custom.simplemachines.org/mods/index.php?mod=407)
Date of Birth
Register.template.php
Find:
<tr>
<td width="40%">
<b>', $txt[81], ':</b>
</td>
<td>
<input type="password" name="passwrd1" size="30" tabindex="', $context['tabindex']++, '" />
</td>
Add before:
<tr>
<td width="40%">
<b>', $txt[563], ':</b>
<div class="smalltext">', $txt[566], ' - ', $txt[564], ' - ', $txt[565], '</div>
</td>
<td class="smalltext">
<input type="text" name="bday3" size="4" maxlength="4" tabindex="', $context['tabindex']++, '" /> -
<input type="text" name="bday1" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" /> -
<input type="text" name="bday2" size="2" maxlength="2" tabindex="', $context['tabindex']++, '" />
</td>
</tr>
But there currently isn't a default field for Occupation, so you'll need to use the Custom Profile mod Neorics posted.
I make this, but it only appears : - - instead of Year, Month and Day
What am i doing wrong?
It uses $txt[] strings you need to make sure your language has the appropriate strings defined. Is should be the same strings used in the profile section, so if it's missing from your new code it would be missing from there also.
$txt[566]
$txt[564]
$txt[565]