Elxis CMS Forum

Extensions => Templates => Topic started by: Seiyoku on March 07, 2007, 01:26:42

Title: Templates with just one side menu
Post by: Seiyoku on March 07, 2007, 01:26:42
Hello,
I am using a template that has two bars for the menu.
similar to cynterela but is the waterandstone from mambo. I can't figure out of to eliminate the right part the one that shows the pools.
I want to take it off since it just take space away, and I doubt I will ever use a pool.

Hope I have been enought clear.

Thanks

Title: Re: Templates with just one side menu
Post by: CREATIVE Options on March 07, 2007, 14:49:05

I could help you but I don't have the "waterandstone" template in my database (current number 376), if you want you can send it to me at the email:
support [at] creativeoptions [dot] eu
Title: Re: Templates with just one side menu
Post by: Ivan Trebješanin on March 07, 2007, 22:49:26
It's fairly easy: go to template's index.php and delete calls for user right and user2 modules, or simply unpublish polls and all right modules if you don't feel confortable editing template. :P
Title: Re: Templates with just one side menu
Post by: Seiyoku on March 20, 2007, 12:58:21
Editing the html I guess I did make some mistakes, the index just stop working!  ;D

I tried to unpublish the polls and the right modules, but the colum just stay there, empty... but still visible.

 ???

@Sirigos I sent you an e-mail...

Title: Re: Templates with just one side menu
Post by: Ivan Trebješanin on March 20, 2007, 15:19:51
That means that template's poorly configured. If you made it yourself, go for collapsable modules trick  ;)
Title: Re: Templates with just one side menu
Post by: Ivan Trebješanin on March 20, 2007, 15:21:38
Oh... I just remembered... You CAN see what I'm talking about at my site: www.jazzign.com. Elxis under it, and just one menu....
Title: Re: Templates with just one side menu
Post by: Seiyoku on March 20, 2007, 23:34:01
That means that template's poorly configured. If you made it yourself, go for collapsable modules trick  ;)

ok,
it's a mambo templates by the way... waterandstone

maybe I just earesed the wrong stuff on the html, this is what I have as html, I erased the part written in purple the site is still woriking, but I still see the right colum ??? I attacch you  a screenshot, of the site... I guess the "debug" maight be what keeps the right colum in place, but I don't find it in the modules.

Quote
<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = explode( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>';
?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php mosShowHead(); ?>
<?php
if ( $my->id ) {
   initEditor();
}
?>
<link href="<?php echo $mosConfig_live_site;?>/templates/waterandstone/css/template_css.css" rel="stylesheet" type="text/css"/>
</head>
<body class="waterbody">

<div align="center">
<div id="container">
   <div id="containerbg">
      <div id="outerleft">
         <!-- start logo -->
         <div id="logo">
           <a href="index.php"><img src="<?php echo $mosConfig_live_site; ?>/templates/waterandstone/images/logo.gif" alt="logo image" border="0" align="top" /></a>
         </div>
         <!-- end logo -->
         <!-- start top menu -->
         <div id="topmenu">
         <?php mosLoadModules('top',-1); ?>
         </div>
         <!-- end top menu.  -->
         <!-- start image header -->
         <div id="imgheader">
         <img src="<?php echo $mosConfig_live_site; ?>/templates/waterandstone/images/img_header.jpg" alt="header image" />
         </div>
         <!-- end image header -->
         <div id="container_inner">
            <!-- start left column. -->
            <div id="leftcol">
            <?php mosLoadModules('left'); ?>
            </div>
            <div id="leftcolmenu">
            <?php mosLoadModules('user1'); ?>
            </div>
            <!-- end left column. -->
            <!-- start content top wrapper -->
            <?php
            if (mosCountModules('user2') >= 1 OR mosCountModules('user3') >= 1 ) {
            ?>
            <div id="content_top_wrapper">
               <!-- start content top 1.  -->
               <div id="content_top1">
               <?php mosLoadModules('user2'); ?>
               </div>
               <!-- end content top 1 -->
               <!-- start content top 2.  -->
               <div id="content_top2">
               <?php mosLoadModules('user3'); ?>
               </div>
               <!-- end content top 2 -->
            </div>
            <?php
            }
            ?>
            <!-- end content top wrapper -->
            <!-- start main body -->
            <div id="content_main">
               <?php mosPathWay(); ?>
               <table width="719" border="0" cellspacing="0" cellpadding="0">
                 <tr>
                  <td>
                  <?php mosMainBody(); ?>
                  </td>
                 </tr>
               </table>
            </div>
            <!-- end main body -->
         </div>
      </div>
      <div id="outerright">
         <!-- start right top header.  --> 
         <div id="rightcol_top">
         <?php mosLoadModules('header'); ?>
         </div>
         <!-- end right top header.-->
         <!-- start right column. -->
         <div id="rightcol">
         <?php mosLoadModules('newsflash'); ?>
         <?php mosLoadModules('right'); ?>
         <?php mosLoadModules('user4'); ?>
         </div>
         <!-- end right column. -->
      </div>
      
      <div class="clear">
      </div>
      <?php
      if (mosCountModules('banner') >= 1) {
      ?>
         <!-- start banner.  -->
         <div id="banner">
         <?php mosLoadModules('banner'); ?>
         </div>
         <!-- end banner. -->
      <?php
      }
      ?>
      
      <div id="blackline">
      </div>
      <div class="clear">
      </div>
      <div id="bottompadding"></div>
   </div>
   <!-- copyright notice -->
   <div id="copyright">
   <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
   </div>

</div>
</div>

<?php mosLoadModules('debug', -1);?>
</body>
</html>

I am trying to understand if the debug on the right might be the problem.... I already removed all what I had in that colum polls and search..

(http://img455.imageshack.us/img455/818/schermata2nm3.jpg)

by the way jazzman, I like your slogan on the site "dare to be simple"

and of course I am a compleate noob in PHP....
Title: Re: Templates with just one side menu
Post by: Ivan Trebješanin on March 20, 2007, 23:45:42
woof... to much reading for me  ;)

Here's what I had in mind:

<?php if (mosCountModules( "right" )) { ?>
                 <div id="SomeDIV">
                        <?php mosLoadModules( "right" ); ?>
                 </div>
<?php } ?>
<?php if (mosCountModules( "user2" )) { ?>
                  <div id="YetAnotherDiv">
                        <?php mosLoadModules( "user2" ); ?>
                   </div>
<?php } ?>

see my point? Since you are using php, you can ask if there are some modules published and, if so, create container for them.
Title: Re: Templates with just one side menu
Post by: Ivan Trebješanin on March 20, 2007, 23:51:36
Oh, and thanx for visiting my site, I hope to write some tuts, and post one free template for elxis a month.

PS
I say one template for elxis, because I want to make templates with default elxis module positions, not joomla or mambo.