PDA

View Full Version : Code-Box with scrollbars (same as here)


boardster
09-18-2003, 08:58 PM
Oh, very nice... vBulletin.org has got new Code- & PHP-Boxes with scrollbars - where can get this hack?

Xenon
09-18-2003, 09:37 PM
no hack just a template edit right now:

postbit_bbcode_code:
<span class="smallfont"><b>Code:</b></span><br />
<div style="border: solid 1px black; padding: 8px; background-color:white; color:black; width:600px; height:100px; overflow:auto;"><pre>$code</pre></div>
<br />

:)
that's all.
i'll change it in future, to make it more dynamical acording to codelength... but for now it fits i think :)

Blindchild02
09-18-2003, 11:09 PM
is that for vb3?

is there a vb2 version??

Erwin
09-19-2003, 01:07 AM
It's very cool isn't it. :)

Blindchild02
09-19-2003, 01:23 AM
yea, i want it for vb2 lmao

filburt1
09-19-2003, 01:24 AM
It's very cool isn't it. :)
Side note: I wish the ones here were a bit bigger...

Logician
09-19-2003, 10:14 AM
Side note: I wish the ones here were a bit bigger...
I agree it is cool..
I agree the ones here could have been a little bit bigger (width & height).
I wish you also added a font tag in the CSS to make the font a little bit smaller (8?). This would help the code window not extended right in some cases..

:)

Xenon
09-19-2003, 03:34 PM
it's not final yet, i want to hack it up a bit more, to achieve exactly what i want :)

as for vb2: there is a hack by firefly, just change his html code changes with the one i posted above :)

Hornstar
01-03-2006, 12:38 AM
I changed mine to


<div style="margin:20px; margin-top:5px">
<div class="smallfont" style="margin-bottom:2px">$vbphrase[code]:</div>
<pre class="alt2" style="margin:0px; padding:$stylevar[cellpadding]px; border:1px inset; width:900px; height:400px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre>
</div>


Now I use it for my sig, so i can have more in it without taking up too much space.

would be better if we could set the width and height when we do the code tag like



text here


That would be cool