View Full Version : Change look of code, PHP and quote boxes - problems
|-Last-Spirit-|
05-05-2002, 08:30 AM
I installed this hack and it works fine, but I have a few things I want to see changed...
All my Code boxes have a extra empty line and can't seem to get ir removed. (look at example below, this board has the same problem, don't see any reason for this :
Test
And my quote boxes have a different font then my code buttons, I tried changing (in the Admin CP Custom vB Codes) :
FONT-FAMILY: Verdana,Arial;
into
FONT-FAMILY: Courier, Courier New, sans-serif;
But it's still not the same font :(
Any help with any of these matters appreciated !!! :)
|-Last-Spirit-|
05-05-2002, 11:33 AM
anyone ??? I searched for a <br> causing the extra line but can't seem to find it :(
Admin
05-05-2002, 11:54 AM
Don't bump your post after merely 3 hours.
|-Last-Spirit-|
05-05-2002, 12:21 PM
Originally posted by FireFly
Don't bump your post after merely 3 hours.
Well I'm a rather inpatient person ;) But as you are quite good with code, and this bug actually is present on this board also, don't you know what causes it (even more as you actually written the hack in the first place)
Admin
05-05-2002, 12:23 PM
Don't you think I'd fix it if I knew what the problem is?
|-Last-Spirit-|
05-05-2002, 12:34 PM
Originally posted by FireFly
Don't you think I'd fix it if I knew what the problem is?
hmmm you got a point, still I think it's strange that in the quote box it doesn't take the extra line but in the code box it does. I overlooked both codes but can't seem to find any difference that would cause it..... :(
Admin
05-05-2002, 01:18 PM
It's the <pre> I believe.
|-Last-Spirit-|
05-06-2002, 05:11 PM
Originally posted by FireFly
It's the <pre> I believe.
I fixed it :D
I used this code :
// ###################### Start stripbrsfromcode #######################
function stripbrsfromcode($foundcode) {
$foundcode = str_replace("\\\"","\"",$foundcode);
return "<table border=\"0\" align=\"center\" width=\"96%\" cellpadding=\"3\"><tr><td><smallfont><b>code:</b> (double-click to copy to clipboard)</smallfont></td></tr><tr><td style=\"BORDER: #4C657E 1px solid; FONT-SIZE: 11px; COLOR: {codefontcolor}; FONT-FAMILY: Verdana,Arial; BACKGROUND-COLOR: {codebackground};\"><pre>" . $foundcode . "<pre></td></tr></table>";
}
And the extra line is gone !!! (you might apply it for this board too :))
Admin
05-06-2002, 05:48 PM
In other words, you didn't close the <pre>?
|-Last-Spirit-|
05-06-2002, 06:58 PM
Originally posted by FireFly
In other words, you didn't close the <pre>?
aye but the <pre> has to be there otherwise it screws up stuff. So I just added 2 <pre> instaed of closing and it works. Extra line gone and everything works fine.
CoolaShacka
12-01-2002, 03:31 AM
I have the same problem but this fix is don't working.
the sourcecode are:<pre>test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
test test test<br>
</pre>so my Problem ist the <br> tag, witch is automaticaly inserted.
I thing the removing of the <br> tag between the <pre> and </pre> would fix that.
Anybody have an idea how to remove it?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.