Please help fixing my template - Joomla! Forum - community, help and support


i bought template 2 years ago joomla 1.5. upgraded 2.5 , have change code template make work in new 2.5. thing not working top menu. when type "?tp=1" check module positions place top menu suppose @ says [raw outline]. there no position in front of that.

$app =& jfactory::getapplication('site');
$app->initialise();
//$access = !$mainframe->getcfg( 'shownoauth' );
$access = $app->getcfg( 'shownoauth' );
$path = $this->baseurl.'/templates/'.$this->template;
$menu_name_top = "topmenu";
$menu_name_left = "keyconcepts";
$menu_name_right = "topmenu";
$mtype = "moomenu";
$moo_bgiframe = ($this->params->get("moo_bgiframe'","0") == 0)?"false":"true";
$moo_delay = $this->params->get("moo_delay", "500");
$moo_duration = $this->params->get("moo_duration", "700");
$moo_fps = $this->params->get("moo_fps", "300");
$moo_transition = $this->params->get("moo_transition", "back.easeout");

defined( '_jexec' ) or die ( 'restricted access' );
define( 'yourbasepath', dirname(__file__) );
jhtml::_( 'behavior.framework', true);
?>
<!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; ?>" dir="<?php echo $this->direction; ?>">
<head>
<jdoc:include type="head" />
<?php
require(yourbasepath .ds."menu_tools.php");
?>
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/moomenu.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/horiz-menu.css" type="text/css" />
<!--[if lte ie 6]>
<link href="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/css/ie6.css" rel="stylesheet" type="text/css" />
<![endif]-->
<?php if($this->params->get('show_effects')) : ?>
<?php if( $this->params->get( 'modules_start') == 'open' ) :?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/site.js"></script>
<?php else : ?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/js/site2.js"></script>
<?php endif; ?>
<?php endif; ?>
</head>
<body>
<div id="body">
<div id="wrapper" style="z-index:1">
<div id="headerlogo">
<div id="logo"><a href="index.php"><img src="<?php echo $path ?>/images/blank.gif" alt="" /></a></div>
<div id="topright">
<div id="servicetimes"><jdoc:include type="modules" name="user5" style="xhtml" /></div>
<div class="clear"></div>
<jdoc:include type="modules" name="user4" />
</div> <!--end top right-->
<div class="clear"></div>
<!-- top menu -->
<div id="horiz-menu" class="<?php echo $mtype; ?>">
<?php if($mtype != "module") : ?>
<?php echo $topnav; ?>
<?php else: ?>
<jdoc:include type="modules" name="dropmenu" style="fx" />
<?php endif; ?>
</div>
</div><!--end header logo-->
<div class="clear"></div>
<!--home page banners-->
<jdoc:include type="modules" name="user6" style="xhtml" />
<div class="clear"></div>


<?php if ($this->countmodules ('right')) { ?>
<div class="content">
<div id="mainleft">
<!--flash home page banners-->
<jdoc:include type="modules" name="user7" style="xhtml" />
<div class="clear"></div>
<div class="contentp">
<jdoc:include type="message" /><jdoc:include type="component" />
</div>
</div><!--end left content -->
<div id="rightcolumn"><jdoc:include type="modules" name="right" style="fx" /></div>
</div><!--end content container , background-->
<?php }else{ ?>
<div class="content">
<div id="mainfull">
<div class="contentp">
<jdoc:include type="message" /><jdoc:include type="component" />
</div>
</div>
</div><!--end content container , background-->
<?php } ?>
<div class="clear"></div>
<div id="footer"><div align="center"></div>
<div class="text">
<div id="copyright">
<!-- copyright info -->
<div align="center">mercy baptist church | 3474 pennsylvania ave | weirton,
wv 26062 | 304.723.0700<br />
&copy; 2009 mercy baptist church<br />
</div>
</div>
<!-- login module -->
<jdoc:include type="modules" name="user8" style="xhtml" />
</div>
</div>
<jdoc:include type="modules" name="debug" />
</div><!--end template wrapper-->
</div> <!--end body id-->
</body>
</html>

i got rid of if statement , menu appears. not right. instead of showing menu titles , sub menus show when click on it keeps listing submenus horizontally. can please not php coder. thanks

the site http://www.mercybaptistchurch.org/jugrade

this changed code like:
<!-- begin top bar -->
<div id="top-bar">
<div class="wrapper">
<div id="horiz-menu"><jdoc:include type="modules" name="user3" style="none" />
</div><!--home page banners-->
<div class="clear"></div>





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support