MyBB Community Forums

Full Version: Remove Birth Year Limit
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
All right, so the forum that I run is just a localhost archive for my writing. I'm making user accounts for characters and some of them are hundreds of years old... to add their birthday I can't add a year without getting an error. I was wondering if there was a way to edit the limit so that it doesn't matter? That way when I go into my calendar it'll tell me what age they're turning beside their name.

Thanks!
Check if you have COPPA Compliance enabled in User Registration and Profile Options
I've enabled COPPA. Shouldn't that only affect accounts for those under the age of 13? Either way, I still receive the same error when attempting to set an account's birth year to 1860.

"Please correct the following errors before continuing:
The birthday you entered is invalid. Please enter a valid birthday or leave the field empty."
Open inc/datahandlers/user.php, then change:
		if($birthday['year'] != 0 && ($birthday['year'] < (date("Y")-100)) || $birthday['year'] > date("Y"))
		{
			$this->set_error("invalid_birthday");
			return false;
		}
to:
		if($birthday['year'] != 0 && $birthday['year'] > date("Y"))
		{
			$this->set_error("invalid_birthday");
			return false;
		}
Yes! Thank you very much.