Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
AgeLock v3.5 Details »»
AgeLock v3.5
Version: 3.5b, by stuie_b stuie_b is offline
Developer Last Online: Aug 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.x Rating:
Released: 02-12-2010 Last Update: 08-07-2011 Installs: 85
DB Changes Uses Plugins Template Edits
Re-useable Code Is in Beta Stage  
No support by the author.

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


Change log
+ Added support for CMS (Blog locking is there but not usable (99.9% sure blog locking is prob. pointless, since all users would be able to age restrict posts))
+ Enable/Disable Guest Viewing of age locked forums
+ Moved Age Lock core from outdated hook (global_start) to new (global_bootstrap_init_start)
+ Removed defunct Error message
+ Added abillity to re-enable Date of Birth Editing for all users
+ Fixed Bug where Date of birth editing is still disabled for users who are exempt from Age Lock
+ Reworded Default Age Lock Messages
+ Added support for multi-level forum locking using parent lock state (instead of parent-->forum, now parent-->forum-->subforum-->..)
+ Removed over zelus agelock checking (No more queries to get lock state)
+ Removed vb 3.x support

3.5a Fixes
+ Fixed CMS bugs (missing table prefix)
+ Updated template edit to work with Vb 4.1.5

3.5b Fixes
+ Really fixes the CMS bugs (Sorry )

Please be aware although support is provided it is limited. This version is in beta so expect bugs!

enjoy

Stuie

Download Now

File Type: zip Age Lock v3.5b.zip (29.3 KB, 193 views)

Screenshots

