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
  #12  
Old 10-11-2006, 04:42 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whats your gmail?
Only 2 basic .php edits and a plugin . I don't see where I went wrong
Reply With Quote
  #13  
Old 10-11-2006, 07:11 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks!
Reply With Quote
  #14  
Old 10-11-2006, 12:35 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As soon as I modify my register.php the register system gives this message "Sorry, we are unable to register your account at this time."

I'm finding the extra bracket in the instructions here a bit confusing
Quote:
FIND (around line 132)

}
Reply With Quote
  #15  
Old 10-11-2006, 12:47 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok I think I have it working but there may be a bug. As a test I put my options to min age 18. I click register and it asked for a DOB I put in 1/1/1990 and proceed. I get the error "Sorry, we are unable to register your account at this time." Now if I click the register link again I get taken to the rules page and I'm able to complete the registration.
Reply With Quote
  #16  
Old 10-11-2006, 01:25 PM
MusicMan MusicMan is offline
 
Join Date: Nov 2005
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Isn't this already a default feature in 3.6.x? I'm confused why a hack is needed to add a coppa cookie when it's already there if you want it.

Reply With Quote
  #17  
Old 10-11-2006, 01:37 PM
webspider webspider is offline
 
Join Date: Jun 2003
Location: Canada
Posts: 175
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The difference is age 13 to age 18 or whatever age you want to set.
Reply With Quote
  #18  
Old 10-11-2006, 11:25 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Shazz
Whats your gmail?
Only 2 basic .php edits and a plugin . I don't see where I went wrong
peterska2 [at] gmail.com
Reply With Quote
  #19  
Old 10-11-2006, 11:27 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webspider
Ok I think I have it working but there may be a bug. As a test I put my options to min age 18. I click register and it asked for a DOB I put in 1/1/1990 and proceed. I get the error "Sorry, we are unable to register your account at this time." Now if I click the register link again I get taken to the rules page and I'm able to complete the registration.
I'm reinstalling this on a fresh install of 3.6.2 in the next 30 mins. I'll come back with further details then on how it went and any fixes if required.
Reply With Quote
  #20  
Old 10-11-2006, 11:30 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MusicMan
Isn't this already a default feature in 3.6.x? I'm confused why a hack is needed to add a coppa cookie when it's already there if you want it.

The COPPA System allows to block registrations by under 13's, or to allow parent/guardian consent before their account is activated. However, some people prefer to require their users to be at least an age which isn't 13. This allows them to set the minimum age that users need to be to register for their site.
Reply With Quote
  #21  
Old 10-11-2006, 11:32 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by peterska2
peterska2 [at] gmail.com
I tried that last night, Email couldn't be found in the system
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:10 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.08253 seconds
  • Memory Usage 2,306KB
  • Queries Executed 25 (?)
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
  • (5)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
  • (3)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_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