PDA

View Full Version : Birthday field on edit profile


moonclamp
05-27-2004, 09:18 AM
Currently when a user signs up he is prompted to enter a birthday.

If the year of birth is appropriate he is then taken to a form to fill in with the rest of his sign up details.

However

Once he is a member and he goes to fill out his profile the birthday field has become mysteriously empty.

How can I change this so that the birthday information (including year) is still there?

Sorry this is supposed to be a VB3 request ... any chance that someone can move it please?

tnguy3n
06-01-2004, 11:32 PM
In modifyprofile template, FIND and REMOVE following bit of code:

<fieldset class="fieldset">
<legend>$vbphrase[birth_date]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[enter_birth_date_controls]</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td>$vbphrase[month]:</td>
<td>$vbphrase[day]:</td>
<td>$vbphrase[year]:</td>
</tr>
<tr>
<td><select name="month">
<option value="-1" $monthdefaultselected></option>
<option value="01" $month01selected>$vbphrase[january]</option>
<option value="02" $month02selected>$vbphrase[february]</option>
<option value="03" $month03selected>$vbphrase[march]</option>
<option value="04" $month04selected>$vbphrase[april]</option>
<option value="05" $month05selected>$vbphrase[may]</option>
<option value="06" $month06selected>$vbphrase[june]</option>
<option value="07" $month07selected>$vbphrase[july]</option>
<option value="08" $month08selected>$vbphrase[august]</option>
<option value="09" $month09selected>$vbphrase[september]</option>
<option value="10" $month10selected>$vbphrase[october]</option>
<option value="11" $month11selected>$vbphrase[november]</option>
<option value="12" $month12selected>$vbphrase[december]</option>
</select> &nbsp;</td>
<td><select name="day">
<option value="-1" $daydefaultselected></option>
<option value="01" $day01selected>1</option>
<option value="02" $day02selected>2</option>
<option value="03" $day03selected>3</option>
<option value="04" $day04selected>4</option>
<option value="05" $day05selected>5</option>
<option value="06" $day06selected>6</option>
<option value="07" $day07selected>7</option>
<option value="08" $day08selected>8</option>
<option value="09" $day09selected>9</option>
<option value="10" $day10selected>10</option>
<option value="11" $day11selected>11</option>
<option value="12" $day12selected>12</option>
<option value="13" $day13selected>13</option>
<option value="14" $day14selected>14</option>
<option value="15" $day15selected>15</option>
<option value="16" $day16selected>16</option>
<option value="17" $day17selected>17</option>
<option value="18" $day18selected>18</option>
<option value="19" $day19selected>19</option>
<option value="20" $day20selected>20</option>
<option value="21" $day21selected>21</option>
<option value="22" $day22selected>22</option>
<option value="23" $day23selected>23</option>
<option value="24" $day24selected>24</option>
<option value="25" $day25selected>25</option>
<option value="26" $day26selected>26</option>
<option value="27" $day27selected>27</option>
<option value="28" $day28selected>28</option>
<option value="29" $day29selected>29</option>
<option value="30" $day30selected>30</option>
<option value="31" $day31selected>31</option>
</select> &nbsp;</td>
<td><input type="text" class="bginput" name="year" value="$year" size="4" maxlength="4" /></td>
</tr>
</table>
<input type="hidden" name="oldbirthday" value="$bbuserinfo[birthday]" />
</td>
</tr>
</table>
</fieldset>