FAQ - How to include IE7 FIX by Dean Edwards in Joomla templates

Moderator: mcsmom

Post Reply
User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

FAQ - How to include IE7 FIX by Dean Edwards in Joomla templates

Post by guilliam » Fri Aug 26, 2005 8:49 pm

hello,. have checked the "other" forum and there are questions there that is exactly as mine.

QUESTION: where do i put the calling script in my mambo template???

heres a quick link:

http://dean.edwards.name/IE7/usage/

for those asking what IE7 fix is.. check the link:

http://dean.edwards.name/IE7/overview/

thank you for any replies...

(hope hazman sees this.. i'll give you a pm hazman)
Last edited by guilliam on Wed Jan 18, 2006 11:06 am, edited 1 time in total.
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

User avatar
Dragon Company
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Aug 18, 2005 3:43 pm
Location: France
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by Dragon Company » Fri Aug 26, 2005 9:15 pm

Think it's in head tag .. after all meta ... so just before end tag of head part ....  :-\

User avatar
Predator
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 220
Joined: Wed Aug 17, 2005 10:12 pm
Location: Germany-Bad Abbach
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by Predator » Fri Aug 26, 2005 10:03 pm

Think it's in head tag .. after all meta ... so just before end tag of head part ....


This is quite right i.e.


Code: Select all

<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
   initEditor();
}
$collspan_offset = ( mosCountModules( 'right' ) + mosCountModules( 'user2' ) ) ? 2 : 1;
//script to determine which div setup for layout to use based on module configuration
$user1 = 0;
$user2 = 0;
$colspan = 0;
$right = 0;
// banner combos

//user1 combos
if ( mosCountModules( 'user1' ) + mosCountModules( 'user2' ) == 2) {
   $user1 = 2;
   $user2 = 2;
   $colspan = 3;
} elseif ( mosCountModules( 'user1' ) == 1 ) {
   $user1 = 1;
   $colspan = 1;
} elseif ( mosCountModules( 'user2' ) == 1 ) {
   $user2 = 1;
   $colspan = 1;
}

//right based combos
if ( mosCountModules( 'right' ) and ( empty( $_REQUEST['task'] ) || $_REQUEST['task'] != 'edit' ) ) {
   $right = 1;
}
?>
<"meta http-equiv="Content-Type content="text/html; <?php echo _ISO; ?>" />


<!-- compliance patch for microsoft browsers -->
<!--[if lt IE 7]>
<script src="/ie7/ie7-standard-p.js" type="text/javascript">
</script>
<![endif]-->



Important is after a meta http-equiv="Content-Type and before


btw this are nice "hacks" from Dean Edwards.
Last edited by Predator on Fri Aug 26, 2005 10:10 pm, edited 1 time in total.
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D

User avatar
mambostoked
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Aug 24, 2005 3:35 pm
Location: Cape Town, South Africa
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by mambostoked » Fri Aug 26, 2005 10:21 pm

thats where i put mine and it seems to work ;)
http://www.joomlajunkie.com - Bringing Color to the Joomla! Community.
http://www.webmonkeys.co.za - Joomla Design and Development Services.

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by guilliam » Sun Aug 28, 2005 12:26 am

@Predator, thank you so much for the prompt reply.. i applied what you posted. apologies wasnt able to reply sooner. i'll make another walkthru for this(very helpful for newbies and be added to my guilliam's idi*t guides. .ehheheh)

@dragon, thanks mate! ~winks~

guilliam
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

User avatar
Predator
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 220
Joined: Wed Aug 17, 2005 10:12 pm
Location: Germany-Bad Abbach
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by Predator » Sun Aug 28, 2005 12:55 am

No prob you`re welcome ;)
The "Humor, Fun and Games" forum has  more than 2500 Posts, so why not build a "Humor, Fun and Games Working" Group?
.....
Malicious tongues say we have this WG right from the start, they call it core team :D

jloyzaga
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Sep 01, 2005 10:24 pm

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by jloyzaga » Fri Jan 13, 2006 7:29 am

don't laugh

But in which files???

Joe

Couldn't find the http-equiv="Content-Type  string anywhere in my copy of joomla
Last edited by jloyzaga on Fri Jan 13, 2006 7:39 am, edited 1 time in total.

User avatar
Damienov
Joomla! Apprentice
Joomla! Apprentice
Posts: 41
Joined: Fri Aug 19, 2005 12:08 am
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by Damienov » Fri Jan 13, 2006 7:37 am

oot
isnt this post supposed to be in the FAQ forum?
Waddaya mean I can't swing my lightsaber in the forum??

User avatar
guilliam
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 159
Joined: Thu Aug 18, 2005 10:27 am
Location: Sunny City Cebu, Philippines!
Contact:

Re: IE7 FIX by Dean Edwards - PLease teach where to place in the $ambo template.

Post by guilliam » Wed Jan 18, 2006 10:32 am

[ To be moved to the FAQ as requested. ]

- g
"I was one of those who wondered why people would pay so much $$$$ to do something that was so much fun!" -R. Harkrider, Fortran Code Engr.
^If u read that in $GREEN, you clearly missed the HIGHLIGHTS!
http://www.joomlancers.com | http://www.joomlaconsultancy.net

dynedain
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Aug 24, 2005 7:20 pm
Location: Los Angeles
Contact:

Re: FAQ - How to include IE7 FIX by Dean Edwards in Joomla templates

Post by dynedain » Mon Apr 10, 2006 8:05 pm

I have used this set of scripts several times on my Mambo/Joomla sites. I'd like to put it in the /includes folder rather than add it to my templates. Of course, that's easy enough, but I'd like to provide it easily to others as well as a component. Can a mambot/component/module install files to the /includes directory?


Post Reply