vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Miscellaneous Hacks - Age based premissions for registering and viewing forums (https://vborg.vbsupport.ru/showthread.php?t=136097)

Xoligy 01-09-2007 10:00 PM

Age based premissions for registering and viewing forums
 
This is based on this 3.5 plug-in. Although it uses the same hook locations and similar phrases, I ended up recoding it so none of the original code is used. To install simply download and install the XML file via the Plugin & Product manager. You can then alter the registration requirements via the vBulletin Settings option and the minimum age to view a specific forum by editing it using the forum manager - again it should appear near the bottom.

New features:
  • Updated for vBulletin 3.6.4 (should work on 3.6.x)
  • More accurate (the previous only checked month and year).

Original features:
  • Specify minimum age required to register.
  • Limit access to forums based on age.

Disclaimer:
Because users can lie about their age, this many not fulfil the legal requirements for adult content. I accept no responsibility for how this is used.

You're free to do what you like with this code, although credit is appreciated, it's not required.

Brought to you by eXaltic - vBulletin skins.

ickie 01-10-2007 01:46 PM

seems to work fine
this stops the members who register without a birthday, lol

instructions
plugin and product
upload as a product

to find,
go to vbulletin options / user registration options, and it is at the bottom
http://www.ickie.net/ma.jpg

projectego 01-10-2007 01:49 PM

Nice idea! Thanks. :)

ickie 01-10-2007 02:03 PM

here is how it looks when they click to register
http://www.ickie.net/reg.jpg

this is what they see if they are too young
http://www.ickie.net/reg1.jpg

KURTZ 01-10-2007 02:04 PM

i'm very interested in this hack, BUT i need this hack only if i can set a min. age to view a SPECIFIC forum no only for the registrations ... can you improve it?

Xoligy 01-10-2007 02:21 PM

Set the registration age to 0 to disable it. This plug-in does allow you to set the age for a specific forum. Simply edit the forum and at the bottom you should see the option.

Thanks ickie, I'll add some instructions.

KURTZ 01-10-2007 02:34 PM

Quote:

Originally Posted by Xoligy (Post 1155511)
Set the registration age to 0 to disable it. This plug-in does allow you to set the age for a specific forum. Simply edit the forum and at the bottom you should see the option.

Thanks ickie, I'll add some instructions.

sorry you're right!!! :)

great hack!

Stunner 01-10-2007 03:49 PM

Good job on this hack!

puertoblack2003 01-10-2007 05:23 PM

Good hack and installed but notice on a test run guest won't be able to view content of post like using the default rule and until they register .It will be nice to add a disclaimer then they'll be allow to view.

-pb

Xoligy 01-10-2007 06:59 PM

Good idea puertoblack2003, I'll expand it so they are shown the age form and a cookie is set with their age. However I want to make sure there are no problems with this one so I probably won't implement it until Friday.


All times are GMT. The time now is 12:04 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.05072 seconds
  • Memory Usage 1,734KB
  • 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_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