The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I would like to get the code box, dotted lined and a certain box background color, but it seems vb4 has changed the coding.
Below is my current code, I managed to remove code: but the rest I don't understand. Code:
<div class="bbcode_container">
<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>
|
|
#2
|
|||
|
|||
|
It looks like vb4 moved a lot of things to the bbcode.css template. What you could probably do is add a section to additional.css like this:
Code:
.bbcode_container {
// your CSS here
}
And override the existing CSS with whatever you want. You might also be able to copy the vb3 bbcode_code template to vb4, but you would have to update the variable references to vb4 template syntax (assuming those style variables still exist in vb4). |
|
#3
|
|||
|
|||
|
You can change the background color in Stylevars > bbcode > vbbcode_background_color. If you want to change the border you must edit the <pre> tag. to put in additional inline styling go all the way to the end and find the ";"
</vb:if>;"</vb:if>>{vb:raw code}</pre> You can put additional styling between the ";" and the quote mark that follows. Alternatively you could edit whatever css template contains the bbcode_code class |
|
#4
|
|||
|
|||
|
thanks guys, seems easier now you have explained some things, appreciated
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|