Shoutbox

[code] tags messed up - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: General (/forumdisplay.php?fid=11)
+---- Forum: Forum & Website (/forumdisplay.php?fid=13)
+----- Thread: [code] tags messed up (/showthread.php?tid=55121)

[code] tags messed up by segosa on 01-21-2006 at 01:07 PM

I always wondered why the contents of the [ code ] tags only sometimes displayed in a monospace font.

Take this thread for example: http://shoutbox.menthix.net/showthread.php?tid=55120

The first time I viewed it the contents of the [ code ] tag in the first post was using the Verdana font, and in the second post it was using Courier New. I looked at the source code and for the first one saw:

<span style="font-family: 'courier new',monospace;"><font face="verdana,tahoma,arial,helvetica" size="2"><br>

and the second:

<font face="verdana,tahoma,arial,helvetica" size="1">code: </font><hr color="#000000" size="1"><span style="font-family: 'courier new',monospace;">

After refreshing the thread, both posts were displayed with Courier New. The order of the <font> tags seem to be random.

Another thing, is there any chance you can change it to font-family: monospace; so it uses the browser's default monospace font? I prefer Consolas over Courier New, and I have that set as default.


RE: [code] tags messed up by user27089 on 01-21-2006 at 01:11 PM

I noticed this too, I just thought it was a problem with the stylesheet not verifying correctly.


RE: [code] tags messed up by -dt- on 01-21-2006 at 01:38 PM

hmm for a temporary fix (if you use firefox :P) you could use the @-moz-document css

simply insert the following into your userContent.css (in your profile folder)

code:
@-moz-document domain("msghelp.net") {
blockquote font, blockquote span{ font-family:Consolas !important}
}

replace "Consolas" with whatever font you like.


(ive already said this on irc but eh not everyone is on irc)
RE: [code] tags messed up by CookieRevised on 04-17-2006 at 10:47 AM

bump... this bug drived me crazy while I was editing posts... (wil become even more noticeable I assume when people are starting to post scripts)


RE: [code] tags messed up by Lou on 04-17-2006 at 02:37 PM

I suggested to wdz to make the code tags compatible for scripts...but now I realise he should completely recode them. That way, all the annoying bugs are gone(a)


RE: [code] tags messed up by WDZ on 04-18-2006 at 07:04 AM

I'm not sure what the problem is (segosa's example looks normal in Opera), but I'll mess around with it tomorrow and see what I can do.

* WDZ just made this post so you won't feel ignored. :p


RE: [code] tags messed up by John Anderton on 04-18-2006 at 07:25 AM

quote:
Originally posted by WDZ
I'm not sure what the problem is (segosa's example looks normal in Opera), but I'll mess around with it tomorrow and see what I can do.

* WDZ just made this post so you won't feel ignored. :p
* John Anderton keeps feeling ignored until dz finds a fix :refuck:
Tbh its a dodgy problem :-/ We really need it fixed so hopefully you can fix it :)
RE: [code] tags messed up by WDZ on 04-19-2006 at 06:28 PM

OK, the [code] <blockquote> now has its own class in the stylesheet and the font-family is simply set to "monospace" (just like in MyBB 1.0).

I dunno if that will "fix" whatever you're complaining about... let me know... :p[/code]


RE: RE: [code] tags messed up by segosa on 05-11-2006 at 09:25 PM

quote:
Originally posted by WDZ
OK, the [code] <blockquote> now has its own class in the stylesheet and the font-family is simply set to "monospace" (just like in MyBB 1.0).

I dunno if that will "fix" whatever you're complaining about... let me know... :p


Late reply, but it's working fine now... :P[/code]