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.

ickie 01-10-2007 07:16 PM

This is also usable/editable for each forum
admin cp
forums and moderators / forum manager
at the bottom of each forum you will see
http://www.ickie.net/ma2.jpg

Konstantinos 01-11-2007 10:07 AM

the only problem i found so far is that when u have birthdays enabled it doesnt inherit the input that u have added in the previous option and the user can is asked to reenter birthday and even that i select a birthday of less than 18 years old it got accepted. so its bugged

Xoligy 01-11-2007 04:03 PM

Good point, I'll fix that.

girlz_starlight 01-11-2007 08:14 PM

I tried this on our forums. We have forums for 18+ and it works great... but only if the user has a year entered in their birthday. If there is no year it still lets them view the content.

KURTZ 01-11-2007 11:04 PM

maybe you can set that the age is required :)

Xoligy 01-12-2007 09:29 AM

Don't worry, I have it fixed on localhost, I just need to add the guest cookie idea before releasing an update.

Unpossible 01-12-2007 01:56 PM

I've uploaded the XML via the Product & Plugin menu, do I also have to upload it to my includes/xml folder?
If not, where are the config options for it in AdminCP?

blogtorank 01-12-2007 02:04 PM

Great job on this, as I have a multi aged City forums that now they are requesting an online dating/personal service and this will come in handy! Thanks for the hack!

Xoligy 01-13-2007 09:58 AM

Quote:

Originally Posted by Unpossible (Post 1157041)
I've uploaded the XML via the Product & Plugin menu, do I also have to upload it to my includes/xml folder?
If not, where are the config options for it in AdminCP?

No you don't.

Quote:

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.

Konstantinos 01-18-2007 07:29 PM

Quote:

Originally Posted by Konstantinos (Post 1156120)
the only problem i found so far is that when u have birthdays enabled it doesnt inherit the input that u have added in the previous option and the user can is asked to reenter birthday and even that i select a birthday of less than 18 years old it got accepted. so its bugged

is this fixed now?

rjmjr69 01-28-2007 06:05 PM

Thanks very useful

NetRasta 03-15-2007 03:53 PM

I have the problem after the check. the new User must be give the bithday in the second time. Have you an modus to imported the first birthday in the second field?

calvis 04-24-2007 10:08 PM

How does this affect crawling from the search engines? Does the age restricted forums get indexed as well?

Ducks 04-29-2007 08:19 PM

like it. thanks.

sweetguy2004 05-04-2007 03:31 PM

very usefull hack and many thanks its working great as users log on if they are u18 or what ever age one has set up they can no not view adult contents under that age Admin has set up like it so much this hack many many thanks

donal 06-08-2007 04:03 PM

Presently the forums are hidden from the members below x years of age.

Can you please modify so that the forums can be shown to the members but they should get the "underage message" when they click on the link.

Konstantinos 07-11-2007 08:27 PM

Quote:

Originally Posted by Konstantinos (Post 1156120)
the only problem i found so far is that when u have birthdays enabled it doesnt inherit the input that u have added in the previous option and the user can is asked to reenter birthday and even that i select a birthday of less than 18 years old it got accepted. so its bugged

this isnt fixed yet !!!

AngelBlue 08-17-2007 12:57 AM

Switched from AgeLock to this mod because your mod hides the forums from people who can't access them, which, IMHO, is a very good thing.
I do think, however, you should:
1) Have an option to filter the other way, and only let people with a *maximum* age into a certain forum.
2) Have an option to choose whether forums which one cannot access due to age are hidden or displayed but generate an error on click.

Erox 08-25-2007 02:16 AM

Exactly what I need! Thanx!

needaltuna 10-05-2007 01:04 PM

Great, simple, effective mod. Installed!

USAMustangs.com 10-06-2007 06:11 AM

I like it, but there seems to be a loophole.

If you simply remove your birth year it will allow you access to the forum you've set the age limit on.

Cloverfield 12-12-2007 09:09 AM

I have a question, when a user signs up they must input their age. That is the first thing they have to do. Can the hack not be based on the age they enter there, because that way they won't lie because they won't know that they have to be a certain age to view a certain forum (unless its not hidden and they have tried to enter).

It's a pain having to get them to put in their birthday in their fields and even then they arn't usually telling the truth. Let me know please :)

Bruce Lee JR.. 12-19-2007 02:41 AM

This is not that great of a hack. After they see the minimum age they need to be, they can easily go back and make their age older and register again in 10 seconds and become a member of the community.

Sincerely,
Bruce Lee JR..

LCN2007 12-20-2007 04:34 AM

Is there a way to lock out the birthday after they have registered? So that they cant change it?

Konstantinos 12-23-2007 11:31 AM

Quote:

Originally Posted by Konstantinos (Post 1156120)
the only problem i found so far is that when u have birthdays enabled it doesnt inherit the input that u have added in the previous option and the user can is asked to reenter birthday and even that i select a birthday of less than 18 years old it got accepted. so its bugged

still no fix for this and its been a year :p

TCE Killa 01-02-2008 03:52 PM

I have been looking for this and it works great for vB 3.6.8. Guests and anyone under 18 can not even see if an adult section is around, while older than 18s and registered can.

Chili 04-24-2008 11:41 AM

Thanks for posting this. It helped me a lot. :up:

sambalis 04-26-2008 08:05 AM

I installed it today and I checked it.
It's working ok, but the question of age appears again on the main registration fields area!!

This is a problem!

How can it be fixed???

sunnylikbeckham 04-29-2008 04:52 PM

thats just awosome
exactly i was looking for
thanks

DiverTree 05-10-2008 08:19 PM

works on 3.7.0 :)


All times are GMT. The time now is 05:49 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.01180 seconds
  • Memory Usage 1,808KB
  • 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
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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