Есть такая я проблема - установил шаблон, все работает а после установки компонентов любых, я перехожу на его страницу, например форума, и пропадает весь шаблон тоесть текст есть а оформления нет - что ето может быть? пример сайта - http://aquabanka.com/index.php/ страница с ошмбкой - http://aquabanka.com/index.php/2011-07-0... заранее спасибо!
ибо путь к ксскам нуна ставить абсолютный Код (PHP): <link type="text/css" href="<?php echo JURI::base();?>templates/system/css/system.css" rel="stylesheet">
При подключении кссок в хедере, ставить не относительный путь, а абсолютный... не Код (html): <link type="text/css" href="templates/system/css/system.css" rel="stylesheet"> а Код (html): <link type="text/css" href="<?php echo JURI::base();?>templates/system/css/system.css" rel="stylesheet">
в моем случае КСС так написано Код (html): <link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->baseurl(); ?>templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" /> на что поменять подскажите пожалуйста((
Вот весь код главной проверь пожалуйста: Код (html): <?php /*------------------------------------------------------------------------ # JA Sanidine for Joomla 1.5 - Version 1.0 - Licence Owner JA2 # ------------------------------------------------------------------------ # Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved. # @license - Copyrighted Commercial Software # Author: J.O.O.M Solutions Co., Ltd # Websites: http://www.joomlart.com - http://www.joomlancers.com # This file may not be redistributed in whole or significant part. -------------------------------------------------------------------------*/ // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); include_once (dirname(__FILE__).DS.'ja_vars_1.5.php'); ?> <!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" /> <?php JHTML::_('behavior.mootools'); ?> <link rel="stylesheet" href="<?php echo JURI::base();?>templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo JURI::base();?>templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/template.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $tmpTools->templateurl(); ?>/css/typo.css" type="text/css" /> <script language="javascript" type="text/javascript"> var siteurl = '<?php echo $tmpTools->baseurl();?>'; var tmplurl = '<?php echo $tmpTools->templateurl();?>'; </script> <script language="javascript" type="text/javascript" src="<?php echo $tmpTools->templateurl(); ?>/js/ja.script.js"></script> <!-- js for dragdrop --> <!-- Menu head --> <?php if ($jamenu) $jamenu->genMenuHead(); ?> <link href="<?php echo $tmpTools->templateurl(); ?>/css/colors/<?php echo $tmpTools->getParam(JA_TOOL_COLOR); ?>.css" rel="stylesheet" type="text/css" /> <!--[if lte IE 6]> <style type="text/css"> .clearfix {height: 1%;} img {border: none;} </style> <![endif]--> <!--[if gte IE 7.0]> <style type="text/css"> .clearfix {display: inline-block;} </style> <![endif]--> <?php if ($tmpTools->isIE6()) { ?> <!--[if lte IE 6]> <link href="<?php echo $tmpTools->templateurl(); ?>/css/ie6.php" rel="stylesheet" type="text/css" /> <script type="text/javascript"> window.addEvent ('load', makeTransBG); function makeTransBG() { makeTransBg($$('img')); } </script> <![endif]--> <?php } ?> </head> <?php //populate background for body $bodybg = $tmpTools->getParam('ja_bodybg'); if ($bodybg) { $bodybg = " style=\"background-image: url(".$tmpTools->templateurl()."/images/background/$bodybg);\""; } ?> <body id="bd" class="<?php echo $tmpTools->getParam(JA_TOOL_LAYOUT);?> <?php echo $tmpTools->getParam(JA_TOOL_SCREEN);?> fs<?php echo $tmpTools->getParam(JA_TOOL_FONT);?>"<?php echo $bodybg;?> > <a name="Top" id="Top"></a> <ul class="accessibility"> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-content" title="<?php echo JText::_("Skip to content");?>"><?php echo JText::_("Skip to content");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-mainnav" title="<?php echo JText::_("Skip to main navigation");?>"><?php echo JText::_("Skip to main navigation");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col1" title="<?php echo JText::_("Skip to 1st column");?>"><?php echo JText::_("Skip to 1st column");?></a></li> <li><a href="<?php echo $tmpTools->getCurrentURL();?>#ja-col2" title="<?php echo JText::_("Skip to 2nd column");?>"><?php echo JText::_("Skip to 2nd column");?></a></li> </ul> <div id="ja-wrapper"> <div id="ja-topbar" class="clearfix"> <div id="ja-pathway"> <strong>You are here:</strong><jdoc:include type="module" name="breadcrumbs" /> </div> <?php if ($this->countModules('user4')) { ?> <div id="ja-search" class="clearfix"> <jdoc:include type="modules" name="user4" style="raw" /> </div> <?php } ?> </div> <!-- BEGIN: HEADER --> <div id="ja-header" class="clearfix"> <?php $siteName = $tmpTools->sitename(); if ($tmpTools->getParam('logoType')=='image') { ?> <h1 class="logo"> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $siteName; ?></span></a> </h1> <?php } else { $logoText = (trim($tmpTools->getParam('logoText'))=='') ? $config->sitename : $tmpTools->getParam('logoText'); $sloganText = (trim($tmpTools->getParam('sloganText'))=='') ? JText::_('SITE SLOGAN') : $tmpTools->getParam('sloganText'); ?> <div class="logo-text"> <p class="site-slogan"><?php echo $sloganText;?></p> <h1> <a href="index.php" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a> </h1> </div> <?php } ?> <?php if ($this->countModules('top')) { ?> <div id="ja-login"> <jdoc:include type="modules" name="top" style="raw" /> </div> <?php } ?> </div> <!-- END: HEADER --> <!-- BEGIN: MAIN NAVIGATION --> <?php if ($tmpTools->getParam('ja_menu') != 'none') : ?> <div id="ja-mainnav"> <?php if ($jamenu) $jamenu->genMenu (0); ?> </div> <?php if ($hasSubnav) : ?> <div id="ja-subnav" class="clearfix"> <?php if ($jamenu) $jamenu->genMenu (1,1); ?> </div> <?php endif; ?> <?php endif; ?> <!-- END: MAIN NAVIGATION --> <?php if( $this->countModules('topsl1') && $this->countModules('topsl2') ) { ?> <!-- BEGIN: TOP SPOTLIGHT --> <div id="ja-topsl" class="clearfix"> <div id="ja-topsl1"> <jdoc:include type="modules" name="topsl1" style="raw" /> </div> <div id="ja-topsl2"> <jdoc:include type="modules" name="topsl2" style="xhtml" /> </div> </div> <!-- END: TOP SPOTLIGHT --> <?php } ?> <div id="ja-containerwrap<?php echo $divid; ?>"> <div id="ja-container" class="clearfix"> <div id="ja-mainbody" class="clearfix"> <?php $spotlight = array ('user1','user2','user5'); $contentsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9); if( $contentsl ) { ?> <!-- BEGIN: CONTENT SPOTLIGHT--> <div id="ja-contentsl1" class="clearfix"> <?php if( $this->countModules('user1') ) {?> <div class="ja-box<?php echo $contentsl['user1']['class']; ?>" style="width: <?php echo $contentsl['user1']['width']; ?>;"> <jdoc:include type="modules" name="user1" style="rounded" /> </div> <?php } ?> <?php if( $this->countModules('user2') ) {?> <div class="ja-box<?php echo $contentsl['user2']['class']; ?>" style="width: <?php echo $contentsl['user2']['width']; ?>;"> <jdoc:include type="modules" name="user2" style="rounded" /> </div> <?php } ?> <?php if( $this->countModules('user5') ) {?> <div class="ja-box<?php echo $contentsl['user5']['class']; ?>" style="width: <?php echo $contentsl['user5']['width']; ?>;"> <jdoc:include type="modules" name="user5" style="rounded" /> </div> <?php } ?> </div> <!-- END: CONTENT SPOTLIGHT --> <?php } ?> <!-- BEGIN: CONTENT --> <div id="ja-content"><div id="ja-content-top"><div id="ja-content-bot" class="clearfix"> <jdoc:include type="message" /> <div id="ja-current-content" class="clearfix"> <jdoc:include type="component" /> </div> </div></div></div> <!-- END: CONTENT --> <?php if ($ja_left) { ?> <!-- BEGIN: LEFT COLUMN --> <div id="ja-col1"> <div class="ja-innerpad"> <jdoc:include type="modules" name="left" style="rounded" /> </div></div><br /> <!-- END: LEFT COLUMN --> <?php } ?> <?php if($this->countModules('banner')) : ?> <div id="ja-banner"> <jdoc:include type="modules" name="banner" /> </div> <?php endif; ?> <?php $spotlight = array ('user6','user7'); $contentsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9); if( $contentsl ) { ?> <!-- BEGIN: CONTENT SPOTLIGHT 2--> <div id="ja-contentsl2" class="clearfix"> <?php if( $this->countModules('user6') ) {?> <div class="ja-box<?php echo $contentsl['user6']['class']; ?>" style="width: <?php echo $contentsl['user6']['width']; ?>;"> <jdoc:include type="modules" name="user6" style="rounded" /> </div> <?php } ?> <?php if( $this->countModules('user7') ) {?> <div class="ja-box<?php echo $contentsl['user7']['class']; ?>" style="width: <?php echo $contentsl['user7']['width']; ?>;"> <jdoc:include type="modules" name="user7" style="rounded" /> </div> <?php } ?> </div> <!-- END: CONTENT SPOTLIGHT 2--> <?php } ?> <?php if( $this->countModules('user10') ) {?> <!-- BEGIN: TABS --> <div id="ja-tabs" class="clearfix"> <jdoc:include type="modules" name="user8" style="rounded" /> </div> <!-- END: TABS--> <?php } ?> </div> <?php if ($ja_right) { ?> <!-- BEGIN: RIGHT COLUMN --> <div id="ja-col2"> <div class="ja-innerpad"> <jdoc:include type="modules" name="right" style="rounded" /> <?php $tmpTools->genToolMenu($tmpTools->getParam('usertool_bg')); ?> </div></div><br /> <!-- END: RIGHT COLUMN --> <?php } ?> </div></div> <?php $spotlight = array ('user9','user10','user11','user12'); $botsl = $tmpTools->calSpotlight ($spotlight,$tmpTools->isOP()?100:99.9); if( $botsl ) { ?> <!-- BEGIN: BOTTOM SPOTLIGHT --> <div id="ja-botsl" class="clearfix"> <?php if( $this->countModules('user9') ) {?> <div class="ja-box<?php echo $botsl['user9']['class']; ?>" style="width: <?php echo $botsl['user9']['width']; ?>;"> <jdoc:include type="modules" name="user9" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user10') ) {?> <div class="ja-box<?php echo $botsl['user10']['class']; ?>" style="width: <?php echo $botsl['user10']['width']; ?>;"> <jdoc:include type="modules" name="user10" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user11') ) {?> <div class="ja-box<?php echo $botsl['user11']['class']; ?>" style="width: <?php echo $botsl['user11']['width']; ?>;"> <jdoc:include type="modules" name="user11" style="xhtml" /> </div> <?php } ?> <?php if( $this->countModules('user12') ) {?> <div class="ja-box<?php echo $botsl['user12']['class']; ?>" style="width: <?php echo $botsl['user12']['width']; ?>;"> <jdoc:include type="modules" name="user12" style="xhtml" /> </div> <?php } ?> </div> <!-- END: BOTTOM SPOTLIGHT --> <?php } ?> <!-- BEGIN: FOOTER --> <div id="ja-botnav"> <jdoc:include type="modules" name="user3" /> </div> <div id="ja-footer"> <jdoc:include type="modules" name="footer" /> </div> <!-- END: FOOTER --> </div> <jdoc:include type="modules" name="debug" /> <script type="text/javascript"> addSpanToTitle(); jaAddFirstItemToTopmenu(); jaRemoveLastContentSeparator(); //jaRemoveLastTrBg(); </script> </body> </html>
а ну либо убери в админке ЧПУ, либо поставь мод_реврайт. Там в глобальных настройках жумлы эти галочки(+ для включения мод_реврайта нуна будет переименовать htaccess.txt который лежит в корне в .htaccess)