The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[code] Layout change...
I was told to post here, maybe some guru can quickly help me...
See the question here... http://www.vbulletin.com/forum/showthread.php?t=190484 Thanks in advance. |
#2
|
||||
|
||||
Admin CP -> Styles & Templates -> Style Manager -> Edit Templates -> BB Code Layout Templates -> bbcode_code
REPLACE the contents of bbcode_code with: Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"><strong>$vbphrase[code]:</strong></div> <pre class="alt2" style="background-color: #FFFFFF; margin:0px; padding:$stylevar[cellpadding]px; border:1px dashed #000000; width:$stylevar[codeblockwidth]; height:{$blockheight}px; overflow:auto"><div dir="ltr" style="text-align:left;">$code</div></pre> </div> |
#3
|
|||
|
|||
thank you CP1 you are a star. much appreciated, however im not getting the dashed line and still the scroll bar
|
#4
|
||||
|
||||
hmmm.... u should have the dashed line, what do you mean about the scrollbar?
i have tried it, in IE and FireFox and it works fine for me in both browsers... http://xs103.xs.to/xs103/06273/vb-dashed-code-box.PNG what browser are you using? |
#5
|
|||
|
|||
Ie 6, I dont want scrollers on it at all. it ruins the dashed effect.
see your pic, i dont want that scroll on the right nor on the bottom (happens when text is wide) |
#6
|
||||
|
||||
ok, this works for me on IE6 and FireFox
Code:
<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px"><strong>$vbphrase[code]:</strong></div> <pre class="alt2" style="background-color: #FFFFFF; margin:0px; padding:$stylevar[cellpadding]px; border:1px dashed #000000; overflow:none"><div dir="ltr" style="text-align:left;">$code</div></pre> </div> the scrollbar is on the page, not the code box... |
#7
|
|||
|
|||
Quote:
And also, can I have this code for bbcode_quote, thanks! |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|