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
  #42  
Old 03-28-2011, 05:28 AM
m1thr0s's Avatar
m1thr0s m1thr0s is offline
 
Join Date: Oct 2006
Posts: 48
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

absolutely love this mod - thanks for putting the work into it!
Reply With Quote
  #43  
Old 08-04-2011, 09:30 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone been able to promote an Article while its enabled?

I get an error on this update. It doesn't seem to know the prefix of the table name
PHP Code:
UPDATE cms_article SET agelock=''agelock_method='',agelock_age='' WHERE contentid='134'
Reply With Quote
  #44  
Old 08-05-2011, 02:39 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by EdQ View Post
I get an error on this update. It doesn't seem to know the prefix of the table name
EDIT: The fix didnt really fix the CMS bug, There was a change to the way the articles are handled and agelock went the wrong way i've found the bug and fixed it this time (i promise)

Because there is a database change to make it work with 4.1.5 you will need to reinstall agelock (3.5b)

Appologies for the cock up

Stuie
Reply With Quote
  #45  
Old 08-05-2011, 04:23 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The version number in the plugin & product system still shows 3.5a

BTW this modification was a godsend for me. Thank you!
Reply With Quote
  #46  
Old 08-05-2011, 08:56 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing over it didn't work.
This is when I tried to promote an Article

PHP Code:
Database error in vBulletin 4.1.5:

Invalid SQL:
UPDATE xxx_cms_node SET agelock=''agelock_method='',agelock_age='' WHERE nodeid='135';

MySQL Error   Unknown column 'agelock' in 'field list' 
So I tried to uninstall and got this

PHP Code:
Database error in vBulletin 4.1.5:

Invalid SQL:
ALTER TABLE xxx_forum DROP `agelock` ,
DROP `agelock_parent` ,
DROP `agelock_method` ,
DROP `agelock_age`;

MySQL Error   Can't DROP 'agelock'; check that column/key exists 
Reply With Quote
  #47  
Old 08-05-2011, 09:17 PM
EdQ EdQ is offline
 
Join Date: Aug 2005
Location: Sunny San Diego
Posts: 158
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

BTW, it did promote the Article.
Reply With Quote
  #48  
Old 08-06-2011, 01:17 AM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Saw this was updated again today. Installed, set to over write... Got error... System still shows 3.5a

Code:
Database error in vBulletin 4.1.3:

Invalid SQL:
ALTER TABLE forum ADD agelock INT(1) DEFAULT '0';

MySQL Error   : Duplicate column name 'agelock'
Error Number  : 1060
Request Date  : Friday, August 5th 2011 @ 09:16:09 PM
Error Date    : Friday, August 5th 2011 @ 09:16:09 PM
Script        : http://www.MyDomain.com/forums/admincp/plugin.php?do=productimport
Referrer      : http://www.MyDomain.com/forums/admincp/plugin.php?do=productadd
IP Address    : xxx.xxx.xxx.xxx
Username      : UserID
Classname     : vB_Database_MySQLi
MySQL Version : 5.1.41-3ubuntu12.10
Reply With Quote
  #49  
Old 08-08-2011, 12:40 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Hostboard View Post
Saw this was updated again today. Installed, set to over write... Got error... System still shows 3.5a
The package was updated to reflect the correct version build! (3.5b) within an hour of your original post, However version info is irrelevant, The version number is for my internal use, it doesn't hold any weight within Agelock it's self.

Quote:
Originally Posted by Hostboard View Post
Code:
Database error in vBulletin 4.1.3:

Invalid SQL:
ALTER TABLE forum ADD agelock INT(1) DEFAULT '0';

MySQL Error   : Duplicate column name 'agelock'
Error Number  : 1060
Request Date  : Friday, August 5th 2011 @ 09:16:09 PM
Error Date    : Friday, August 5th 2011 @ 09:16:09 PM
Script        : http://www.MyDomain.com/forums/admincp/plugin.php?do=productimport
Referrer      : http://www.MyDomain.com/forums/admincp/plugin.php?do=productadd
IP Address    : xxx.xxx.xxx.xxx
Username      : UserID
Classname     : vB_Database_MySQLi
MySQL Version : 5.1.41-3ubuntu12.10
Due to the fact AgeLock 3.5 is NOT considered upgrade safe at the moment there is NO upgrade instructions! you must perform a full reinstall (uninstall and re-install) on major changes like this.

However in an effort to help everyone upgrade to the latest build without the need to re-apply each and every lock state I've attached a version of agelock which will perform the db changes needed for 3.5b, Which will hopefully address this problem.

Code:
1. Goto  ADMINCP --> Plugins & Products -->Manage Products --> Add/Import Product
2. Select "product-aglk35b (CMS Edition) UPGRADE ONLY" from the agelock package
3. Set to overwrite
4. Import
5. Upload install/agelock_upgrade.php to your vbulletin root
6. goto install/agelock_upgrade.php
7. Remove install folder
Note: The upgrade package is simply Age Lock with the Database change for vb 4.1.5, Uninstalling the upgrade pack WILL remove all traces of age Lock not just the upgrade, If your installing a fresh use "product-aglk35b (CMS Edition)"

Note2: Age Lock version 3.5b is only needed for suite editions of vbulletin. Age Lock 3.5 is fully functional for current builds of vbulletin's Forum edition (upto 4.1.5pl1).

Stuie
Reply With Quote
  #50  
Old 08-08-2011, 01:47 PM
Hostboard's Avatar
Hostboard Hostboard is offline
 
Join Date: May 2002
Location: CT
Posts: 843
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the explaination and more importantly thank you for your support and furthering this modificaiton.
Reply With Quote
  #51  
Old 08-08-2011, 03:21 PM
sbelle731 sbelle731 is offline
 
Join Date: Jun 2011
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am having the issue where our members are not able to set the privacy for their birthdates. I know this mod prevents them from editing the date of birth, but does it also prevent them from displaying it as well? Any usergroup excluded from the agelock mod does not have this problem.

A few weeks ago, our forum crashed and we've had to reupload several mods because of it. I'm just not sure if the issue I'm having is a feature of the Age Lock mod, or if it is something else that is still screwed up LOL. I don't want to run around trying to fix something that isn't broke.
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 05:36 AM.


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.05573 seconds
  • Memory Usage 2,367KB
  • 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
  • (3)bbcode_code
  • (3)bbcode_php
  • (3)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
  • (4)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