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 Lock v2.0 Beta 2 (https://vborg.vbsupport.ru/showthread.php?t=118496)

stuie_b 06-12-2006 10:00 PM

Age Lock v2.0 Beta 2
 
Quote:

----------------------
Whats it all about?
----------------------
Age Lock is an all-in-one Forum locking facility that works off the users age instead of there permissions
It gives you the ability to keep those Under 18's out of your adult section :D

IMPORTANT NOTICE: Please Make sure you uninstall any currently installed versions prior to
installing this version!! THIS IS A MUST DUE TO MAJOR CODE CHANGES!

---------------
Installaiton?
---------------

- Log into you Admin Control Panel -
#############################################
-----------------------------------------------
1.) Find Plugin System
2.) Click Manage Products
3.) Click [Add/Import Product]
4.) Under Import Product
5.) Select the Product-AgeLock.xml file
6.) Make sure Allow Overwrite is turned OFF!
7.) Press Import
-----------------------------------------------

Supported versions (tested versions! may be compatible with other versions):
Quote:

Stable Builds: 3.5.1, 3.5.4, 3.7.x,3.8.x

Beta Builds: 3.6.0 Beta 2, 3.6.7, 3.6.7 PL1
Total Template edits: 0
Total File Modifications: 0
Total Plugins: 1
Total Hooks Used: 7
Total extra sql querys: 0

Make sure to read the txt files before installing!!!
limited support will be provided!


enjoy and dont forget to click install :)

Stuie B

stuie_b 06-13-2006 07:48 PM

Reserved!

Injektilo 06-13-2006 08:06 PM

does it work for vb3.5.4?

stuie_b 06-13-2006 09:41 PM

Yes it supports 3.5.4

The Realist 06-14-2006 08:25 AM

So whats stopping anyone saying they are over 18 when they are not.

Neal-UK 06-14-2006 08:28 AM

Well at least you are trying to stop them from looking, therefore their parents can't have a go at you but only themselves for not watching their child. Plus, it complies with USA legislation doesn't it?

stuie_b 06-14-2006 09:28 AM

Quote:

So whats stopping anyone saying they are over 18 when they are not.
Nothing, it works on the basis that you trust your members. it's impossible for you to prevent people signing up with a fake bday unless you required proff of there D.O.B, however as Neal-UK points out it helps to cover your back by providing a service which attempts to prevent underage viewing of adult material.


thanks

Stuie B

utw-Mephisto 06-14-2006 12:51 PM

I should have had that earlier :) In the moment I solved the "problem" what I had a usergroup with a disclaimer where people agreed to be 18 or over when joining .. but this is way better ...

[high]* utw-Mephisto installs[/high]

Snake 06-14-2006 04:57 PM

Thanks seem to work just fine on 3.5.4...

bada_bing 06-14-2006 06:56 PM

Little confussed? If I have a site that contains both 18 and up forums and teenage allowed forums can I set which forums to be tagged with must be 18 or is this a global setting?

What would be cool is if the system lets you register even if you are under 18 but you can set what forums you must be 18 to enter. I have my site setup that way and it works sweet.

You can register with any age with a disclaimer that some forums you must be at least 18 to enter but I allow all age registrations. When that registered member tries to enter a forum that is for "Adults Only" they are prompted with a warning and they must agree that they are 18 years of age to enter but the down fall is that my age verification prompt does not check with the registered bday but is good enough to be comlient since the member is having to check a box and agree that they are 18 years of age and its logged.

You can see it here www.seekingadultfriends.com

stuie_b 06-15-2006 02:12 PM

Quote:

Little confussed? If I have a site that contains both 18 and up forums and teenage allowed forums can I set which forums to be tagged with must be 18 or is this a global setting?
You can set up a rule on a forum too forum basis,
Age Lock allows you to specify how old or young they have to be before they can access the forum.

So you can have a forum that is only for under 18's, which would prevent anyone older than 18 to enter it while at the same time you could have another forum which is for over 18's

Stuie

thedvs 07-08-2006 12:33 PM

this is very handy for our board, thank you.

however, would it be possible to do it so some usergroups are immune to the check?

Derekclarke 07-08-2006 08:18 PM

Question,

has the upload folder been placed in the wrong place in the zip file?

