Well I scoured the web and came up with a result only 4 from the top when searching for "trentco display problem" in google.
So it looks like the custom home module is being called in the templates index.php file before the other modules and that it what's causing the problem in 1.5 So Just a little re-arranging of the script fixed it. Here is MY version of the edit (took out the <hr> code... didn't see why it needed to be there. If I find any conflicts, I'll update this here.
| Code: |
<?php
/**
* @copyright Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );
?>
<!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>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/common.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/overIE.js"></script>
<style type="text/css" media="all">
<?php if ($this->params->get('authorName')=='no') { ?> .author {display:none} <?php } ?>
<?php if ($this->params->get('dateCreated')=='no') { ?> .createdate {display:none} <?php } ?>
<?php if ($this->params->get('dateModified')=='no') { ?> .modifydate {display:none} <?php } ?>
<?php if ($this->params->get('Buttons')=='no') { ?> .buttons {display:none} <?php } ?>
</style>
</head>
<body id="body">
<div id="wrapper">
<div id="header">
<div id="logo">
<a href="<?php echo $this->baseurl ?>" title="Home">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo.jpg" width="125" height="40" alt="logo" />
</a>
</div>
<div id="menu"><jdoc:include type="modules" name="mainmenu" /></div>
</div><!-- end header div -->
<div id="wrapper_content">
<?php if(JRequest::getVar('view') == 'frontpage') {?>
<div id="home_img">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/home_img.jpg" width="518" height="388" alt="logo" />
</div>
<div id="home_module">
<jdoc:include type="modules" name="center_header" style="xhtml" />
</div>
<hr>
<div id="left">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<div id="content">
<div id="content-padding">
<div class="module-padding">
<jdoc:include type="modules" name="abovemain" style="xhtml" />
</div>
<jdoc:include type="component" style="xhtml" />
<div class="module-padding">
<jdoc:include type="modules" name="belowmain" style="xhtml" />
</div>
</div>
</div>
<?php } else { ?>
<div id="in_img">
<img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/in_img.jpg" width="518" height="115" alt="logo" />
</div>
<div id="left">
<jdoc:include type="modules" name="left" style="xhtml" />
</div>
<div id="content">
<div id="content-padding">
<div class="module-padding">
<jdoc:include type="modules" name="abovemain" style="xhtml" />
</div>
<jdoc:include type="component" style="xhtml" />
<div class="module-padding">
<jdoc:include type="modules" name="belowmain" style="xhtml" />
</div>
</div>
</div>
<?php } ?>
<div class="clear"></div>
</div><!-- end wrapper_content div -->
<div id="right">
<jdoc:include type="modules" name="right" style="xhtml" />
</div>
<div class="clear"></div>
<div id="footer">
<div id="footermenu">
<jdoc:include type="modules" name="footer" style="xhtml" />
</div>
</div>
</div><!-- end wrapper div -->
<div class="space"></div>
</body>
</html>
|
