News:

Wondering if this will always be free?  See why free is better.

Main Menu

Sign Up Process, Required info

Started by ryereelfishn, February 20, 2008, 08:01:18 AM

Previous topic - Next topic

ryereelfishn

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
Ryan H. Ireland
http://www.reelfishn.net
CO-Owner / Webmaster

Neorics

[For Hire] I can help you with anything regarding Simple Machines Forum  ~ My Portfolio

Rumbaar

Yes it's possible, most are common field already in SMF.
Gender
Gender On Registration

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.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

ryereelfishn

Ryan H. Ireland
http://www.reelfishn.net
CO-Owner / Webmaster

conectado

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

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?

Rumbaar

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]
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: