Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 15

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Templates > Template Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 13.04.2004, 23:42   #11 (permalink)
Junior Mamber
 
Join Date: Apr 2004
Posts: 34
Kumagoro is on a distinguished road
Default Re: removing module areas?

Thanks alot ill give it a try
Kumagoro is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 26.08.2004, 17:38   #12 (permalink)
Expert Mamber
 
kachete's Avatar
 
Join Date: Apr 2004
Location: Venezuela
Posts: 345
kachete is on a distinguished road
Send a message via ICQ to kachete Send a message via MSN to kachete Send a message via Yahoo to kachete
Default Re: removing module areas?

Hello

There is a way for you mambers to show us a solution for these enigma for easy implementing from us the newcommers in mambo

Can you post some code to put in the template so when we use some link in the menu the columns hide and when press some option the show contents

Please son urgent help here

Please Help

Best Regards
__________________
No hay preguntas tontas, Solo Tontos que no preguntan
www.kachetewebsites.com / www.misitiove.com
kachete is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.08.2004, 17:41   #13 (permalink)
Expert Mamber
 
quiquedcode's Avatar
 
Join Date: Jun 2004
Location: San Juan, Argentina
Posts: 306
quiquedcode will become famous soon enough
Send a message via ICQ to quiquedcode Send a message via MSN to quiquedcode Send a message via Yahoo to quiquedcode
Default Re: removing module areas?

i second kachete's question...
i'd like to know how to hide the right column when the user clicks the CHAT option (which calls a chat component) ...
I ask this because chat applet is bigger than the width of the mainbody, and i don't want the main table to become bigger and make the site design look bad.

thanks a lot !!
hope your help !
__________________
Enrique Becerra
MSN: qbecerra @ hotmail.com
ICQ: 18048153
www.beza.com.ar

"If you pay peanuts, you will get monkeys!" - ChicoMendez
quiquedcode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.08.2004, 09:00   #14 (permalink)
Junior Mamber
 
AllMaMbo's Avatar
 
Join Date: Apr 2004
Location: East Coast
Posts: 47
AllMaMbo is on a distinguished road
Send a message via MSN to AllMaMbo
Default Re: hiding the right column in a template

well in order to hide any module position in mambo you need tow things.
ask mambo if the position is enabled (published on that page)
the code to do this is
PHP Code:
<?php if (mosCountModules"position" )) { } ?>
ok for the rundown.. pretty straight forward, you ask and mambo responds..
whatever you need to hide or show goes between the { } brackets.

for some practical use.. say you want to hide the right column on a 3 column layout.. your index.php file (partially) would look something like this:
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> 
      <?php mosLoadModules ( 'left' ); ?>
      <?php mosLoadModules ( 'user1' ); ?>
    </td>
    <td>
      <?php include_once ("mainbody.php"); ?>
    </td>
    <td> 
      <?php mosLoadModules ( 'right' ); ?>
      <?php mosLoadModules ( 'user2' ); ?>
    </td>
  </tr>
</table>
now all you need is to add the first thing i mentioned..
to hide thie right column your code will look sort of like this..
PHP Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> 
      <?php mosLoadModules 'left' ); ?>
      <?php mosLoadModules 'user1' ); ?>
    </td>
    <td>
      <?php include_once ("mainbody.php"); ?>
    </td>
    <?php if (mosCountModules"right" )) { ?>
    <td> 
      <?php mosLoadModules 'right' ); ?>
      <?php mosLoadModules 'user2' ); ?>
    </td>
    <?php ?>
  </tr>
</table>
and the above does this.. when the right modules are disabled on a particular section (say simpleboard) this section will be skipped, so you won't see it
PHP Code:
<?php if (mosCountModules"right" )) { ?>
    <td> 
      <?php mosLoadModules 'right' ); ?>
      <?php mosLoadModules 'user2' ); ?>
    </td>
    <?php ?>
notice that i have an entire cell captured
so be careful what you want to hide, as with html only certain things are allowed, so watch where you place those { } brackets, the need to be around a whole table, row, or cell... or a div if you're using css..
and the possibilities for this use are endless.. coupled with some custom defined positions, you can do just about anything using this techniqe...

