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

Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
[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
Lou
Veteran Member
*****

Avatar

Posts: 2475
Reputation: 43
– / Male / Flag
Joined: Aug 2004
RE: [code][/code]
Syntax highlighting, provided by -dt-

http://random.thedt.net/forumhighlightdemo/

(Requires greasemonkey with firefox)

This post was edited on 11-25-2008 at 02:00 AM by Lou.
[Image: msghelp.net.png]
The future holds bright things in it\\\'s path, but only time will tell what they are and where they come from.
Messenger Stuff Forums
11-25-2008 01:59 AM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [code][/code]
quote:
Originally posted by Matti
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.
Shush, nobody needs to be told that... the original HTML for this board was written by a bunch of newbs 5 years ago. :p

I knew the font tag around the post body was dodgy, but I didn't know it was actually causing problems... thanks for figuring that out. I'll try fixing it tomorrow.

Strange how the bug is intermittent in Firefox and never happens in Opera or IE... :dodgy:
11-25-2008 06:50 AM
Profile PM Web Find Quote Report
Jesus
Scripting Contest Winner
****

Avatar
Koffie, my cat ;)

Posts: 623
Reputation: 15
37 / Male / Flag
Joined: Jul 2005
RE: [code][/code]
quote:
Originally posted by WDZ
Strange how the bug is intermittent in Firefox and never happens in Opera or IE...
to add to that, it seems to be only on Firefox 3.0.4
I upgraded yesterday from 3.0.3 and I didn't have the problem before that.
Man is least himself when he is in his own person. Give him a mask and he will tell you the truth. (Oscar Wilde)
11-25-2008 02:23 PM
Profile PM Find Quote Report
blessedguy
Skinning Contest Winner
*****


Posts: 1762
Reputation: 25
31 / Male / Flag
Joined: Jan 2008
RE: [code][/code]
Just wondering, wich one is the correct?
[Image: attachment.php?pid=938708]

code:
testing it with Firefox 3.0.3, by the way

.jpg File Attachment: (48.01 KB)
This file has been downloaded 294 time(s).

This post was edited on 11-25-2008 at 06:56 PM by blessedguy.
[Image: Empty.png]
11-25-2008 06:50 PM
Profile PM Web Find Quote Report
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: [code][/code]
ok, I got rid of that evil <font> tag. Let me know if you still see the bug... I haven't installed Firefox 3 yet. :p
11-26-2008 02:58 AM
Profile PM Web Find Quote Report
Naruto-SR
Junior Member
**

Avatar

Posts: 47
Reputation: 4
43 / Male / Flag
Joined: Feb 2008
RE: RE: [code][/code]
quote:
Originally posted by WDZ
ok, I got rid of that evil <font> tag. Let me know if you still see the bug... I haven't installed Firefox 3 yet. :p

Why :|?

* Naruto-SR <3's WDZ.
11-26-2008 03:03 AM
Profile PM Find Quote Report
NanaFreak
Scripting Contest Winner
*****


Posts: 1476
Reputation: 53
32 / Male / Flag
Joined: Jul 2006
RE: [code][/code]
code:
testing much??
...

edit: ok i think its fixed... it had the correct font and that when i first posted it...

This post was edited on 11-26-2008 at 03:11 AM by NanaFreak.
11-26-2008 03:10 AM
Profile PM Find Quote Report
Matti
Elite Member
*****

Avatar
Script Developer and Helper

Posts: 1646
Reputation: 39
31 / Male / Flag
Joined: Apr 2004
RE: [code][/code]
Looking good, WDZ! :D Thank you! :)
Plus! Script Developer | Plus! Beta Tester | Creator of Countdown Live | Co-developer of Screenshot Sender 5

Found my post useful? Rate me!
11-26-2008 04:19 PM
Profile E-Mail PM Web Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
O.P. RE: [code][/code]
.fixed :P
11-26-2008 04:53 PM
Profile E-Mail PM Find Quote Report
Pages: (4): « First « 1 [ 2 ] 3 4 » Last »
« Next Oldest Return to Top Next Newest »


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