Log in

View Full Version : bbcode (CODE)


itsheinz
09-17-2009, 10:00 AM
How to attain this kind of CODE:(box)
https://vborg.vbsupport.ru/external/2009/09/17.jpg
coz in my forum my bbcode(CODE) expands so wide:( please help me guys...

Lynne
09-17-2009, 05:42 PM
That is a setting in your style manager > style > edit stylevars > code block width

James Birkett
09-17-2009, 05:49 PM
I think you want the select all button also?

Lynne
09-17-2009, 06:05 PM
I think you want the select all button also?
Ah yes. That's probably just javascript. Look at the source code for that page to get it or do a search on google for it.

itsheinz
09-24-2009, 03:02 PM
^ i tried what you suggest ms.lynne,the thing the width doesnt change,here is my code for my bbcode_code templates:
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: $stylevar 200px;
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div>

i edited the width into 200 just a test but the width still doesnt change :(

HMBeaty
09-24-2009, 03:05 PM
Try this
<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<a href="#" onclick="selectCode(this); return false;"><input type="button" value="Select All" /></a>
<pre class="alt2" dir="ltr" style="
margin: 0px;
padding: $stylevar[cellpadding]px;
border: 1px inset;
width: 200px;
height: {$blockheight}px;
text-align: left;
overflow: auto">$code</pre>
</div>

itsheinz
09-26-2009, 05:47 AM
^ it works..thanks a lot man :)