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)

KBV 03-13-2007 09:30 PM

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...

KBV 03-13-2007 09:45 PM

Got it to work. Copied the content of the "Age Check - Forum Display" plugin over to "Age Lock - Show Thread"

wobbly 03-14-2007 08:08 PM

Well done mate, that works a treat on 3.6.5

Bounce 03-14-2007 11:27 PM

Quote:

Originally Posted by stuie_b (Post 1007021)
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:rolleyes:

wolfe 03-22-2007 06:03 PM

just what i was after thx m8 :P

wolfe 03-22-2007 06:08 PM

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;
}


wobbly 04-15-2007 11:56 AM

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?

cajunboy2208 04-27-2007 12:22 AM

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?

tester987654 05-17-2007 11:57 AM

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.

stuie_b 05-26-2007 03:53 PM

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


All times are GMT. The time now is 11:33 AM.

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.01058 seconds
  • Memory Usage 1,741KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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