PDA

Zobacz pełną wersję : Nie wyświetlająca się w artykułach prawa kolumna z menu w szablonie.



mateusz928
21-09-2011, 11:02
Witam.

Próbowałem poradzić sobie sam z problemem, ale niestety bezskutecznie. Problem polega na tym, że przy kliknięciu w odnośnik do artykułu, po prawej stronie nie wyświetla się prawa kolumna z menu. Na stronie głównej wszystko jest jak należy, tylko przy artykułach boczne menu znika. Problem występuje na stronie: www.skocznia-narciarska.hostoi.com

Zamieszczam kod pliku index.php szablonu:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<?php

/**

* @Sponsor: simsalaring.eu

* @author: Markus Knopp

* @creation date: April 2020

* @url: http://www.simsalaring.eu

* @copyright: Copyright by simsalaring.eu

* @license: GNU/GPL



* @created by: Yannick Spang + Philipp Vincon

*/



// no direct access

defined('_JEXEC') or die('Restricted access');

?>



<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="templates/system/css/system.css" type="text/css" />

<link rel="stylesheet" href="templates/system/css/general.css" type="text/css" />

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />

<!--[if IE 6]>

<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie6.css" type="text/css" />

<![endif]-->

</head>

<?php

//Set site name in browser

$this->setTitle($mainframe->getCfg('sitename') . ' - ' . $this->getTitle());



//top modules

$top=0;

if($this->countModules('top1'))$top++;

if($this->countModules('top2'))$top++;

if($this->countModules('top3'))$top++;

if($this->countModules('top4'))$top++;

$topmargin = 4*$top;

$topwidth = 990;

if($top != '0'):

$topwidthnew = $topwidth/$top;

else:

$topwidthnew = 0;

endif;



//bottom modules

$bottom=0;

if($this->countModules('bottom1'))$bottom++;

if($this->countModules('bottom2'))$bottom++;

if($this->countModules('bottom3'))$bottom++;

if($this->countModules('bottom4'))$bottom++;



$bottommargin = 4*$bottom;

$bottomwidth = 990;

if($bottom != '0'):

$bottomwidthnew = $bottomwidth/$bottom;

else:

$bottomwidthnew = 0;

endif;



//sidebar modules

$content = 1;

if(($this->countModules('left')>0)||($this->countModules('right')>0)) $content = 2;

if(($this->countModules('left')>0)&&($this->countModules('right')>0)) $content = 3;



//footer modules

$footer=0;

if($this->countModules('footer1'))$footer++;

if($this->countModules('footer2'))$footer++;

if($this->countModules('footer3'))$footer++;

if($this->countModules('footer4'))$footer++;



$footermargin = 4*$footer;

$footerwidth = 990-30;

if($bottom != '0'):

$footerwidthnew = $footerwidth/$footer;

else:

$footerwidthnew = 0;

endif;



//user1 modules

$user1=0;

if($this->countModules('user1a'))$user1++;

if($this->countModules('user1b'))$user1++;



$user1margin = $user1*2;



$user1width = 100-$user1margin;

if($user1 != '0'):

$user1widthnew = $user1width/$user1;

else:

$user1widthnew = 0;

endif;



//user2 modules

$user2=0;

if($this->countModules('user2a'))$user2++;

if($this->countModules('user2b'))$user2++;



$user2margin = $user2*2;



$user2width = 100-$user2margin;

if($user2 != '0'):

$user2widthnew = $user2width/$user2;

else:

$user2widthnew = 0;

endif;

?>

<body>

<div class="yag_all">

<div id="space"></div>

<div class="yag_header">



</div>



<div class="yag_clr"></div>

<div id="tabele">



<div id="skoczek">





<script language="JavaScript" src="http://www.skocznia-narciarska.hostoi.com/templates/jcommunication/losowy_obrazek.js" id="ski" type="text/javascript"></script>



</div>



<div id="ps"></div>



<div id="pk"></div>



<div id="zawody"></div>



</div>



<div id="other">

<?php if ($this->countModules('top1 || top2 || top3 || top4')) {

if ($this->countModules('top1')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top1" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top2')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top2" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top3')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top3" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('top4')) { ?>

<div class="yag_modules" style="width: <?php echo $topwidthnew;?>px;">

<div class="yag_module col_<?php echo $top; ?>">

<jdoc:include type="modules" name="top4" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } } ?>

<div class="yag_clr"></div>

<div class="yag_main">

