I can not get the age limit FAQ code to work. That and I don't understand the FAQ's
I have read through all the FAQ's relating to this topic and still cannot figure this out. I am selling e-cigs and really need this function to work.then create an over-ride file for your includes/languages/english/create_account.php file and place the following line in there, changing the text to suit your style of feeding errors back to visitors
I first tried to edit the code in create_account.php with the new code that FAQ's says to put in it.
I uploaded it to my page and got a blank page when I tried to access the login.if (ACCOUNT_DOB == 'true') {
if (ENTRY_DOB_MIN_LENGTH > 0 or !empty($_POST['dob'])) {
if (substr_count($dob,'/') > 2 || checkdate((int)substr(zen_date_raw($dob), 4, 2), (int)substr(zen_date_raw($dob), 6, 2), (int)substr(zen_date_raw($dob), 0, 4)) == false) {
$error = true;
$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_ERROR);
}
$minimum_age = 18;
$acceptable_dob = (date('Y') - $minimum_age) . date('md');
if (zen_date_raw($dob) > $acceptable_dob) {
$error = true;
$messageStack->add('create_account', ENTRY_DATE_OF_BIRTH_UNDERAGE);
}
}
}
I guess what I'm trying to figure out is how to get the overide page set up correctly as far as coded correctly and put in the correct folder to where create_account.php references the information.
I also would like to know if anyone else understand this part of the FAQS of creating an age limit at signup.
Any help would eb greatly appreciated. Not sure how to fix this.



