PDA

View Full Version : Conditional question


Blooded
11-15-2010, 07:26 PM
Well i want to hide the content thats in the code tags so i edit the template bbcode_code

and put this:


<vb:if condition="is_member_of($bbuserinfo, 1,2,3 etc)">
<div class="bbcode_container">
<div class="bbcode_description">{vb:rawphrase code}:</div>
<pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']">style="height:<vb:if condition="$blockheight<$vboptions['codemaxlines']">{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}*2}<vb:else />{vb:math {vb:raw blockheight}*{vb:stylevar mid_fontSize}+{vb:stylevar mid_fontSize}}</vb:if>;"</vb:if>>{vb:raw code}</pre>
</div>
<vb:else />
<p>Cant see content please register</p>
</vb:if>


So 1,2,3 etc are all groups except guests, is this ok?