MyBB Community Forums

Full Version: Field in Registration
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey people anyone can help me add birthday field into registration process?

Hello there

in Admin CP >Templates > Modify/ Delete > Expand > Member templates > member_register

find
<td><input type="text" name="email2" size="20" maxlength="50" value="$email2" /></td>
</tr> 

below add
 <tr>
<td colspan="2"><span class="smalltext">$lang->birthday</span></td>
</tr>
<tr>
<td>
<select name="bday1">
<option value=""></option>
$bdaydaysel
</select>

<select name="bday2">
<option value=""> </option>
<option value="1" $bdaymonthsel[1]>$lang->month_1</option>
<option value="2" $bdaymonthsel[2]>$lang->month_2</option>
<option value="3" $bdaymonthsel[3]>$lang->month_3</option>
<option value="4" $bdaymonthsel[4]>$lang->month_4</option>
<option value="5" $bdaymonthsel[5]>$lang->month_5</option>
<option value="6" $bdaymonthsel[6]>$lang->month_6</option>
<option value="7" $bdaymonthsel[7]>$lang->month_7</option>
<option value="8" $bdaymonthsel[8]>$lang->month_8</option>
<option value="9" $bdaymonthsel[9]>$lang->month_9</option>
<option value="10" $bdaymonthsel[10]>$lang->month_10</option>
<option value="11" $bdaymonthsel[11]>$lang->month_11</option>
<option value="12" $bdaymonthsel[12]>$lang->month_12</option>
</select>
</td>
<td>
<input type="text" size="4" maxlength="4" name="bday3" value="$bday[2]" />
</td>
</tr>

regards
Don't forget to process the additional fields in member.php - otherwise, the fields will be ignored.
Oh well there is no need!! they are already there Smile