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!