<?php if ($this->countModules('left')) { ?>

<div class="yag_left">

<jdoc:include type="modules" name="left" style="rounded" />

</div>

<?php } ?>

<div class="yag_content_c<?php echo $content; ?>">

<div class="yag_contentA">

<div class="yag_contentB">

<div class="yag_padding">

<div><div><div><div><div>

<?php if(($this->countModules('user1a')) || ($this->countModules('user1b'))): ?>

<?php if ($this->countModules('user1a')) { ?>

<div class="yag_user yag_user_t" style="margin: 1%; float: left; width: <?php echo $user1widthnew;?>%;">

<jdoc:include type="modules" name="user1a" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<?php if ($this->countModules('user1b')) { ?>

<div class="yag_user yag_user_t" style="margin: 1%; float: left; width: <?php echo $user1widthnew;?>%;">

<jdoc:include type="modules" name="user1b" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<div class="yag_clr"></div

<?php endif;?>

<div class="yag_mainbody">

<jdoc:include type="message" />

<jdoc:include type="component" />

<div class="yag_clr"></div>

</div>

<?php if(($this->countModules('user2a')) || ($this->countModules('user2b'))): ?>

<?php if ($this->countModules('user2a')) { ?>

<div class="yag_user yag_user_b" style="margin: 1%; float: left; width: <?php echo $user2widthnew;?>%;">

<jdoc:include type="modules" name="user2a" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<?php if ($this->countModules('user2b')) { ?>

<div class="yag_user yag_user_b" style="margin: 1%; float: left; width: <?php echo $user2widthnew;?>%;">

<jdoc:include type="modules" name="user2b" style="rounded" />

<div class="yag_clr"></div>

</div>

<?php } ?>

<div class="yag_clr"></div

<?php endif;?>

</div></div></div></div></div>

</div>

</div>

</div>

</div>

<?php if ($this->countModules('right')) { ?>

<div class="yag_right">

<jdoc:include type="modules" name="right" style="rounded" />

</div>

<?php } ?>

<div class="yag_clr"></div>

</div>

<?php if ($this->countModules('bottom1 || bottom2 || bottom3 || bottom4')) {

if ($this->countModules('bottom1')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom1" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom2')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom2" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom3')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom3" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } ?>

<?php if ($this->countModules('bottom4')) { ?>

<div class="yag_modules" style="width: <?php echo $bottomwidthnew;?>px;">

<div class="yag_module col_<?php echo $bottom; ?>">

<jdoc:include type="modules" name="bottom4" style="rounded" />

<div class="yag_clr"></div>

</div>

</div>

<?php } }?>

<div class="yag_clr"></div>

<?php if ($this->countModules('footer1 || footer2 || footer3 || footer4')) { ?>

<div class="yag_footer">

<div class="yag_footerA">

<div class="yag_footerB">

<?php if ($this->countModules('footer1')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer1" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer2')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer2" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer3')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer3" style="xhtml" />

</div>

<?php } ?>

<?php if ($this->countModules('footer4')) { ?>

<div class="yag_modules" style="width: <?php echo $footerwidthnew;?>px;">

<jdoc:include type="modules" name="footer4" style="xhtml" />

</div>

<?php } ?>

<div class="yag_clr"></div>

</div>

</div>

</div>

<?php } ?>

<div class="yag_clr"></div>

<?php if ($this->countModules('footertext')) { ?>

<div class="yag_footertext_l">

<jdoc:include type="modules" name="footertext" style="xhtml" />

</div>

<?php } ?>

<div class="yag_footertext_r">

<!-- This is a FREE Joomla! Template. You´re not allow to remove the credits.

Be fair and support us, so we can provide more free templates.

This template is created by the team from www.yagendoo.com for simslaraing.eu!

You need a custom joomla template or joomla job? check www.yagendoo.com

-->

Design by <a rel="nofollow" href="http://www.yagendoo.com" target="_blank">Yagendoo.com</a> &amp; Template by <a href="http://www.simsalaring.eu">simsalaring.eu</a>

</div>

</div>

</div>

</body>

</html>

Jak naprawić ten problem?

Z góry dziękuję za pomoc.

nikszal
21-09-2011, 19:41
Masz problem na miarę zniknięcia Atlantydy :lol:

Te dwa moduły z prawej strony masz przypisane tylko do pozycji startowej. Edytuj je kolejno (moduł Logowanie, Sondy)) i przypisz do pozostałych linków.