File Type: jpg cms.jpg (46.4 KB, 0 views)
File Type: jpg forum_lock.jpg (78.2 KB, 0 views)
File Type: jpg guest_article.jpg (23.7 KB, 0 views)
File Type: jpg options_1.jpg (82.6 KB, 0 views)
File Type: jpg options_2.jpg (83.1 KB, 0 views)
File Type: jpg parent_lock.jpg (78.2 KB, 0 views)
File Type: jpg too_old.jpg (29.3 KB, 0 views)
File Type: jpg too_Young.jpg (30.0 KB, 0 views)
File Type: jpg guest_forum.jpg (22.5 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Hostboard, spencerp

Comments
  #12  
Old 02-13-2010, 09:16 PM
Cableguy69 Cableguy69 is offline
 
Join Date: Apr 2008
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed, great mod thanks.

The plus side is when a member signs up they are more likely to post there real age then discover they need to be 18 to access that section.

With Adult sections you can never be 100% sure your letting in over 18's only, but as long as you are seen to be trying that is what is important.
Reply With Quote
  #13  
Old 02-13-2010, 09:56 PM
rajubd rajubd is offline
 
Join Date: Jun 2009
Posts: 209
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you improvit to adslock. Like person who use adblocker addon on firefox can't view forum. It will be great addon maybe best addon of the year.
Reply With Quote
  #14  
Old 02-14-2010, 12:27 AM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hell of a hack! requesting to integrate with DownloadsII. Tagged.

Can we have it like this please?
+ Minor will never see any adult corner. Any post or thread or forum. Not even from any search.
+Lets have an option under "Quick Links" for adults like, "Switch on/off Agelock". So that Adults also get chance to switch it ON in front of any minors from there family and later they can go back to switch it off.
Reply With Quote
  #15  
Old 02-14-2010, 01:21 AM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and nominated... works ike a dream.. thanks for this.
Reply With Quote
  #16  
Old 02-15-2010, 06:13 PM
messengermatt messengermatt is offline
 
Join Date: Aug 2009
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stuie_b View Post
Firstly Permissions offer no extra form of protection either, seeing as you have no idea who they are anyway not to mention the level of extra work involved for the admins to "vet".

Secondly, The idea is to remove the legal ramification from the site admins, yes users can and will lie about there age but 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 it helps to cover your back by providing a service which attempts to prevent under age users viewing adult material.

On a side note if you dont need the mod fine dont use it but dont go around calling mods pointless, at the end of the day you may not need it but someone else may, i wrote this mod a while back and 100+ installs dont seem to show it being pointless!

Stuie

I guess your right but i already pay for a facility that age checks people using their credit card details if they choose to enter 18+.

It's a pricey plugin but you cannot lie about your age then, after all i wouldnt want my kids to lie about their age and then see something they shouldnt causing a whole lot of problems.
Reply With Quote
  #17  
Old 02-15-2010, 06:51 PM
CRDeveloper's Avatar
CRDeveloper CRDeveloper is offline
 
Join Date: Aug 2009
Location: Costa Rica
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi!

I just installed this mod, but i get a error code in visitor view.

I've a 100% Adult forum haha.

Lets say i blocked a forum and sub-forum and then i go to open internet explorer (for testing) as a visitor, and try to open another section of the website (that i haven't lock) and i get this

PHP Code:
WarningCannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085 
And the rest of the page is messed up.

My board threads aren't allowed to be view by unregistered members anyway, but even if i disable that the problems still there.

Right now the mod is disable, cuz i don't know what the hell?

Thanks for the help and the mod!!
Reply With Quote
  #18  
Old 02-23-2010, 12:03 AM
mudkipper mudkipper is offline
 
Join Date: Jan 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ToxXxicas View Post
Hi!

I just installed this mod, but i get a error code in visitor view.

PHP Code:
WarningCannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085

Warning
Cannot use a scalar value as an array in [path]/includes/functions.php on line 4085 
And the rest of the page is messed up.

Right now the mod is disable, cuz i don't know what the hell?

Thanks for the help and the mod!!
Im having a similar problem, in that it doesnt affect my whole board, it just shows up when a person enters a wrong password to login to the board - it does this in any browser for me when the add-on is enabled, disabling it solves this however, i would rather be able to use it!

Also mine isnt line 4085 mine is line 4124 in functions.php

Otherwise it is a good add-on ^^

[EDIT]I solved my problem by turning off the option should i hide the forum on the main Index? in the Agelock settings[/EDIT]
Reply With Quote
  #19  
Old 02-23-2010, 12:16 AM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the problem has been identified and I'll be releasing a fix asap,

as a quick fix, add @ to the forumdisplay_start hook

Stuie
Reply With Quote
  #20  
Old 02-23-2010, 01:23 AM
Forum Lover Forum Lover is offline
 
Join Date: Jun 2007
Location: Sydney
Posts: 503
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Stuie, I got some requests please.
Reply With Quote
  #21  
Old 02-26-2010, 10:14 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AgeLock v3.1A

Fixed Cannot use a scalar value
Fixed homepage notification bug (shows even when agelock is globally disabled)

For those with v3.0 already installed, the changes can be made without having to uninstall v3.0B and then install v3.1A,

Edit Plugin "global_start"

FIND
Code:
if($vbulletin->options['agelock_global'] and $vbulletin->options['agelock_hidemain']){
foreach ($vbulletin->forumcache as $key => $value){
    if (agelock_check($vbulletin->forumcache[$key]['forumid'],1)){
		$vbulletin->forumcache[$key] =0;
		 }
}
}
REPLACE WITH
Code:
if($vbulletin->options['agelock_global'] and $vbulletin->options['agelock_hidemain']){
foreach ($vbulletin->forumcache as $key => $value){
    if (agelock_check($vbulletin->forumcache[$key]['forumid'],1)){
		unset($vbulletin->forumcache[$key]);
		 }
}
}
Template Edit
"forumhome_forumbit_level1_post And forumhome_forumbit_level2_post"

FIND
Code:
<vb:if condition="$vboptions['agelock_frmnt'] AND $forum['agelock']">{vb:raw $vboptions['agelock_frmntm']}</vb:if>
REPLACE WITH
Code:
<vb:if condition="$vboptions['agelock_frmnt'] AND $forum['agelock'] AND $vboptions['agelock_global']">{vb:raw $vboptions['agelock_frmntm']}</vb:if>
However the new version of AgeLock now allows you to specify Usergroup are exempt from the Agelock check, this requires a full update!


Stuie
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 10:07 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.05355 seconds
  • Memory Usage 2,372KB
  • Queries Executed 26 (?)
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
  • (4)bbcode_code
  • (2)bbcode_php
  • (2)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
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_attachment
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete