In
Style manager - Edit Templates - BB Code Layout Templates - bbcode_code
I changed default code
Code:
<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>
to
Code:
<vb:if condition="is_member_of($bbuserinfo, 2,7,5,6,9)">
<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 />
<a href="http://site.com/register.php" target="_blank"> <img src="http://site.com/images/no_links_here.png"> </a>
</vb:if>
Add usergroup Numbers to this
$bbuserinfo, 2,7,5,6,9 which are the ones whom i want to show the
code contents like registred users,moderators etc. For others the code wont show as i have added <vb:else /> to that.
I'm testing it and i'll be looking for users complaints if they cant view threads with code.