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)

meera 11-06-2006 03:29 PM

It work nice,.

shavedaccord 11-06-2006 08:36 PM

does not work on 3.6.2

cavyspirit 11-12-2006 08:58 PM

I actually want anyone to be able to view the posts, I just want to limit one forum to 21 or over to create or edit posts. Is this possible?

noonespecial 11-29-2006 07:09 AM

The forum lock works - however if a user clicks the "last post" - from the forum home page they can view that thread.

Scormen 11-29-2006 09:34 AM

Great idea, I would like to use it. But is it possible to update this hack to the last version of VB (at this moment: 3.6.4)?

Thanks,
Kris

Yukino_AE 12-14-2006 07:27 PM

it works on vb 3.6.4, i have it, the only problem i'm finding is what was being said before that "if a user clicks the "last post" - from the forum home page they can view that thread."

once this is resolved this would be an awesome hack. also if anyone has a problem with the hack not reading the vb table prefix refer to post 18, tells you how to fix it. ^_^

mugz 01-02-2007 08:54 PM

Quote:

Originally Posted by Yukino_AE (Post 1138678)
it works on vb 3.6.4, i have it, the only problem i'm finding is what was being said before that "if a user clicks the "last post" - from the forum home page they can view that thread."

once this is resolved this would be an awesome hack. also if anyone has a problem with the hack not reading the vb table prefix refer to post 18, tells you how to fix it. ^_^


installed this mo and its great this is my only problem as well with it :cool:

Eq4bits 01-18-2007 11:12 PM

I installed, did the template changes and started getting vb database errors immediately
that the table *******_****.forum didn't exist,
uninstalled and everything is fine now
is there a manual fix to a d/b table that I can do via phpMyAdmin as I'd really like to use this.
running vb3.6.4

unforsaken 02-25-2007 06:11 PM

Eq4bits....yes read the 2nd page its in there

Rickeo 03-13-2007 06:32 PM

Great mod thanks so much just what I needed however I need 1 thats for male and female restictions as well :)

~Rick~

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

unforsaken 05-26-2007 07:54 PM

great update stuie...just had to uninstall it earlier as i lost all ability to view threads with a db error...excellent timing...excelent work all around, you seem to have fixed all issues i have ever had with this...I'm def not

dope15gd 05-27-2007 02:48 AM

this seems like an awesome mod. I'm gonna check it out some time soon.

thanks

Eladesor 06-14-2007 09:38 AM

Excellent addon for my forum - just what I need :)

(now to figure out how to prevent user from changing their age via their CP once they have registered ;) ) .

G0F0RBR0KE 06-14-2007 10:27 AM

<font color="red">Reserved</font>

stuie_b 07-26-2007 01:48 AM

Quote:

Originally Posted by Eladesor (Post 1268282)
Excellent addon for my forum - just what I need :)

(now to figure out how to prevent user from changing their age via their CP once they have registered ;) ) .


Do the template edit provided, that should remove the bday options from the usercp but not register.


Stuie

Andyucs 07-28-2007 06:45 PM

i get this in 3.6.8

%1$s, you do not have permission to access this page. This could be due to one of several reasons:

any ideas the bold part is the problem

AngelBlue 08-17-2007 12:54 AM

Good mod, however :
1) If I set up an "Over 18s" forum, it STILL shows in the forum list to under 18s. This is not good. It makes them curious :(
2) When setting things in the vBulletin control panel, you should use a drop down menu (defaulting to "older") rather than a text entry field.

I've had to uninstall this mod because my teen users were complaining that there were forums they could not see. I've installed this mod instead. I do think that Age Lock is a better mod, however, it lacks the ability to hide forums from the forum list. If it had that feature I'd definately use it instead.

stuie_b 08-17-2007 11:11 AM

Quote:

Originally Posted by AngelBlue (Post 1319323)
Good mod, however :
1) If I set up an "Over 18s" forum, it STILL shows in the forum list to under 18s. This is not good. It makes them curious :(
2) When setting things in the vBulletin control panel, you should use a drop down menu (defaulting to "older") rather than a text entry field.

I've had to uninstall this mod because my teen users were complaining that there were forums they could not see. I've installed this mod instead. I do think that Age Lock is a better mod, however, it lacks the ability to hide forums from the forum list. If it had that feature I'd definately use it instead.

