![]() |
Birth year range during registration
Is there a way where we can restrict new member to enter the birth year range from something like 1900 to 2005 during registration?
I have some joker members who enter their birth year by entering 0000 or some funny number :disappointed: |
Quote:
Here is how to do this.... Open register.php FIND THIS.... Code:
if ($month == 0 OR !preg_match('#^\d{4}$#', $year)) REPLACE WITH... Code:
if ( $month == 0 OR ! preg_match ( "!^(19[0-9]{2}|200[0-5]{1})$!", $year ) ) Sonia |
Try this as well to make sure they dont put the age under and this also keeps the age unchangeable. (admins can change)
[vB 3.0.3] Force 18 and over at Registration Time. Quote:
|
Quote:
Sure you can add it if you like!!! Take Care Sonia |
Thanks to both T3MEDIA and Sonia. I shall give this a shot and see how it goes :)
|
All times are GMT. The time now is 11:01 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:
|