WebmasterSite.net

Register | Forgot Password

required fields (registration birthdate)

Version: 3.3.17
Status: fixed
printPrint
locked


required fields (registration birthdate)
rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Posts: 42
Posted 05/08/06 - 10:36 AM:
quote post
#1
When I set the birthdate as a required field for registration I get a 'you did not complete all of the required fields' although I selected a birthday, a birthmonth and a birthyear. Is the problem that it requires a field named birthdate but the fields are named birthday, birthmonth and birthyear?
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California

Total Topics: 64
Total Posts: 7217
Posted 05/10/06 - 06:50 PM:
quote post
#2
In register.php, move
 if ($_POST['birthmonth']) 
{
$varslist .= ', birthdate, ';
if (strlen($_POST['birthmonth']) == 1) $_POST['birthmonth'] = '0'. $_POST['birthmonth'];
if (strlen($_POST['birthday']) == 1) $_POST['birthday'] = '0'. $_POST['birthday'];
$_POST['birthdate'] = $_POST['birthyear'] .'-'. $_POST['birthmonth'] .'-'. $_POST['birthday'];
$birthdate = $_POST['birthdate'];
if ($_POST['birthmonth'] == 'none') { $birthdate = '0000-00-00'; $_POST['birthdate'] = $birthdate; }
}
to just above
 $requiredmembers = explode(',', $settings->requiredmembers);


Applying for 3.3.18 of course.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
rolij
Member

Usergroup: Customer
Joined: May 19, 2005

Total Topics: 18
Total Posts: 42
Posted 05/23/06 - 11:48 PM:
quote post
#3
I fixed this manually according your recommendation and it worked fine until I updated to 3.3.18.
It seems like there's an CRLF in the file which my system doesn't recognize. I can't explain this because I don't understand it. But if I delete the CRLF, it works fine again.
Search thread for
Download thread as
locked


This thread is closed, so you cannot post a reply.

WSN Links WSN Gallery WSN Knowledge Base WSN Forum WSN Classifieds WSN Directory WSN Software Directory