vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - AgeLock v3.5 (https://vborg.vbsupport.ru/showthread.php?t=235780)

Cableguy69 02-13-2010 09:16 PM

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.

rajubd 02-13-2010 09:56 PM

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.

Forum Lover 02-14-2010 12:27 AM

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.

VonDoom 02-14-2010 01:21 AM

Installed and nominated... works ike a dream.. thanks for this.

messengermatt 02-15-2010 06:13 PM

Quote:

Originally Posted by stuie_b (Post 1981567)
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.

CRDeveloper 02-15-2010 06:51 PM

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? :confused:

Thanks for the help and the mod!! :)

mudkipper 02-23-2010 12:03 AM

Quote:

Originally Posted by ToxXxicas (Post 1983179)
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? :confused:

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]

stuie_b 02-23-2010 12:16 AM

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

as a quick fix, add @ to the forumdisplay_start hook

Stuie

Forum Lover 02-23-2010 01:23 AM

Stuie, I got some requests please.

stuie_b 02-26-2010 10:14 PM

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


All times are GMT. The time now is 01:43 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.01412 seconds
  • Memory Usage 1,759KB
  • 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
  • (4)bbcode_code_printable
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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