vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Minimum Age For Registration (https://vborg.vbsupport.ru/showthread.php?t=128784)

peterska2 10-30-2006 09:26 AM

Please check your plugin manager and if there is a plugin called "Check Age" Delete it.

katerri 10-30-2006 09:33 AM

Quote:

Originally Posted by peterska2
Please check your plugin manager and if there is a plugin called "Check Age" Delete it.

No. Just the Flashchat Integration Plugins (1) through (5).

peterska2 10-30-2006 09:44 AM

Odd, as it's working for other people. :confused:

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.

Cocko 11-12-2006 11:28 AM

good idea for this hack - but why this blank page ?
(deinstalled)

ttk_2k 11-20-2006 08:46 PM

Quote:

Originally Posted by katerri (Post 1107360)
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!

ttk_2k 11-20-2006 10:20 PM

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(000$month$day$year) <= mktime(000$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 '-' $year1);
                }
                eval(
standard_error(fetch_error('under_thirteen_registration_denied')));
            }
            else
            {
                if (
$vbulletin->options['checkcoppa'])
                {
                    
vbsetcookie('coppaage'$month '-' $day '-' $year1);
                }
                
$show['coppa'] = true;
                
$templatename 'register_rules';
            } 

Replace with:

PHP Code:

if (!$vbulletin->options['minregage'])
        {
            if (
$year 1970 OR (mktime(000$month$day$year) <= mktime(000$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 '-' $year1);
                }
                eval(
standard_error(fetch_error('under_thirteen_registration_denied')));
            }
            else
            {
                if (
$vbulletin->options['checkcoppa'])
                {
                    
vbsetcookie('coppaage'$month '-' $day '-' $year1);
                }
                
$show['coppa'] = true;
                
$templatename 'register_rules';
            }
        }
        elseif (!empty(
$vbulletin->options['minregage']))
        {
            if (
mktime(000$month$day$year) <= mktime(000$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 '-' $year1);
                }
                eval(
standard_error(fetch_error('under_thirteen_registration_denied')));
            }
            else
            {
                if (
$vbulletin->options['checkcoppa'])
                {
                    
vbsetcookie('coppaage'$month '-' $day '-' $year1);
                }
                
$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!

JGM007 12-13-2006 10:22 PM

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?

MistaMarkael 01-06-2007 03:43 AM

Quote:

Originally Posted by JGM007 (Post 1138103)
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?

i have the same problem with 3.6.4

no fix yet?

peterska2 01-06-2007 01:14 PM

I've not upgraded yet, and so have not had chance to look at how it works on the latest version.

tawnygirl 01-16-2007 05:50 AM

:D *subscribes to this thread for news of updated version that works in 3.6.4*


All times are GMT. The time now is 08:24 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
  • Page Generation 0.01097 seconds
  • Memory Usage 1,782KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete