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

Reply
 
Thread Tools
Age Lock v2.0 Beta 2 Details »»
Age Lock v2.0 Beta 2
Version: 2.5 PB, by stuie_b stuie_b is offline
Developer Last Online: Aug 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.7 Rating:
Released: 06-12-2006 Last Update: 08-18-2009 Installs: 104
DB Changes Uses Plugins Template Edits
Is in Beta Stage  
No support by the author.

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

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 03-13-2007, 09:30 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What exactly does this mod lock? Because I can't for the life of me keep people out of an area restricted to 18+. I've removed the ability to search these forums as well as added an exclude code directly to threadbit so that they don't show up on new posts. But yet, people get inn...
Reply With Quote
  #53  
Old 03-13-2007, 09:45 PM
KBV KBV is offline
 
Join Date: Aug 2004
Location: Oslo, Norway
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got it to work. Copied the content of the "Age Check - Forum Display" plugin over to "Age Lock - Show Thread"
Reply With Quote
  #54  
Old 03-14-2007, 08:08 PM
wobbly wobbly is offline
 
Join Date: Sep 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done mate, that works a treat on 3.6.5
Reply With Quote
  #55  
Old 03-14-2007, 11:27 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by stuie_b View Post
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
Fair comments

We would get users signing up with over age b/day but if they never knew or sussed this out then they might not be none the wiser, so can the phrases in the vbulletin message be changed just to show a no permission phrase
Reply With Quote
  #56  
Old 03-22-2007, 06:03 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just what i was after thx m8 :P
Reply With Quote
  #57  
Old 03-22-2007, 06:08 PM
wolfe wolfe is offline
 
Join Date: Jan 2002
Posts: 900
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

m8 in the plugin Age Lock - Global Setup your missing " . TABLE_PREFIX . "

was

Code:
function agelock_check($fid){
global $db, $vbulletin;
$agelock_qry = $db->query_first("SELECT * FROM forum WHERE forumid='".$fid."'");
$agelock_ret['locked'] = $agelock_qry['agelock']; 
$agelock_ret['method'] = $agelock_qry['agelock_method'];
$agelock_ret['age'] = $agelock_qry['agelock_age'];
$pre_year=date("Y"); 
$pre_month=date("m"); 
$pre_day=date("d"); 
$bday = explode("-", $vbulletin->userinfo['birthday']);

if($pre_month>$bday[0] || ($bday[0]==$pre_month && $pre_day>=$bday[1]) ){
$j = $pre_year-$bday[2];
}else{
$j = $pre_year-$bday[2]-1;
}
$agelock_ret['userage'] = $j;
return $agelock_ret;
}
so it should be

Code:
function agelock_check($fid){
global $db, $vbulletin;
$agelock_qry = $db->query_first("SELECT * FROM " . TABLE_PREFIX . "forum WHERE forumid='".$fid."'");
$agelock_ret['locked'] = $agelock_qry['agelock']; 
$agelock_ret['method'] = $agelock_qry['agelock_method'];
$agelock_ret['age'] = $agelock_qry['agelock_age'];
$pre_year=date("Y"); 
$pre_month=date("m"); 
$pre_day=date("d"); 
$bday = explode("-", $vbulletin->userinfo['birthday']);

if($pre_month>$bday[0] || ($bday[0]==$pre_month && $pre_day>=$bday[1]) ){
$j = $pre_year-$bday[2];
}else{
$j = $pre_year-$bday[2]-1;
}
$agelock_ret['userage'] = $j;
return $agelock_ret;
}
Reply With Quote
  #58  
Old 04-15-2007, 11:56 AM
wobbly wobbly is offline
 
Join Date: Sep 2005
Posts: 110
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Got another problem with this now. I am getting constant mails from people complaining that they cant see the locked forums, I check their user account to see that the DOB is missing. I then correct it and every time they edit their user account the DOB dissappears and I have to edit the account again.

Has anyone got a clue as to what is happening here?
Reply With Quote
  #59  
Old 04-27-2007, 12:22 AM
cajunboy2208 cajunboy2208 is offline
 
Join Date: Jan 2007
Location: Louisiana
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would like to have my guests be able to view my adult section, that way they can look and see what we have to offer and then sign up. Any way this is possible?
Reply With Quote
  #60  
Old 05-17-2007, 11:57 AM
tester987654 tester987654 is offline
 
Join Date: Jan 2007
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

basically what it is doing is,
when we try to view a forum, its checking for age restiction but when we try to view a single thread, its not checking at all,

may be developer will come with a solution for it.
Reply With Quote
  #61  
Old 05-26-2007, 03:53 PM
stuie_b stuie_b is offline
 
Join Date: Jul 2005
Location: Newcastle, UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for the long long delay in updating and fixing bugs,

Notice: This mod has been re-written and cant be used as an update! A full reinstall is required!!

1. Remove currently installed mod
2. Download the package and install again

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 06:22 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.06620 seconds
  • Memory Usage 2,309KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete