Page 1 of 1

Why does IE corrupt styling of Print, Email Popups and Offline Page?

Posted: Wed Dec 14, 2005 5:53 pm
by HarryB
Ever wonder why, when using Internet Explorer, the text size and other characteristics of the Print and Email Popups, and the Offline Page has a different look than other pages of your site.  Well, in Joomla! Versions 1.0.x, the first line of Print and Email popup HTML pages looks like this:

   

Well, IE has a bug that causes it to go into "Quirks Mode" if this is the case...and that messes up the page rendering.

You can fix this by making a simple hack to the index2.php and offline.php files:

find this in the files ( ~line 123 in index2.php; ~line 63 in offline.php)

    // xml prolog
    echo '';


and change it to this:

    // xml prolog
    // echo '';


And don't foget to keep track of this hack, as it will be overwritten by the next Joomla! update you apply  ;)

Re: Why does IE corrupt styling of Print, Email Popups and Offline Page?

Posted: Sat Jun 03, 2006 11:18 pm
by Stone``
Fantastic! Thanks!

I also found this code to be in the offlinebar.php file. Should this hack be applied to that file as well?

[UPDATE]:
I applied this hack to the two files mentioned above and it didn't seem to work??  ???

I did notice something else strange... When looking at the source of the email pop-up, it has the CSS code listed twice:

Code: Select all

<link rel="stylesheet" href="templates/cms/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="templates/cms/css/template_css.css" type="text/css" />