Hi AngelBlue,
thanks for the comments,

however i dont see the advantage of hiding forums from visitors, maybe this is just me but i want my visitors too see what they can get?? i know in most cases if they see an adult section they will make a new account old enough to gain access but that's the choice of the user, it also passes any legal implacations onto them and off you

that said the next update will (hopefully :) ) include this feature as an extra option for those who do wish to hide them.

On another note any feature request would be greatful.

Thanks

Stuie

Alfa1 08-17-2007 12:11 PM

Does this work smoothly with 3.6.8?
Is there an ETA for the stable release? I see this is still in Beta stage.

A feature request: if the template modification for this hack is more than one line, then please add a Template Modification System XML.

AngelBlue 08-17-2007 10:32 PM

Quote:

Originally Posted by stuie_b (Post 1319517)
however i dont see the advantage of hiding forums from visitors

When I made my first 18+ forum, I got a bunch of drama on my forums. Teens were complaining about there being an 18+ forum that they couldn't go to.

Forums can generate enough drama as is. No reason to encourage people to generate more.

Plus, it helps to cut down the forum display list when you have a big forum with lots of sub-forums.

m002.p 08-20-2007 06:03 PM

Well as an admin, your the one who owns or controls the forum. If you decide to have an 18+ forum then that is your responsibility to deal with. This mod is an age lock; it is supposed to stop those underage from entering the forum, its not a mod to "hide" the forums, I agree with Stuie, there is no point to that. Just put your members straight dont be bullied by those under 18. Its simple your forum says "over 18's" only. Plus its obviously 18+ for a reason most likely involving the law, so really there is no arguement.

Its like going into a porn shop under 18 and complaining to the shopkeeper you can't buy anything. You can see the shop and what it is, but are under age to purchase; tough luck. You wouldnt go inside kicking up a fuss now lol

Ive had great success with this mod, my forum says clearly its 18+ for a reason and ive had no complaints or "drama". The ironic thing is; most of my members are under 18 anyway ;)

AngelBlue 10-07-2007 10:26 PM

My forum places great importance on users being honest, due to the sensitive nature of the topics we deal with.

Therefore, encouraging <18 year old visitors to lie about their age when they sign up just so they can access the 'adult' forum is a bad thing. Not only does it encourage them towards bad ways, but it also undermines the culture of honesty which I am proud of on my forum.

Alfa1 10-09-2007 03:19 PM

Can I use this hack to disallow all under-age members to view any forum? I know I can do this by editing all 190 forums one by one, but I am not going to do that. Is there a global way to cut under-aged members off from viewing all forums?

m002.p 10-13-2007 09:43 PM

Quote:

Originally Posted by AngelBlue (Post 1355092)
My forum places great importance on users being honest, due to the sensitive nature of the topics we deal with.

Therefore, encouraging <18 year old visitors to lie about their age when they sign up just so they can access the 'adult' forum is a bad thing. Not only does it encourage them towards bad ways, but it also undermines the culture of honesty which I am proud of on my forum.

Yes, and there is only one chance to register, not two. If they get it wrong first time, then I wouldnt be inclined to call it an honest forum. You never know who lies about their age out there, and still as the admin or an admin of the forum you are responsible of trusting your users and ensuring the over 18 forums are as censored as much as possible.

I can see where you come from regarding hiding the forums, but then again you could hide those adult forums from guest view anyhow in addition to the age lock. If they lie at registeration then they can access the offending forum whether hidden or restricted to under 18s like this mod. However they are less likely to lie for the specific reason of wanting to access adult content.

I really cant see the difference....

l3it3r 10-16-2007 10:56 AM

Works beautifully!

FoxSmith 02-19-2008 12:03 AM

Testing...thanks....

Pacman15 03-06-2008 08:42 PM

Why aren't my moderators and/or administrators immune to the Age lock??

davewmack 05-20-2008 01:11 PM

is there a 3.7 version of this?

ales2cv 06-06-2008 03:20 PM

on 3.7 too

tirol07 08-15-2008 08:34 AM

Its great hack, because it doesnt work in 3.7!!!!


All times are GMT. The time now is 02:53 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.01696 seconds
  • Memory Usage 1,822KB
  • 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
  • (6)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