maxym
25-10-2008, 15:23
Posiadam joomla 1.5.7
mam problem z ukrywaniem kolumn pod forum fireboard
Chcialbym ukryc lewe menu tak aby forum wyswietlilo sie na calej szerokosci strony.
Posiadam templatke beez a w niej trzy tabele : (left, main, right)
Obecnie forum wyświetla się w main i right. Chcialbym tak ustawić aby wyswietlało sie na calej szerokości czyli chcialbym ukryc kolumne left.
Znalazlem odpowiednią funkcję jednak nie wiem gdzie ją wstawić.
<?php if ( mosCountModules( 'right' ) <= 0) { ?>
<style type="text/css" media="screen">
#main_content {width:75%;}
#misc_bar {display:none;}
</style>
<?php } ?>
oto moj plik index.php w template
<?php
/**
* @copyright Copyright (C) 2005 - 2008 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.
*/
defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit'
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/print.css" type="text/css" media="Print" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/general.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/template_rtl.css" type="text/css" />
<?php endif; ?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/beez/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $this->baseurl ?>/templates/beez/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez/javascript/md_stylechanger.js">***********
</head>
<body>
<div id="all">
<div id="header"> <h1 id="logo"> <jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=Untitled1 WIDTH=211 HEIGHT=53>
<PARAM NAME=movie VALUE="http://www.mojastrona.pl/templates/beez/images/Untitled1.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://www.mojastrona.pl/templates/beez/images/Untitled1.swf" quality=high bgcolor=#FFFFFF
WIDTH=211 HEIGHT=53 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</h1>
<ul>
<li><a href="#content" class="u2"><?php echo JText::_('Skip to Content'); ?></a></li>
<li><a href="#mainmenu" class="u2"><?php echo JText::_('Jump to Main Navigation and Login'); ?></a></li>
<li><a href="#additional" class="u2"><?php echo JText::_('Jump to additional Information'); ?></a></li>
</ul>
<h2 class="unseen">
<?php echo JText::_('Search, View and Navigation'); ?>
</h2>
<div id="breadcrumbs">
<p>
<?php echo JText::_(''); ?>
<jdoc:include type="modules" name="breadcrumb" />
</p>
</div>
<div class="wrap"> </div>
</div><!-- end header -->
<div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
<a name="mainmenu"></a>
<div id="left">
<jdoc:include type="modules" name="left" style="beezDivision" headerLevel="3" />
</div><!-- left -->
<a name="content"></a>
<div id="wrapper">
<div id="<?php echo $showRightColumn ? 'main2' : 'main'; ?>">
<?php if ($this->getBuffer('message')) : ?>
<div class="error">
<h2>
<?php echo JText::_('Message'); ?>
</h2>
<jdoc:include type="message" />
</div>
<?php endif; ?>
<jdoc:include type="component" />
</div><!-- end main or main2 -->
<?php if ($showRightColumn) : ?>
<div id="right">
<a name="additional"></a>
<h2 class="unseen">
<?php echo JText::_('Additional Information'); ?>
</h2>
<jdoc:include type="modules" name="top" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="user1" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="user2" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="right" style="beezDivision" headerLevel="3" />
</div><!-- right -->
<?php endif; ?>
<div class="wrap"></div>
</div><!-- wrapper -->
</div><!-- contentarea -->
</div>
<div id="footer">
<center><p class="syndicate2">
<jdoc:include type="modules" name="syndicate2" />
</p></center>
<p class="syndicate">
<jdoc:include type="modules" name="syndicate" />
</p>
<p>
<?php echo JText::_('');?> Copyright © <a href="http://www.mojastrona.pl">mojastrona.pl</a> <a href="http://www.joomla.org/">Joomla</a>
</p>
<div class="wrap"></div>
</div><!-- footer -->
</div><!-- all -->
<jdoc:include type="modules" name="debug" />
</body>
</html>
mam problem z ukrywaniem kolumn pod forum fireboard
Chcialbym ukryc lewe menu tak aby forum wyswietlilo sie na calej szerokosci strony.
Posiadam templatke beez a w niej trzy tabele : (left, main, right)
Obecnie forum wyświetla się w main i right. Chcialbym tak ustawić aby wyswietlało sie na calej szerokości czyli chcialbym ukryc kolumne left.
Znalazlem odpowiednią funkcję jednak nie wiem gdzie ją wstawić.
<?php if ( mosCountModules( 'right' ) <= 0) { ?>
<style type="text/css" media="screen">
#main_content {width:75%;}
#misc_bar {display:none;}
</style>
<?php } ?>
oto moj plik index.php w template
<?php
/**
* @copyright Copyright (C) 2005 - 2008 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.
*/
defined('_JEXEC') or die('Restricted access');
$url = clone(JURI::getInstance());
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit'
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/position.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/layout.css" type="text/css" media="screen,projection" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/print.css" type="text/css" media="Print" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/general.css" type="text/css" />
<?php if($this->direction == 'rtl') : ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/beez/css/template_rtl.css" type="text/css" />
<?php endif; ?>
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/beez/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link href="<?php echo $this->baseurl ?>/templates/beez/css/ie7only.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/beez/javascript/md_stylechanger.js">***********
</head>
<body>
<div id="all">
<div id="header"> <h1 id="logo"> <jdoc:include type="modules" name="user3" />
<jdoc:include type="modules" name="user4" />
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"
ID=Untitled1 WIDTH=211 HEIGHT=53>
<PARAM NAME=movie VALUE="http://www.mojastrona.pl/templates/beez/images/Untitled1.swf">
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
<EMBED src="http://www.mojastrona.pl/templates/beez/images/Untitled1.swf" quality=high bgcolor=#FFFFFF
WIDTH=211 HEIGHT=53 TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</EMBED>
</OBJECT>
</h1>
<ul>
<li><a href="#content" class="u2"><?php echo JText::_('Skip to Content'); ?></a></li>
<li><a href="#mainmenu" class="u2"><?php echo JText::_('Jump to Main Navigation and Login'); ?></a></li>
<li><a href="#additional" class="u2"><?php echo JText::_('Jump to additional Information'); ?></a></li>
</ul>
<h2 class="unseen">
<?php echo JText::_('Search, View and Navigation'); ?>
</h2>
<div id="breadcrumbs">
<p>
<?php echo JText::_(''); ?>
<jdoc:include type="modules" name="breadcrumb" />
</p>
</div>
<div class="wrap"> </div>
</div><!-- end header -->
<div id="<?php echo $showRightColumn ? 'contentarea2' : 'contentarea'; ?>">
<a name="mainmenu"></a>
<div id="left">
<jdoc:include type="modules" name="left" style="beezDivision" headerLevel="3" />
</div><!-- left -->
<a name="content"></a>
<div id="wrapper">
<div id="<?php echo $showRightColumn ? 'main2' : 'main'; ?>">
<?php if ($this->getBuffer('message')) : ?>
<div class="error">
<h2>
<?php echo JText::_('Message'); ?>
</h2>
<jdoc:include type="message" />
</div>
<?php endif; ?>
<jdoc:include type="component" />
</div><!-- end main or main2 -->
<?php if ($showRightColumn) : ?>
<div id="right">
<a name="additional"></a>
<h2 class="unseen">
<?php echo JText::_('Additional Information'); ?>
</h2>
<jdoc:include type="modules" name="top" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="user1" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="user2" style="beezDivision" headerLevel="3" />
<jdoc:include type="modules" name="right" style="beezDivision" headerLevel="3" />
</div><!-- right -->
<?php endif; ?>
<div class="wrap"></div>
</div><!-- wrapper -->
</div><!-- contentarea -->
</div>
<div id="footer">
<center><p class="syndicate2">
<jdoc:include type="modules" name="syndicate2" />
</p></center>
<p class="syndicate">
<jdoc:include type="modules" name="syndicate" />
</p>
<p>
<?php echo JText::_('');?> Copyright © <a href="http://www.mojastrona.pl">mojastrona.pl</a> <a href="http://www.joomla.org/">Joomla</a>
</p>
<div class="wrap"></div>
</div><!-- footer -->
</div><!-- all -->
<jdoc:include type="modules" name="debug" />
</body>
</html>