![]() |
Still awaiting an answer. I thought that this mod was supported.
|
Quote:
In answer to your question guest are not exemptable in this version, they are in the latest version which is still under development and at the min there is no eta (problems :) ), however since you seem hell bent on this here is a modded version of the code which will enable guest viewing Edit Global_start hook (Age Lock - Global Setup) and replace all with PHP Code:
Stuie |
Thank you! No need to get salty. A simple acknowledgement of my message would have prevented my sending another message, "7 days later". Anyway, thank you for your efforts.
|
FYI, the code works for allowing guests but it would appear that the sub forums locking isn't working real well. It locks the first tier under the category but anything below that is open.
ie. Underground is locked to over 18 the sub of Others is also locked but all of the subs under Others, is wide open. I didn't notice if that was an issue in 3.1 or just the modified code above. |
Hello,
We have a board with 148 forums and subforums. On each page load your plugin will query the database for all forums and it managed to fill a 100Mbps pipe line to the mysql server. The agelock_populate function should use the forumcache instead of querying the database every time. Regards, Darksoul |
Latest version of Age Lock has now been attached,
Its recommended you uninstall all previous versions and upgrade to v3.5 Code:
+ 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)) Stuie |
This is a great hack, thank you! Marked installed & 5 starred. :)
Oh also, in the template changes, I needed to add vb: in front of the "if" conditions in the code, otherwise I was getting an error when I tried to save the template. I have 4.0.6. I don't know if needing a vb: in front of the IF's is a new thing with that version, I just noticed all the surrounding IF's had vb: in front of them, so I tried it and it got rid of the error. This is what I did: Code:
<vb:if condition="$vboptions['agelock_frmnt'] AND $forum['agelock'] AND $vboptions['agelock_global']">{vb:raw $vboptions['agelock_frmntm']}</vb:if> |
Quote:
Updated package with correct installation details Stuie |
Glad to see the query change. 300+ queries for my forum was a bit crazy.
|
Installed and working
4.1 PL2 Would be wonderful if someone added the option for this to work with Blogs as well |
All times are GMT. The time now is 08:40 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|