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

Moderator: mcsmom

Post Reply
User avatar
HarryB
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Wed Aug 17, 2005 10:30 pm
Location: Vienna, VA US

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

Post by HarryB » Wed Dec 14, 2005 5:53 pm

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  ;)
If you need a helping hand, use the one at the end of your own arm.
www.hrpr.com

User avatar
Stone``
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Apr 14, 2006 3:58 am

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

Post by Stone`` » Sat Jun 03, 2006 11:18 pm

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" />
Last edited by Stone`` on Sat Jun 03, 2006 11:23 pm, edited 1 time in total.


Post Reply