The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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])) |
#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])) |
#3
|
|||
|
|||
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. |
#4
|
|||
|
|||
Yeah, it looks like there's a check in includes/class_dm_user.php and also in register.php.
|
#5
|
|||
|
|||
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! |
#6
|
|||
|
|||
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). |
#7
|
|||
|
|||
You answered my questions well, thank you for helping me out.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|