Members: 16,996
Threads: 38,866
Posts: 159,475
Online: 37

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 Search this Thread Display Modes
Old 22.06.2004, 10:28   #1 (permalink)
Mamber
 
tamper's Avatar
 
Join Date: May 2004
Posts: 79
tamper is on a distinguished road
Default Do I have to design *every* custom module position in my template?

Hi,

I'm working on a template, using some of the visualdensity PSD sources as a guide of just 'how much' of the template I need to design.

Similar to visualtech for example, I would like to create multiple module 'boxes', based on the same graphic style. My question is how to make these boxes only appear if a module is published into them.

What I don't want is empty module panels appearing, just becuase they're hard-coded into the template.

Can module box panel graphics be conditional in this way?

Thanks,
t
tamper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 22.06.2004, 10:38   #2 (permalink)
Professional Mamber
 
michelerocco's Avatar
 
Join Date: Apr 2004
Location: Pula - Cagliari - Italy
Posts: 611
michelerocco will become famous soon enough
Send a message via MSN to michelerocco
Default Re: Do I have to design *every* custom module position in my template?

yes, if you use the search in this forum you'll find other post related to this.

U can do it using some php coding.

Where you want the module you must insert an if statement for look if the position is empty or not, so if empty just jump the part of html code for the box, if not show it ...

if I find the code i'll post it.

Bye
__________________
Michele Rocco
WebSite Design, Graphics, Programming
www.michelerocco.com
michelerocco is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 10:41   #3 (permalink)
Mamber
 
tamper's Avatar
 
Join Date: May 2004
Posts: 79
tamper is on a distinguished road
Default Re: Do I have to design *every* custom module position in my template?

Thanks. I did do a search, but I didn't really know what I was looking for.

So does this mean the HTML has to be structured in a certain way? Would you put each box on a seperate DIV or something?
tamper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 10:43   #4 (permalink)
Professional Mamber
 
zorkhh's Avatar
 
Join Date: Apr 2004
Location: Northern Germany
Posts: 713
zorkhh is on a distinguished road
Default Re: Do I have to design *every* custom module position in my template?

Hi,

try this one:
PHP Code:
                                            <?php if (mosCountModules('user2')>0) {
mosLoadModules "user2" );
}
?>
hth

Greetings, Zork
__________________
News and stories around Joomla! PlanetJoomla.com
For individual Joomla-AddOns visit Joomlaexpert.com
zorkhh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 12:42   #5 (permalink)
Expert Mamber
 
pixelsoul's Avatar
 
Join Date: Apr 2004
Posts: 288
pixelsoul is on a distinguished road
Send a message via MSN to pixelsoul
Default Re: Do I have to design *every* custom module position in my template?

PHP Code:
<?php if (mosCountModules"user1" )) { ?>
<div class="canalsobeatableorwhatever"><?php mosLoadModules 'user1' ); ?></div>
<?php ?>
__________________
Visit my site for pro mos templates www.pixelsoul.net
pixelsoul is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 12:47   #6 (permalink)
Mamber
 
tamper's Avatar
 
Join Date: May 2004
Posts: 79
tamper is on a distinguished road
Default Re: Do I have to design *every* custom module position in my template?

Thanks for the help! Excuse my continued ignorance, but would this solution also cause the other modules to 'adapt' to the missing one?

Suppose I had a column of three boxes (user1, user2, user3). One day I decide to unpublish the module in user2. Would user 1 and user 3 then move up next to each other, or would there be a large gap where user2 should be?
tamper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 14:03   #7 (permalink)
Professional Mamber
 
zorkhh's Avatar
 
Join Date: Apr 2004
Location: Northern Germany
Posts: 713
zorkhh is on a distinguished road
Default Re: Do I have to design *every* custom module position in my template?

Hi,

depends on the way you place it into your template. If you surround the whole HTML for the module output (tables and so on) with this IF-clause, nothing is displayed if there are no modules. The others will move up or right, whatever you designed in HTML.

hth

Zork
__________________
News and stories around Joomla! PlanetJoomla.com
For individual Joomla-AddOns visit Joomlaexpert.com
zorkhh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 14:15   #8 (permalink)
Mamber
 
tamper's Avatar
 
Join Date: May 2004
Posts: 79
tamper is on a distinguished road
Default Re: Do I have to design *every* custom module position in my template?

Thanks again- I'll give it a try.

t
tamper is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 22.06.2004, 15:47   #9 (permalink)
Senior Mamber
 
Join Date: Apr 2004
Location: Cordoba, Argentina
Posts: 148
fede-k3 is on a distinguished road
Send a message via MSN to fede-k3
Default Re: Do I have to design *every* custom module position in my template?

Hey Man!

You are great...you help me too a lot

I will soon anounce my new project of templates..

I love Mambo and this community... and as i dont know much of php coding... (just for little hacks) i will start making templates..
fede-k3 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Need helpwith template left module design bagpuss Mambo 4.5 General Talk 0 10.06.2004 00:05
Template Module width helchi Mambo 4.5 'How Do I' Questions 2 05.06.2004 16:52
difference between module and component (completely clueless newbie) henrycooperavel Development Discussions 3 23.04.2004 06:52
Looking for someone to do a custom template... mattad Template Discussions 1 13.04.2004 22:45


All times are GMT +2. The time now is 11:51.

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.