2007-08-03, 05:15 AM
Hello all.
just little modify if you would like to force your members to type they birhday date whene registerring
we will 2 files and one template to do this
regards
just little modify if you would like to force your members to type they birhday date whene registerring
we will 2 files and one template to do this
- Edit member.php file
- find
Add after$user['birthday'] = array( "day" => $mybb->input['bday1'], "month" => $mybb->input['bday2'], "year" => $mybb->input['bday3'] );
$bdaysel = ''; for($i = 1; $i <= 31; $i++) { if($user['birthday'][0] == $i) { $bdaydaysel .= "<option value=\"$i\" selected=\"selected\">$i</option>\n"; } else { $bdaydaysel .= "<option value=\"$i\">$i</option>\n"; } }
- close and save the file
- find
- Edit inc/datahandlers/user.php
- find
Add after$birthday['day'] = intval($birthday['day']); $birthday['month'] = intval($birthday['month']); $birthday['year'] = intval($birthday['year']);
if(!$birthday['day'] || !$birthday['month'] || !$birthday['year']) { $this->set_error("invalid_birthday"); return false; }
- close and save it
- find
- replace all the code in the following attached file with your member_register template [attachment=7009]
regards