Log in

View Full Version : Neat Code


KTBleeding
07-20-2005, 10:00 PM
If you use this, please click INSTALL

What does it do? Simple, it changes vBulletins default "BB Code code" look and makes it a little bit better (in my opinion).

Instructions:

Go into your admincp, and navigate to your style options:
(admincp / Styles & Templates / Style Manager / All Style Options)
Note: you will need to do this for every style you want the neat quotes on.

Scroll down towards the bottom and find the "Additional CSS Definitions" and paste the following in there:


.bbccode{
background: #FFF;
border: 1px solid #FFCC66;
border-top: 4px solid #FFCC66;
padding: 5px;
color: #996600;
font-size: 12px;
}

.bbccodetitle{
font-weight: bold;
font-size: 10px;
border: 0px;
border-bottom: 1px dashed #CC6600;
color: #CC6600;
padding-bottom: 3px;
margin-bottom: 5px;
}


Now edit the bbcode_code template:
(Templates / BB Code Layout Templates / bbcode_code)

Replace *everything* with:


<div class="bbccode">
<div class="bbccodetitle">$vbphrase[code]:</div>
<pre style="margin:0px; padding:$stylevar[cellpadding]px; width:$stylevar[codeblockwidth]; overflow:auto"><div dir="ltr">$code</div></pre>
</div>

Similar Template Mods:
Neat Quotes (https://vborg.vbsupport.ru/showthread.php?t=92582)

Borimikan
07-23-2005, 07:35 PM
Really nice... It really looks nice from my point of view! Thanks!