or do you not upload the files for version 3.6?

the only upload folder is in vb3.5.1

Thanks
Derek

HMBeaty 07-09-2006 01:34 AM

Quote:

Originally Posted by Derekclarke
Question,

has the upload folder been placed in the wrong place in the zip file?

or do you not upload the files for version 3.6?

the only upload folder is in vb3.5.1

Thanks
Derek

Same question I was JUST about to come on here and ask

stuie_b 07-20-2006 09:38 AM

there are no uploads required for 3.6 you simply need to install the plugin file and do the template changes, sorry for not being so clear

:)

Stuie B

SCORPION1 07-24-2006 10:30 PM

very very usefull nice addon m8y good work

Staxed 07-25-2006 07:53 AM

does this only work on a forum basis or can i make it so people can't even register unless they are of a certain age?

louis_chypher 07-25-2006 12:23 PM

FYI:

Age Lock - Global Setup

changed:

PHP Code:

$agelock_qry $db->query_first("SELECT * FROM forum WHERE forumid='".$fid."'"); 

To:
PHP Code:

$agelock_qry $db->query_first("SELECT * FROM " TABLE_PREFIX "forum WHERE forumid='".$fid."'"); 

The query in the global_start hook did not have the TABLE_PREFIX included in the query making the modification fail on my board. With the change as indicated above the modification now works. For Ver 3.5.X


Thank you very much. I NEEDED this!

louis_chypher 07-25-2006 12:31 PM

Is the age inclusive or exclusive?

inclusive: I want the forums to be only access to those who are 18 or older I enter 18 as the age lock.

exclusive: I want the forums to be only access to those who are 18 or older I enter 17 as the age lock.

If using the exclusive scheme will someone who has turned 17 and two months old have access?

HMBeaty 07-25-2006 05:29 PM

Got a database error after installation trying to see if it worked or not, and it doesn't for me.....

Code:

Database error in vBulletin 3.6.0 Release Candidate 2:

Invalid SQL:
SELECT * FROM forum WHERE forumid='14';

MySQL Error  : Table 'Redline.forum' doesn't exist
Error Number : 1146
Date        : Tuesday, July 25th 2006 @ 11:25:06 AM
Script      : http://www.redlinemotorsports.org/forum/forumdisplay.php?f=14
Referrer    : http://www.redlinemotorsports.org/forum/index.php
IP Address  : XX.XXX.XXX.XXX
Username    : XXXXXXX
Classname    : XX_XXXXXXXX


louis_chypher 07-26-2006 12:20 PM

Quote:

Originally Posted by Redlinemotorsports
Got a database error after installation trying to see if it worked or not, and it doesn't for me.....

Code:

Database error in vBulletin 3.6.0 Release Candidate 2:

Invalid SQL:
SELECT * FROM forum WHERE forumid='14';

MySQL Error  : Table 'Redline.forum' doesn't exist
Error Number : 1146
Date        : Tuesday, July 25th 2006 @ 11:25:06 AM
Script      : http://www.redlinemotorsports.org/forum/forumdisplay.php?f=14
Referrer    : http://www.redlinemotorsports.org/forum/index.php
IP Address  : XX.XXX.XXX.XXX
Username    : XXXXXXX
Classname    : XX_XXXXXXXX


See post number 18 on how to fix it.

In the plugin system | plugin manager | global_start hook edit Age Lock - Global Setup as per post 18 "To:". The "TABLE_PREFIX" was left off the query.

HMBeaty 07-27-2006 01:06 AM

Ok, next question....this.....
Quote:

Older or Younger?
Should the user be older or younger. (Younger or Older)
The default value is '0', but what do you put to determine the 'Older' or 'Younger'?

louis_chypher 07-27-2006 02:24 PM

Quote:

Originally Posted by Redlinemotorsports
Ok, next question....this.....

The default value is '0', but what do you put to determine the 'Older' or 'Younger'?

Type in "Older" or "Younger"

mattrix18 08-10-2006 07:41 AM

Does this work on the new vBulletin version?

Tyegurl 08-10-2006 12:30 PM

yes it does

webspider 08-15-2006 03:02 PM

This is a pretty good hack but it would be nice to be able to set a global min age. I only allow users 16 and older to register then 18 and older to view certain forums.

