Shape 5

Joomla Templates => City Portal - January - Club => : lefteris October 23, 2010, 09:37:59 AM



: How could i make it work with ie5?
: lefteris October 23, 2010, 09:37:59 AM
Hi mates,

this is my first time posting after i became a member of the club in here :)
I have a small issue here and i would like your help. I use this theme as the default theme for my college's website. Unfortunately my tutors want to make it run on ie5(don't ask why ... they just don't want to update the ie on the computers there...)

The problem comes up on the right column as probably due to the "float:left" doesn't have the appropriate free space to apply and it comes right down below the main content box.

I attach a screenshot to show you what i mean.
I run through most of the files but can't seem to find which div or class i should change in order to make this work.
Any ideas?



: Re: How could i make it work with ie5?
: jonahh October 25, 2010, 12:23:46 PM
I'm sorry but we don't support that browser it is more than 10 years old, actually we never have, we've only went back to ie6. 


: Re: How could i make it work with ie5?
: lefteris October 25, 2010, 02:31:31 PM
Nothing to be sorry about jonahh i do understand that. I wish my college could understand it as well   ;D

I don't want you to make it compatible with ie5 by wasting your time working on that, but i would really appreciate thought any kind of suggestions or a pattern which i could follow to fix that by myself.

I tried to but i tend to loose the track due to the way that the index is coded as it's combined with the xml and the css :P

I'm sorry but we don't support that browser it is more than 10 years old, actually we never have, we've only went back to ie6. 


: Re: How could i make it work with ie5?
: jonahh October 26, 2010, 01:28:39 PM
There is a width set on the left and right columns by php in the index.php file, look for the id of s5_rightcolumn and try setting the width manually there.


: Re: How could i make it work with ie5?
: lefteris October 26, 2010, 02:00:46 PM
Ok thx jonahh i will try that.

There is a width set on the left and right columns by php in the index.php file, look for the id of s5_rightcolumn and try setting the width manually there.


: Re: How could i make it work with ie5?
: jonahh October 27, 2010, 04:31:59 PM
Yeah just try putting a real low number in there like 50px or so and see if the column comes up.


: Re: How could i make it work with ie5?
: lefteris November 10, 2010, 05:01:37 PM
Ok i will give it a try, thx!  :)
Yeah just try putting a real low number in there like 50px or so and see if the column comes up.


: Re: How could i make it work with ie5?
: lefteris November 27, 2010, 12:37:09 PM
Hi guys ,

i managed to fix that problem. If anyone wants to make the template compatible with ie5.5 here is the fix:

on the index.php
after the

:
$s5_right_width = $this->params->get ("xml_s5_right_width"); 

add this line :

:
$s5_right_ie5 = "240";

nearly the line 130 you will find the

:
 "if(ereg("msie 6", $br)) {" before that add the following code

Add above it the code listed below
:
$br = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser.
 if(ereg("msie 5.5", $br)) {
$is_ie5 = "yes";
}
else {
$is_ie5 = "no";
}

Last step , search and replace the
:
<div id="s5_rightcolumn" style="width:<?php echo ($s5_right_width) + 1;?>px;<?php if ($s5_position == "left") { ?>margin-top:-56px;<?php ?>">

with this

:
<div id="s5_rightcolumn" style="width:<?php if($is_ie5 == "yes") {echo ($s5_right_ie5);} elseif($is_ie5 != "yes") {echo ($s5_right_width) + 1;}?>px;<?php if ($s5_position == "left") { ?>margin-top:-56px;<?php ?>">

just a small contribution back to the community :)
Cheers