What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » General » Forum & Website » [code][/code]

[code][/code]
Author: Message:
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [code][/code]
I'm having the exact same thing. The font family isn't set properly until I refresh the page.

I think this has something to do with the CSS, I'll let Firebug have a look what's going on. :)

Firefox 3.0.4 on Vista Ultimate x64 SP1


Okay, think I found it. A post's content is embedded in a FONT tag like this:
code:
<td class="trow1" width="85%" style="vertical-align:top;">
<table width="100%"><tr><td>
<span class="smalltext"><b>Post title goes here</b><br /><br /></span>
<font size="2" face="verdana,tahoma,arial,helvetica">Post goes here</font></td></tr></table>
</td>
Now, everyone should know by now that you should never use deprecated HTML tags such as FONT when you have a much more reliable formatting system called CSS. The problem here is that code blocks are formatted like this:
code:
<blockquote class="code_body"><span class="smalltext">code:</span><hr size="1" color="#000000" /><br />
woo<br />
<hr size="1" color="#000000" /></blockquote><br />
The "code_body" class is defined as followed:
code:
.code_body { font-family: monospace; }
which basically tells the renderer to use the mono-space font as specified in the browser's preferences. The problem lies at two points:
  • The use of FONT. Don't use it. Never. It's evil. Place the whole post body in a DIV and give it a class like "post_body" which sets the font family right.
  • The specificity of the CSS selectors. The CSS definition of .code_body has a specificity of 1, which is way too low and will easily be overwritten by the FONT tag if not used properly. Get some more specificity! Use things like:
    code:
    table tr td .code_body
       or
    .post_body .code_body
We really need an upgrade to a newer version of MyBB and get those templates rewritten. They're coded in an age where HTML completely defined the design of a web page and CSS wasn't mainstream yet.

* Matti looks at WDZ... :dodgy:

This post was edited on 11-24-2008 at 07:23 PM by Matti.
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-24-2008 07:03 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[code][/code] - by matty on 11-24-2008 at 02:02 PM
RE: [code][/code] - by Mike on 11-24-2008 at 02:06 PM
RE: [code][/code] - by vaccination on 11-24-2008 at 02:16 PM
RE: [code][/code] - by Felu on 11-24-2008 at 02:29 PM
RE: [code][/code] - by matty on 11-24-2008 at 03:06 PM
RE: [code][/code] - by Mike on 11-24-2008 at 03:10 PM
RE: [code][/code] - by matty on 11-24-2008 at 03:12 PM
RE: [code][/code] - by Basilis on 11-24-2008 at 03:46 PM
RE: [code][/code] - by haydos on 11-24-2008 at 04:52 PM
RE: [code][/code] - by Chris4 on 11-24-2008 at 06:35 PM
RE: [code][/code] - by Matti on 11-24-2008 at 07:03 PM
RE: [code][/code] - by Lou on 11-25-2008 at 01:59 AM
RE: [code][/code] - by WDZ on 11-25-2008 at 06:50 AM
RE: [code][/code] - by Jesus on 11-25-2008 at 02:23 PM
RE: [code][/code] - by blessedguy on 11-25-2008 at 06:50 PM
RE: [code][/code] - by WDZ on 11-26-2008 at 02:58 AM
RE: RE: [code][/code] - by Naruto-SR on 11-26-2008 at 03:03 AM
RE: [code][/code] - by NanaFreak on 11-26-2008 at 03:10 AM
RE: [code][/code] - by Matti on 11-26-2008 at 04:19 PM
RE: [code][/code] - by matty on 11-26-2008 at 04:53 PM
RE: [code][/code] - by Lou on 11-26-2008 at 11:01 PM
RE: [code][/code] - by WDZ on 11-26-2008 at 11:41 PM
RE: RE: [code][/code] - by Naruto-SR on 11-27-2008 at 03:54 AM
RE: [code][/code] - by prashker on 11-26-2008 at 11:48 PM
RE: [code][/code] - by NanaFreak on 11-27-2008 at 12:12 AM
RE: [code][/code] - by Lou on 11-27-2008 at 12:46 AM
RE: [code][/code] - by MeEtc on 11-27-2008 at 01:59 AM
RE: [code][/code] - by WDZ on 11-27-2008 at 03:22 AM
RE: [code][/code] - by vaccination on 11-27-2008 at 09:10 AM
RE: [code][/code] - by Matti on 11-27-2008 at 05:52 PM
RE: [code][/code] - by WDZ on 11-27-2008 at 08:44 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On