No announcement yet.

Invalid Birthday

  • Filter
  • Time
  • Show
Clear All
new posts

  • Invalid Birthday

    I want to remove the "Birth Date" field from Edit Profile in the User Control Panel. Whenever I do so, and subsequently try to amend any other profile field, I get an "Invalid Birthday" error message.

    I have done a search and it appears that this problem has been discussed at some length. But no definitive answer seems available. One suggested solution is to set birthday requiremant to "No" in the User Registration section of the Admin Control Panel. This I have done, but the problem remains. My question:

    How do I successfully remove the Birth Date field from the "modifyprofile" template, and still allow users to amend their profile?


  • #2
    I am having the same problem on my test forum.

    One option is to make the birthday fields hidden with hard-coded values. This means everyone will have the same bogus birthday, but it will allow users to submit their profiles without having to enter a birthday.

    Go to your:

    Admin CP -> Styles & Templates -> Style Manager -> « » -> Modify User Option Templates -> modifyprofile

    Find this code:

    			<fieldset class="fieldset">
    				<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
    						<table cellpadding="0" cellspacing="2" border="0">
    							<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>
    						<input type="hidden" name="oldbirthday" value="$bbuserinfo[birthday]" />
    And replace it with this code:

    <input type="hidden" name="month" value="01" />
    <input type="hidden" name="day" value="01" />
    <input type="hidden" name="year" value="1969" />
    <input type="hidden" name="oldbirthday" value="$bbuserinfo[birthday]" />
    Now everyone's birthday is January 1, 1969.


    • #3
      Thanks again Jake.


      • #4
        Invalid Birthday

        Hi, I just upgraded to ver 3.0.3, now when my users try to edit their profile they get this message "You have entered an invalid birthday." I'm able to make new users just fine, but when I try to edit the profile of a new user I still get this message. So it's happening with both new and old users. I've made new users with the birthday required at registration and not required and both give me the message when I try to edit the profile. I don't want to comment it out. What I really want is a way to have members birthdays show up on the calendar. So I either want them to be required to enter it, or be able to enter it in there profile. But I don't know how to add that option. The website it if you'd like to take a look at it. I'm new to this whole VBulletin thing. So any help would be appreciated. Thanks, Paul AIM: Paul41598


        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.