![]() |
How to hide contents of CODE for unregistered users
How to hide contents of CODE for unregistered users for vb 3.6.7
|
bbcode_code
replace PHP Code:
|
Hi, thanks for the code. i think you forgot to add </div> before <else /> :)
Edited Donno whats the issue , some times registered members can view code sometimes they cant :( pl help |
Have you reproduced this yourself?
|
Quote:
|
The problem is with post caching. Caches are style specific, but not usergroup specific.
|
can something be done abt it?
|
I made a mod that does this a while ago, but it was a bit of a "hack" so to speak. Whenever "[code]" or "[php]" (etc) was encountered in a post, it would set the cachable variable to false, and then the template condition would work as expected.
|
May i please know where what is the name of hack or where can i find it?
|
All times are GMT. The time now is 06:45 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:
|