Version: 1.1, by peterska2
Developer Last Online: Nov 2013
Version: 3.6.2
Rating:
Released: 10-10-2006
Last Update: 10-11-2006
Installs: 28
Uses Plugins
Code Changes
No support by the author.
This modification allows you to set a minimum age for registration on your site.
It uses the vBulletin COPPA Cookie system, if you have it enabled, to stop people from clicking back in their browser to change the date of birth that they have entered.
The age is set via a setting in the vBOptions > User Registration Options.
[high]Important:[/high]
This is a code modification, with the addition of a product to import the setting needed for this modification to work. Therefore, the code modification part will need to be carried out on each upgrade of vBulletin.
In order for this modification to work, the COPPA setting on your site must be set to deny registrations for users aged under thirteen years. The age that they will be denied at however is set by yourself in the user registration options.
This modification is for 3.6.x only. It is tested on 3.6.0 and 3.6.2 and should work on any later versions in the 3.6.x series. It will not work on anything earlier than 3.6.0, and may not work on later series.
Reports have been made that this does not work on 3.6.3 and 3.6.4 and so I expect that it will not work on anything later than 3.6.2
I will be looking into this when I get chance, but there may not be a fix for it, so please do not try this on 3.6.3 or later.
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Did you carry out the code modifications exactly as included in the instructions. There are a few { and } which can easily be missed which it is essential that you get in the right places.
I've installed this to a 3.6.2 system and in testing find that when you receive the error restricting you from registering, you can bypass this by just clicking on the "Registration" link in the navbar, and continue on to successfully register. :ermm:
I have the exactly same problem as you.. tried everything but withno luck!
Ok, I think here is the way to solve the "bug" that I said above, which prevents users from seeing the forum rules page when they have entered an unallowed age, I have just tested on my vBulletin (3.6.3) and it works, it is a really simple step to go:
1. First of all be 100% sure that you are using 3.6.3 (latest stable release) and you have done all steps that the author of this add-on told you to.
2. No, I believe the installation has not yet been finished, just now open /register.php again, find:
PHP Code:
if ($year < 1970 OR (mktime(0, 0, 0, $month, $day, $year) <= mktime(0, 0, 0, $current['month'], $current['day'], $current['year'] - 13))) { // this user is >13 $show['coppa'] = false; $templatename = 'register_rules'; } else if ($vbulletin->options['usecoppa'] == 2) { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } eval(standard_error(fetch_error('under_thirteen_registration_denied'))); } else { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } $show['coppa'] = true; $templatename = 'register_rules'; }
Replace with:
PHP Code:
if (!$vbulletin->options['minregage']) { if ($year < 1970 OR (mktime(0, 0, 0, $month, $day, $year) <= mktime(0, 0, 0, $current['month'], $current['day'], $current['year'] - 13))) { // this user is >13 $show['coppa'] = false; $templatename = 'register_rules'; } else if ($vbulletin->options['usecoppa'] == 2) { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } eval(standard_error(fetch_error('under_thirteen_registration_denied'))); } else { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } $show['coppa'] = true; $templatename = 'register_rules'; } } elseif (!empty($vbulletin->options['minregage'])) { if (mktime(0, 0, 0, $month, $day, $year) <= mktime(0, 0, 0, $current['month'], $current['day'], $current['year'] - ($vbulletin->options['minregage']))) { // this user is > a specific age defined at admin cp $show['coppa'] = false; $templatename = 'register_rules'; } else if ($vbulletin->options['usecoppa'] == 2) { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } eval(standard_error(fetch_error('under_thirteen_registration_denied'))); } else { if ($vbulletin->options['checkcoppa']) { vbsetcookie('coppaage', $month . '-' . $day . '-' . $year, 1); } $show['coppa'] = true; $templatename = 'register_rules'; } }
See now you should have no problem. :knockedout:
ps: thanks all the same for the author who have provided such a good add-on!
Hmm I too am getting a blank page now after updating to 3.6.3
After you hit register and select the date, the next page is blank.
I went back and re-did the code chage in register.php and reinstalled the plugin with it set to overwrite.
Has anyone run into this issue with 3.6.4?
Hmm I too am getting a blank page now after updating to 3.6.3
After you hit register and select the date, the next page is blank.
I went back and re-did the code chage in register.php and reinstalled the plugin with it set to overwrite.
Has anyone run into this issue with 3.6.4?