Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Mr_Lon on February 11, 2009, 10:00:15 AM

Title: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 11, 2009, 10:00:15 AM
I have a Geocaching website and just updated my forums from SMF 2.0 beta4 to SMF 2.0 RC1.  I have some members that are using "Mozilla Firefox" and with SMF 2.0 beta 4 there was NO problem but now with SMF 2.0 RC1 the posts are all messed up with Firefox?

Attached are two pictures, one labled "Firefox" and the other "Explorer" to show what is happening.
This needs to be looked at.
Title: Re: SMF 2.0 RC1 bug
Post by: Dragooon on February 11, 2009, 10:23:21 AM
This issue is with your theme, as the templates have changed, it should be fine in the default theme (Core).
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 11, 2009, 10:48:21 AM
Quote from: Dragooon on February 11, 2009, 10:23:21 AM
This issue is with your theme, as the templates have changed, it should be fine in the default theme (Core).

NO This is the "default" theme, I have only changed the background colors in the "default theme Style sheet".
Title: Re: SMF 2.0 RC1 bug
Post by: Dragooon on February 11, 2009, 11:10:22 AM
Are you sure you updated the CSS files with the latest ones?
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 11, 2009, 01:15:11 PM
I just re-uploaded the new RC1 default theme CSS files and it made no difference?

I didn't have this problem with beta 4,  that is what puzzles me....
Should I try the old beta 4 CSS files?

Lon
Title: Re: SMF 2.0 RC1 bug
Post by: anduriell on February 11, 2009, 05:30:37 PM
Same Here.. It's a RC1 bug. I have clean installation.

And the funny thing is that only happens in firefox (3.0.6 so far..)
Is there anyway to fix this?
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 11, 2009, 06:01:38 PM
I just tryed the old beta 4 default theme CSS files and that didn't work either, so I reinstalled the RC1 CSS files.

Lon
Title: Re: SMF 2.0 RC1 bug
Post by: metallica48423 on February 11, 2009, 06:14:19 PM
I am using 2.0 RC1 but have no problems with the posts that I am aware of... Though my theme does have a custom Display Template.

What browsers are being used?
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 11, 2009, 08:32:15 PM
Please read the first post

"I have a Geocaching website and just updated my forums from SMF 2.0 beta4 to SMF 2.0 RC1.  I have some members that are using "Mozilla Firefox" and with SMF 2.0 beta 4 there was NO problem but now with SMF 2.0 RC1 the posts are all messed up with Firefox?"\

My Windows Internet Explorer is just fine, it's Firefox.

Title: Re: SMF 2.0 RC1 bug
Post by: Brettflan on February 12, 2009, 01:08:35 AM
Can you link to the post in question, or is it a private forum? Being able to look at it directly and view the page source would be helpful.
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 12, 2009, 11:10:40 AM
The site is http://www.greathides.com/
Just remember in Explorer it is fine! Using Firefox is the problem.

Also it is the SMF default theme I just changes some colors and graphics to give me the brown look.
Lon
Title: Re: SMF 2.0 RC1 bug
Post by: ThorstenE on February 12, 2009, 11:53:52 AM
Quote from: Mr_Lon on February 11, 2009, 01:15:11 PM
I just re-uploaded the new RC1 default theme CSS files and it made no difference?
when re-uploading the CSS-Files you should clean the SMF cache and also your browser cache. can you attach your CSS-Files please?
Title: Re: SMF 2.0 RC1 bug
Post by: Brettflan on February 12, 2009, 04:29:30 PM
Your theme's style.css (http://www.greathides.com/forum/Themes/default/style.css) file has this for the signature:
/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
width: 100%;
overflow: auto;
padding-bottom: 3px;
line-height: 1.3em;
}


The normal RC1 default theme's style.css has this:
/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
clear: right;
padding: 1em 0 3px 0;
border-top: solid 1px #888;
width: 100%;
overflow: auto;
line-height: 1.3em;
}

Yours is missing the code to clear down to a new line if there's anything on the right of it, as well as the top padding (the 1em specified).
It's also missing the border, but that's a matter of personal taste.
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 12, 2009, 04:45:48 PM
Quote from: Brettflan on February 12, 2009, 04:29:30 PM
Your theme's style.css (http://www.greathides.com/forum/Themes/default/style.css) file has this for the signature:
/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
width: 100%;
overflow: auto;
padding-bottom: 3px;
line-height: 1.3em;
}


The normal RC1 default theme's style.css has this:
/* All the signatures used in the forum.  If your forum users use Mozilla, Opera, or Safari, you might add max-height here ;). */
.signature
{
clear: right;
padding: 1em 0 3px 0;
border-top: solid 1px #888;
width: 100%;
overflow: auto;
line-height: 1.3em;
}

Yours is missing the code to clear down to a new line if there's anything on the right of it, as well as the top padding (the 1em specified).
It's also missing the border, but that's a matter of personal taste.

Thank you very much! I made the Style.css change and that did the trick for Most if it, but it still is not quite right.
One question: Were is this in the RC1 upgrade? I don.t see it?


Lon
Title: Re: SMF 2.0 RC1 bug
Post by: Brettflan on February 12, 2009, 04:49:27 PM
I've only used the large upgrade package myself, where it's included as part of the default theme.

EDIT: by the way, you'll need to tell your users to do a full refresh or clear their browser cache in order to make sure their browsers reload the changed CSS file.
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 12, 2009, 04:54:36 PM
Here are my CSS files
Title: Re: SMF 2.0 RC1 bug
Post by: habakuk on February 13, 2009, 03:01:38 PM
Might want to check the display.template.php and replace:

      <div class="post" id="msg_', $message['id'], '"', '>';

with

      <div class="post floatleft" id="msg_', $message['id'], '"', '>';

This solved the problem for me.


Title: Re: SMF 2.0 RC1 bug
Post by: Brettflan on February 13, 2009, 04:27:45 PM
Another directly related possibility:
http://www.simplemachines.org/community/index.php?topic=291201.msg1918891#msg1918891
Title: Re: SMF 2.0 RC1 bug
Post by: Mr_Lon on February 16, 2009, 04:40:01 PM
Quote from: habakuk on February 13, 2009, 03:01:38 PM
Might want to check the display.template.php and replace:

      <div class="post" id="msg_', $message['id'], '"', '>';

with

      <div class="post floatleft" id="msg_', $message['id'], '"', '>';

This solved the problem for me.




This is it! I made the change described above and everyone on my forums that are using "Firefox" have come back and are happy!
I have installed Firefox for testing and my forums now do look close to the same between Firefox and Explorer!

Thanks - Problem solved


This small change should be added to SMF RC1 for a final fix.

:D