View Full Version : Age Reguirement
ragintajin
01-03-2004, 09:52 AM
Anyone know how to kick up the age requirement to 18??
hwtan
01-03-2004, 10:05 AM
In register.php, line 92:
change:
if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $mont
h <= $current['month']))
To:
if ($year < ($current['year'] - 18) OR ($year == ($current['year'] - 18) AND $mont
h <= $current['month']))
If you like, change line 101 as well :)
ragintajin
01-03-2004, 10:16 AM
sweeet, thanks!
thedue
12-07-2007, 09:22 PM
Does anyone know what to do for vB 3? (3.6.8) ?
Thanks in advance!
Reeve of shinra
12-07-2007, 10:36 PM
probably hasn't changed... just edit register.php and do a search and replace on 13.
thedue
12-08-2007, 09:59 AM
If it has`t I wouldn`t ask ;)
This is the current code:
if ($vbulletin->GPC['month'] == 0 OR $vbulletin->GPC['day'] == 0 OR !preg_match('#^\d{4}$#', $vbulletin->GPC['year']) OR $vbulletin->GPC['year'] < 1901 OR $vbulletin->GPC['year'] > $current['year'])
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.