Problem with Code In IE8

thebradnetwork
thebradnetwork used Ask the Experts™
on
Unfortunately with the release of IE8 I am running into display problems on a webpage. Please visit http://www.opelikaschools.org/ohs . In Firefox it displays normally but in IE8 gives me a endif in the middle of the screen and doesn't display any of the data. Anyway I can fix this? I am using the latest version of Joomla 1.5 to run my site. I have displayed the PHP code.
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
 
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 7]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->
 
</head>
 
 
 
<body id="page_bg">
		<div align="center">
			<table width="904" border="0" cellspacing="0" cellpadding="0" cool="cool" gridx="16" gridy="16" height="442" showgridx="showgridx" showgridy="showgridy" usegridx="usegridx" usegridy="usegridy">
				<tr height="135">
					<td width="903" height="135" valign="top" align="left" xpos="0"><img src="images/top.jpg" alt="" width="903" height="135" border="0"/></td>
					<td width="1" height="135"><spacer type="block" width="1" height="135"/></td>
				</tr>
				<tr height="306">
					<td width="903" height="306" valign="top" align="left" xpos="0"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" height="306" width="903">
							<param name="movie" value="header.swf"/>
							<param name="quality" value="best"/>
							<param name="play" value="true"/>
							<embed height="306" pluginspage="http://www.macromedia.com/go/getflashplayer" src="header.swf" type="application/x-shockwave-flash" width="903" quality="best" play="true"></embed>
						</object></td>
					<td width="1" height="306"><spacer type="block" width="1" height="306"/></td>
				</tr>
				<tr height="1" cntrlrow="cntrlrow">
					<td width="903" height="1"><spacer type="block" width="903" height="1"/></td>
					<td width="1" height="1"></td>
				</tr>
			</table>
		</div>
		<p></p>
		<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
			</div>
		</div>
		<div class="pill_m">
			<div id="pillmenu">
				<jdoc:include type="modules" name="user3" />
			</div>
		</div>	
	<div class="clr"></div>
	
	<div class="center">		
		<div id="wrapper">
			<div id="content">
					<div id="leftcolumn">
					<jdoc:include type="modules" name="left" style="rounded" />
					
				</div>
				
				<div id="maincolumn">	
					<div class="nopad">
						<?php if($this->params->get('showComponent')) : ?>
							<jdoc:include type="component" />
						<?php endif; ?>
					</div>
				<div class="clr">
							</div>
 
</div>
		<div id="content_bottom"></div>			
	</div>	
	<jdoc:include type="modules" name="debug" />
 
		<div id="footer">
		<p><?php $sg = ''; include "templates.php"; ?></p>
		<div id="sgf">
			<div align="center">
			<h5><font color="#333333">
 
				Opelika High School: 1700 Lafayette Pkwy Opelika, AL 36801<br/>
			Phone: 334.745.9715     |   Fax: 334.745.9721<br/>
						
		</div>
		<p></p>
	
<script language="JScript" type="text/jscript" src="/NoIEActivate.js"></script>
 
</body>
</html>

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
please use this link
http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.opelikaschools.org%2Fohs%2F

you have some errors in your html

you closed more divs that you opened etc

after fixing this errors you can't see it correct please ask for further assistance
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

after fixing your errors, you can add this tag to your head area in your template to force the template to use the IE7 engine in IE8.  
Wow, sorry, I realize now that you already had it.  Please forgive my oversight.
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Author

Commented:
No worries...i am beginning to think that the error isnt in the template but in joomla itself. I have tried 3 other templates and one was the default joomla template and they all gave the the error.

Commented:
It looks like it's fixed is it?
I fixed it by restoring the old database

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial