The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
|||
|
|||
Quote:
Here is how to do this.... Open register.php FIND THIS.... Code:
if ($month == 0 OR !preg_match('#^\d{4}$#', $year)) { eval(print_standard_error('select_valid_month_and_year')); } REPLACE WITH... Code:
if ( $month == 0 OR ! preg_match ( "!^(19[0-9]{2}|200[0-5]{1})$!", $year ) ) { eval ( print_standard_error ( 'select_valid_month_and_year' ) ); } Sonia |
#3
|
|||
|
|||
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:
|
#4
|
|||
|
|||
Quote:
Sure you can add it if you like!!! Take Care Sonia |
#5
|
|||
|
|||
Thanks to both T3MEDIA and Sonia. I shall give this a shot and see how it goes
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|