Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: ryereelfishn on February 20, 2008, 08:01:18 AM

Title: Sign Up Process, Required info
Post by: ryereelfishn on February 20, 2008, 08:01:18 AM
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
Title: Re: Sign Up Process, Required info
Post by: Neorics on February 20, 2008, 08:26:15 AM
You can try with this

http://custom.simplemachines.org/mods/index.php?mod=319
Title: Re: Sign Up Process, Required info
Post by: 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.
Title: Re: Sign Up Process, Required info
Post by: ryereelfishn on February 21, 2008, 06:43:21 AM
Perfect!!!  Thank you!!!
Title: Re: Sign Up Process, Required info
Post by: conectado on April 04, 2008, 08:55:42 PM
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?
Title: Re: Sign Up Process, Required info
Post by: Rumbaar on April 04, 2008, 10:05:56 PM
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]