and another useful thing is something like this
PHP Code:
<?php  if ($option == "com_frontpage") { ?>
<td> some stuff goes here.. that will only show on frontpage</td>
<?php }
else { 
// DO NOTHING, or do something else
?>
the above willl only show the the cell when the user is on the frontpage com_frontpage this can also be used for hiding the module positions if you're that lazy and don't feel like doing all this backend stuff, hiding modules on certain pages, you can use the com_simpleboard... or whatever, and have mambo hide a certain section according to the page it's on, couple that with some more com_whatevers, and you can make Mambo really dance.. ....
you can see this in action on my alm_classy template..

hope this helps..
__________________
Templates, Tutorials, MOS newbie corner.
AllMambo.com

Last edited by AllMaMbo; 27.08.2004 at 09:05. Reason: forgot to mention something
AllMaMbo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.08.2004, 05:27   #15 (permalink)
Senior Mamber
 
Join Date: Jun 2004
Posts: 159
mgerrard is on a distinguished road
Default Re: hiding the right column in a template

Nice one AllMaMbo, your explanation should be pasted into a sticky FAQ somewhere, the number of times I've seen people ask this question makes my eyes water
mgerrard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.08.2004, 05:33   #16 (permalink)
Baby Mamber
 
bucabay's Avatar
 
Join Date: May 2004
Posts: 12
bucabay is on a distinguished road
Default Re: removing module areas?

Wow thanks allot allmambo ...
i agree with mgerrard... this should be a sticky...
__________________
Fiji Web Design
Mambo Components:
Cpanel Email for Mambo!.
Mambo Components:
AJAX Chat for Mambo!.

Last edited by bucabay; 28.08.2004 at 05:39. Reason: none
bucabay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 23.10.2004, 19:33   #17 (permalink)
Baby Mamber
 
Join Date: May 2004
Posts: 11
unbeliever is on a distinguished road
Thumbs up Re: hiding the right column in a template

Absolutely fantastic explanation!! Thanx a lot...

I've been wondering about this for a long time, and saw it in action on the solarflare template. I researched it's index.php and figured out it had to be something like this, but didn't get the whole picture. Like the part of it having to between {}. I'm an inspired self-learning kind of guy, and it wasn't untill Mambo that I got into more complex coding. And what a thrill that is!!

Maybe a little of topic, but also featuring in the solarflare template:
What does this mean:
Code:
<?php mosLoadModules ( 'user3', -1); ?>
And I mean the -1 part. What does -1 stand for? Does it have anything to do with something showing/hiding?

respect!

Frank
unbeliever is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 27.04.2005, 04:48   #18 (permalink)
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: hiding the right column in a template

Using parameters in the module call Did you know that with Mambo 4.5.1 you can choose to display your modules either wrapped in tables or div or nothing ?
  1. <?php mosLoadModules ( 'left'); ?> Normal display, wrapped in a table
  2. <?php mosLoadModules ( 'left', -1 ); ?> Wrapped in a div
  3. <?php mosLoadModules ( 'left', -2 ); ?> Not wrapped
(from http://www.yatienesweb.com/content/blogcategory/3/63/)
__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.09.2005, 21:06   #19 (permalink)
Baby Mamber
 
Join Date: Sep 2005
Posts: 2
mcwassell is on a distinguished road
Default Re: removing module areas?

Quote:
Originally Posted by jomaco1
Too large to post text...

Rename attached file to index.php and copy over old (using rename option), or just open it in text editor and copy/paste.
I have tried several diffrent ways to disable the right column so that Gallery can have more room but i can not figure it out. COuld some one please help me? I am using a heavily modified Path Less Traveled template. Here is my index.php file too, and the website is http://test.thewassells.com
mcwassell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 26.09.2005, 21:51   #20 (permalink)
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: hiding the right column in a template

These are one of those templates that makes my skin crawl. It is set up so specifically to do just what it's supposed to do. It is a great template but if you have to modify it, you REALLY have to hack it. I actually started one of my client sites with this template and ended up scrapping it after about 3 hours of hacking and decided to build my own custom template from the ground up. If you wanted to make it more complicated, I am sure you can continue to hack this template but if you are lost now (as I was) you will find that in 6 months when you need to make a change, you will REALLY be lost... MY advice: Start from scratch and build it to your specs... Sorry
__________________
www.crashgraphics.com
Aaron Monello
crash777 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modifing Login Module bedet Module Development 4 02.02.2008 07:48
[Stable v1.0.7] Who's Online module count wrong! wood_flower Mambo 4.5 Bugs 13 13.07.2005 05:36
is it possible to use a module as a component? Kal Component 'How Do I' Questions 4 12.04.2004 20:40
How do I change the font colour in the Events module? Bean Module 'How Do I' Questions 3 12.04.2004 14:45
How to insert an ENLARGEABLE pic like it were a MODULE alfri Module 'How Do I' Questions 3 11.04.2004 01:30


All times are GMT +2. The time now is 09:41.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.