The Arcive of vBulletin Modifications Site. |
|
Force valid Registration year Details »»
|
|||||||||||||||||||||||||
This modification forces new users to enter a valid calendar date before they are allowed to continue registration on your forum. Users are prevented from registering if older than 110 years.
In register.php find: PHP Code:
PHP Code:
Type: Front-End Error Message VarName: too_old Text: Sorry, but you must be living to join the site. change the 110 above to however many years back you want it to limit membership. -=My First Mod=- ![]() Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
I have a feeling this will be installed more for the comedic value rather than it's usefulness..
|
|
#3
|
||||
|
||||
|
This is a nice little addon
thanks for sharing... however I would definetly add more years to that... I think we may insult someone if we leave it a 110 lolthank you corollasbest for sharing with the community
|
|
#4
|
||||
|
||||
|
Something else could also be added to this..
![]() Code:
if ($year > $current['year'])
{
eval(print_standard_error('error_too_young'));
}
|
|
#5
|
|||
|
|||
|
this is a half way hack. In a way its good with the hack I made. the combo would be awsome that way they have to put an age AND its forced 18 and up or what ever you prefer:
https://vborg.vbsupport.ru/showthread.php?t=74808 |
|
#6
|
|||
|
|||
|
the point with your hack T3, is that not all boards need to be 18+ ... forcing birthday dates is not needed to everybody.
any good hack is good (hey, i'm the one to find this sentence!) |
|
#7
|
||||
|
||||
|
very nice addon, thanks
|
|
#8
|
||||
|
||||
|
great idea/addon! Thanks for sharing!
|
|
#9
|
||||
|
||||
|
Quote:
I just have the COPPA enabled on my site, so under 13 ins't allowed to register anyway.. somebody born in 5000 AD equates to being -2995 yrs old and too young to register :nervous: |
|
#10
|
||||
|
||||
|
could this code be mod'd to prevent person under 18 registering? and if so how?
|
![]() |
|
|