Quote:
Originally Posted by raverchr
Hello I have it adjusted exactly the same but with me does not work unfortunately there is still another solution?
|
Try this on the template bbcode_code
In my work I 5.2 and 5.3.3
Code:
<vb:if condition="$vboptions['codemaxlines']">
{vb:set verticalPadding, 12}
{vb:set horizScrollbarAllowance, 20}
{vb:set blockCssHeight, {vb:math {vb:raw blockheight} * {vb:stylevar bbcode_code_line_height} + {vb:raw verticalPadding} + {vb:raw horizScrollbarAllowance}}}
</vb:if>
<div class="bbcode_container">
<div class="bbcode_description">{vb:rawphrase code}:</div>
<vb:if condition="!is_member_of($user, 1, 2)">
<pre class="bbcode_code"<vb:if condition="$vboptions['codemaxlines']"> style="height:{vb:raw blockCssHeight};"</vb:if>>{vb:raw code}</pre>
<vb:else />
{vb:rawphrase hide_code}
</vb:if>
</div>