vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Age verification (https://vborg.vbsupport.ru/showthread.php?t=63326)

gldtn 04-02-2004 03:09 AM

Age verification
 
Hello everyone,

Under "admincp > vBulletin Options > User Registration Options > Use COPPA Registration System" you can choose to deny registration for users under the age of 13.. so I was wondering if there is a way to bring the age up to 18 somehow.

thanks for the attention!

Scrub 04-02-2004 04:20 PM

A quick edit is all that is needed.

In register.php find:
PHP Code:

    if ($year < ($current['year'] - 13) OR ($year == ($current['year'] - 13) AND $month <= $current['month'])) 

And replace that with:
PHP Code:

    if ($year < ($current['year'] - 18) OR ($year == ($current['year'] - 18) AND $month <= $current['month'])) 

And enable the option to deny registration to anyone under 13. It'll work still. Tested it and everything. So hopefully it work for you. :eek:

Boofo 04-02-2004 04:22 PM

Wouldn't there be a way to also change that option to read 18, too?

Scrub 04-02-2004 04:23 PM

Erm, would have to look into that. :p

Boofo 04-02-2004 04:25 PM

How about phrases? ;)

Scrub 04-02-2004 04:30 PM

Search for the phrase deny_under_13_registration in Control Panel Options and change the text to: Deny registration for users aged under 18 years.

Boofo 04-02-2004 04:32 PM

There you go. Now you have a hack you can release. ;)

Scrub 04-02-2004 04:33 PM

Naaa. I'll let someone else have the privliage. ;). I'm just happy that I was finally able to help someone. :D

gldtn 04-02-2004 05:23 PM

Easiest hack I had to install :P Thanks a lot for the help guys..

Appreciated

Champster 09-23-2006 03:15 PM

I have a remedial question about this but should I make the changes via the server through my cPanelX?


All times are GMT. The time now is 10:43 PM.

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.01778 seconds
  • Memory Usage 1,725KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete