Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Minimum Age For Registration Details »»
Minimum Age For Registration
Version: 1.1, by peterska2 peterska2 is offline
Developer Last Online: Nov 2013 Show Printable Version Email this Page

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.

Comments
  #32  
Old 10-30-2006, 09:26 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please check your plugin manager and if there is a plugin called "Check Age" Delete it.
Reply With Quote
  #33  
Old 10-30-2006, 09:33 AM
katerri katerri is offline
 
Join Date: May 2005
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #34  
Old 10-30-2006, 09:44 AM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Odd, as it's working for other people.

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.
Reply With Quote
  #35  
Old 11-12-2006, 11:28 AM
Cocko Cocko is offline
 
Join Date: Oct 2006
Location: Germany
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea for this hack - but why this blank page ?
(deinstalled)
Reply With Quote
  #36  
Old 11-20-2006, 08:46 PM
ttk_2k ttk_2k is offline
 
Join Date: Nov 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by katerri View Post
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!
Reply With Quote
  #37  
Old 11-20-2006, 10:20 PM
ttk_2k ttk_2k is offline
 
Join Date: Nov 2006
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #38  
Old 12-13-2006, 10:22 PM
JGM007 JGM007 is offline
 
Join Date: Jun 2002
Posts: 71
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #39  
Old 01-06-2007, 03:43 AM
MistaMarkael MistaMarkael is offline
 
Join Date: Dec 2005
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JGM007 View Post
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?
Reply With Quote
  #40  
Old 01-06-2007, 01:14 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've not upgraded yet, and so have not had chance to look at how it works on the latest version.
Reply With Quote
  #41  
Old 01-16-2007, 05:50 AM
tawnygirl tawnygirl is offline
 
Join Date: Jan 2006
Location: I <3 NY
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*subscribes to this thread for news of updated version that works in 3.6.4*
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04729 seconds
  • Memory Usage 2,349KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete