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-10-2006 10:00 PM

Minimum Age For Registration
 
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.

dieselpowered 10-11-2006 12:29 AM

Great idea!!

Shazz 10-11-2006 12:38 AM

/me installs thanx!

shadowevil 10-11-2006 12:42 AM

Good job :) .... *installed*

Shazz 10-11-2006 12:44 AM

Wait Im confused.
There are 2 parts of the
PHP Code:

    {
        
$dob explode('-'$coppaage);
        
$month $dob[0];
        
$day $dob[1];
        
$year $dob[2];
    } 

Which one to ADD BELOW? The first or the second?

peterska2 10-11-2006 01:04 AM

The one that appears around line 100 (thats the first one if you don't have a line numbered editor)

Shazz 10-11-2006 03:58 AM

As you see here, for some reason when I have this installed it always refreshes and your stuck on this page
Then when I uninstalled it, it worked went back to normal no problems ... :(

peterska2 10-11-2006 04:05 AM

did you put the code in the right places and have the settings correct?

Shazz 10-11-2006 04:14 AM

Quote:

Originally Posted by peterska2
did you put the code in the right places and have the settings correct?

Yes, Followed every step corretly, I could attach my resigter.php . Settings are right in the admincp. :cross-eyed:
Wondering if anyone else has problems relating to this?

peterska2 10-11-2006 04:21 AM

I'll reinstall it again tonight on a fresh install 3.6.2 to make sure.

If you want to email your register.php to me @gmail.com then I'll check it over against my copy too.


All times are GMT. The time now is 03:18 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.01216 seconds
  • Memory Usage 1,738KB
  • 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
  • (1)bbcode_php_printable
  • (1)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