simon. 08-27-2006 04:06 PM

Can I just lock off one forum,

Example:-

User who is 12.



She can see all the forums, but she cannot access adults chat, but can access Kids chat and not Teens, or will this hack lock out everything?

So can I set mulitple ages up;

Adults 18
Teens 13
Kids 12 and under

and if I lock it will it lock everything?

louis_chypher 08-27-2006 08:30 PM

Quote:

Originally Posted by simon.
Can I just lock off one forum,

Example:-

User who is 12.

Yes.

Quote:

Originally Posted by simon.
She can see all the forums, but she cannot access adults chat, but can access Kids chat and not Teens, or will this hack lock out everything?

Yes/No, depends on the choices you make.

Quote:

Originally Posted by simon.
So can I set mulitple ages up;

Adults 18
Teens 13
Kids 12 and under

Yes, on a per forum basis.

Quote:

Originally Posted by simon.
and if I lock it will it lock everything?

Yes/No, depends on the choices you make.

ntl-guy 08-28-2006 01:39 PM

Excellent product, Thankyou :)

webspider 08-28-2006 06:00 PM

What about a global age lock? No registrations under XX? Better yet let them register then lock them.

Dilldogs 08-28-2006 09:24 PM

Once off bata I will use.

mrcrx 08-29-2006 11:38 AM

Quote:

Originally Posted by louis_chypher
FYI:

Age Lock - Global Setup

changed:

PHP Code:

$agelock_qry $db->query_first("SELECT * FROM forum WHERE forumid='".$fid."'"); 

To:
PHP Code:

$agelock_qry $db->query_first("SELECT * FROM " TABLE_PREFIX "forum WHERE forumid='".$fid."'"); 

The query in the global_start hook did not have the TABLE_PREFIX included in the query making the modification fail on my board. With the change as indicated above the modification now works. For Ver 3.5.X


Thank you very much. I NEEDED this!


What program do I use to edit an xml file?

Notepad worked.

mrcrx 08-29-2006 11:56 AM

ok, got it working. Great hack.

JenniferK 08-29-2006 06:45 PM

OK, I seem to be the only one having this problem, so I must be blind - but I'm not seeing where to set this up the way I want it after it is installed.....

JenniferK 08-29-2006 10:43 PM

OK, nevermind, I found it (by going into the forum edit) - but I have a new question:

I have a forum for teens and have it set so that users should be younger than 20. When I try to test it, if not logged in the forum shows and gives the appropriate message when the forum is clicked. But when I log in as my test user, the forum does not display at all. Further, when I log in as my teen test user (which should have access) the forum still does not display. Can anyone tell me what I might be missing?

Lionsault 09-04-2006 06:52 AM

I've got a little question.

I installed this hack, but I have people who have posted in previous threads in the locked forum who are able to maintain their posting. They can't post in anything else, but can post in this thread that they've been posting in for a while.

Any way to fix that?

murdo 09-07-2006 11:13 AM

I have the same question as someone else, how do you determine wether the lock should be for older or younger? default value is 0 ...

Daky 09-28-2006 10:52 PM

Heya
I just installed this hack on my vbulletin 3.6.1 it works, but i have a problem.

What actually happens is that registered users under age of 16 actually are able to access the page from "navbars" link "NEW POSTS", or even from a dirrect link., otherwise script works if underage users try to access directly from index page.

Any1 else having the same problem?

If someone knows how to fix this, please share with me.

Thank you

Hollanda 10-04-2006 06:23 PM

I've got the same problem, also can the people that have already posted still see their post's.
Quote:

Originally Posted by Daky
Heya
I just installed this hack on my vbulletin 3.6.1 it works, but i have a problem.

What actually happens is that registered users under age of 16 actually are able to access the page from "navbars" link "NEW POSTS", or even from a dirrect link., otherwise script works if underage users try to access directly from index page.

Any1 else having the same problem?

If someone knows how to fix this, please share with me.

Thank you


Daky 10-07-2006 07:23 PM

Well lets hope we are going to see fix some time soon! :confused:

Idea of hack is nice, just if it was working properly :)


All times are GMT. The time now is 03:17 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.01450 seconds
  • Memory Usage 1,838KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (14)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
  • (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