The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Hidden [code] tags for guests
Hey guys how do i make it to where guests can not see what is in [code] tags? Because I still want to keep the forums open to every one but I want them to register to see what is in this tag...
|
#2
|
|||
|
|||
I'm also wondering how this needs to be done for my forum, anyone at all?
|
#3
|
||||
|
||||
Yeh - me too guys. The code that hides actual code from guests has been used on this very site for as long as I can remember. Could someone please tell me if it's a hack or something we can enable on the default vB?
I tried searching, and it bought me to this thread - so please, where is it, or what should I be searching for? Thanks in advance |
#4
|
|||
|
|||
You could always use a template conditional.
In template "bbcode_code," Find: Code:
<pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre> Code:
<pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;"><if condition="$show['member']">$code<else />Please register to view code.</if></div></pre> |
#5
|
||||
|
||||
Thank you. I've just discovered calorie's hack: Hide Various BB Code Content From Users which appears to be plug-in that can be used for specific user groups. Not sure which is best for what I have in mind, but the conditional is an excellent and simple answer which never occured to me. I'll try it both ways and see which suits us best. :up:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|