![]() |
Require Age for new members
A few people asked for this in the mod requests and i wanted it myself but couldnt find it , so i did a bit of messing about and came up with this ... pretty easy and seems to have done the job :D
Ive run this on vBulletin 3.0.6 , but i dont see any issues on any other versions - ill give a little support , but im not always on here so it wont be major stuff. Open register.php and find (roughly line 240) : Code:
// check for missing fields Code:
Then go to Phrase Manager and add in : Make sure of the phrase type Code:
Phrase Type : Front End Error Messages and edit : enter_birth_date_controls to something like Code:
Adding your date of birth here will enable other forum visitors and thats pretty much it - your done once you upload the register.php - all members will now need to fill in the year section - though they can still lie about their age , but nothing we can do about that ! |
Thanks!
/me clicks on install |
Aftermath - i see ur boards version says 3.5 .. can you let me know if it works on 3.5 as well please ? I havent tested it on that.
Also make sure that the REQUIRE BIRTHDAY is ticked in the VB Admin - Vbulletin Options - Registration Options. *fingers crossed* |
Ok just added a little bit to make sure sign ups dont put in 0000 into the year
|
i have tried getting this to work on my 3.5.4 but it appears the way the code is written between the 2 versions is set out differently
here is how 3.5.x checks for missing fields Quote:
|
All times are GMT. The time now is 07:33 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:
|