Why browsehappy div in my source???

Professional Jomal template designed to be easily adaptable to all kinds of business
GK User
Tue Aug 28, 2012 10:24 am
Running template on a J 1.5.26 for months, everything fine.

Today I've monitored a strange thing: All of a sudden the site's css is a mess and I see in FF 14 a message popping up:
"Internet explorer cannot render this page properly" which contains a link to browsehappy.

What's going on here?
User avatar
Senior Boarder

GK User
Tue Aug 28, 2012 10:38 am
It is very strange - I've checked it at our demo site: http://demo.gavick.com/joomla15/apr2010/ and I don't see any problems of Firefox 14. But IE6 is now history so you can remove a code responsible for these messages and messing CSS code.

Please open file layouts/default.php and remove following lines:
Code: Select all
<?php if($this->isIE6() && $this->_tpl->params->get('ie6bar') == 1) : ?>
<div id="infobar"><a href="http://browsehappy.com"><?php echo JText::_('IE6_BAR'); ?></a></div>
<?php endif; ?>


And please open file: layouts/blocks/head.php and remove following lines:
Code: Select all
<?php if (!$this->isIE6()) : ?>

and:
Code: Select all
<?php else : ?>
<link href="<?php echo $this->templateurl(); ?>/css/ie6.css" rel="stylesheet"/>
<?php endif; ?>
User avatar
Administrator

GK User
Tue Aug 28, 2012 10:55 am
Indeed that is really strange. I tried the site again and without doing anything this strange source-div to browserhappy has dissappeard and the Corporte template renders properly as before. I really wonder why this has happend??

I've found in a Joomla forum a similar issue with the same template and the same problem from somebody else:

http://forum.joomla.org/viewtopic.php?t=600443

I will edit the code as mentioned but would really like to know why this did happen or if this is a security-concern?
User avatar
Senior Boarder

GK User
Tue Aug 28, 2012 11:03 am
In general it can be a cache-related problem - the messages for IE6 are hardcoded - if someone entered your website when the website was cached then in result every user get the IE6 version from the cache. That's why please just remove the mentioned code.
User avatar
Administrator

GK User
Tue Aug 28, 2012 11:09 am
O.k., did the edit. Thxs for the quick help.
User avatar
Senior Boarder


cron