View Full Version : Hiding a [BB] code from guests
kyokushin4life
11-23-2008, 05:13 PM
Hi guys. Is there such a plugin that hides content in [BB] code tags from guests??
I had a search but I couldn'd find it.
I have a vB3.7 installed.
Thanks.
Princeton
11-23-2008, 05:36 PM
there are a few but for older versions - not sure if it would even work for 3.7
kyokushin4life
11-24-2008, 04:48 AM
hi there I tried this but doesn't quite work..
I modified the bbcode_code template.
Could someone help me out cheers.
<if condition="$bbuserinfo[usergroupid]==1"><b>You must be logged in to view this.</b>
<else /><div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar[codeblockwidth];
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div></if>
kyokushin4life
11-25-2008, 04:47 PM
I'm sorry to bump this thread.. i require some help to get this to work..
thank you.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.