![]() |
Changing Birthday Year to Future Year
Hello, I'm trying to allow the birthday year to be further out than the current year. When done, a error will state, "invalid birthday entered" and not allow a change.
I edited in profile.php Code:
if ($birthday[2] > 1901 AND $birthday[2] = year ('Y')AND @checkdate($birthday[0], $birthday[1], $birthday[2])) Code:
if ($birthday[2] > 1901 AND $birthday[2] = 4500 AND @checkdate($birthday[0], $birthday[1], $birthday[2])) |
I think you're just missing a '<':
Code:
if ($birthday[2] > 1901 AND $birthday[2] <= 4500 AND @checkdate($birthday[0], $birthday[1], $birthday[2])) |
Sorry, you're right. I was typing the the tidbit and missed the <. The error occurs just the same still however. I even commented the code out entirely and the invalid DOB comes up. The check must be taking place in another file as well. I cannot find it for the life of me though.
Thanks for any help. |
Yeah, it looks like there's a check in includes/class_dm_user.php and also in register.php.
|
Thank you very much. I tried searching all my files and couldn't find anything. Do you run a certain program and perform a search or did you know from experience?
Thanks! |
I just did a search on all the php files for "1901". For the record, I think there were a few other places that check for year > 1901 but don't check for a max year.
I use something called Netbeans IDE, but it does a lot of other things so it's not what you'd want to install if you just want to search a bunch of files. (I'm not sure if you're asking what program to use or just how I found those checks). |
You answered my questions well, thank you for helping me out.
|
All times are GMT. The time now is 08:59 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|