Status
Not open for further replies.

pak

Active Member
206
2010
0
0
hello everyone im having trouble with my codebox

68998272.png



and i want you to help and with this , well i want to see your template >> bbcode_code thing . so i will find out where is problem with it

here is my template for bbcode-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>
 
6 comments
Your bbcode template is good (same as default)

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>
 
What is wrong with it? The size? Perhaps too large for your likings? Other then that I am kind of clueless to what problem your implying is has...

You can adjust the size in the stylevars

ADMINCP >> STYLES & TEMPLATES >> STYLE MANAGER >> STYLEVARS (in drop down menu @ right of desired theme)

You can change the width in: "Code Block Width (pixels)"

Select desired width & save changes...

Other then that, I apologize if this information was useless, just am unsure to what your trying to achieve.
 
yes my problem is size , the height is too long , its not auto detectable , if i put 1 line code so it should show code box for 1 line but it is not
 
This $vboptions['codemaxlines'] may not be accessible by your bbcode.

Try changing it to a number like 50 to see what happens. I believe there are several spots it is specified in your bbcode.
 
THis is yours:
Code:
<div class="bbcode_container">
    <div class="bbcode_description">{vb:rawphrase code}:</div>
    <pre class="bbcode_code"<vb:if condition="50"> style="height:<vb:if condition="$blockheight<50">{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>

I put 50 in there. I do not use vB anymore. Switched to IPB last year.
 
Status
Not open for further replies.
Back
Top