Members: 16,815
Threads: 38,941
Posts: 160,336
Online: 190

Newest Member: oldman


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
Old 29.04.2004, 13:00   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 16
njcallen is on a distinguished road
Default Template -> what does mosCountModules do?

Hi,

Just a quick question. While looking through a couple of the templates that I have, they use the function mosCountModules. What does this function do?

For example:

if (mosCountModules( "left" ) + mosCountModules( "user1" ) > 0) {

What does that line evaluate?

Cheers,

Nathan
njcallen is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 29.04.2004, 23:12   #2 (permalink)
Mamber
 
Riba's Avatar
 
Join Date: Apr 2004
Posts: 79
Riba is on a distinguished road
Default Re: Template -> what does mosCountModules do?

It checks if there are any modules configured to display in the particular area of the site on locations user1 and user2, and if there aren't any it won't put the empty space where they are supposed to be. There was a good example what happens when you don't use this function on www.rsdev.nl, but they fixed it
Anyway, if you just configure your modules not to show in a specific area you will get empty spaces, if you use mosCountModules() to check if there are any modules to be displayed, you can skip the html stuff that will draw the module 'boxes'. Hope this makes sense.
Riba is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 29.04.2004, 23:14   #3 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 11
makinations is on a distinguished road
Default Re: Template -> what does mosCountModules do?

I believe it counts how many Modules are set to display on the left or right or top or bottom. You can use this information to display a header of some sort or to appropriately construct a box (or whatever) around a menu.

That specific line would check if there were any items set to display on the left or in the user1 area.

(My understanding could be a little off. I only started playing with Mambo a couple weeks ago.)
makinations is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 16.02.2007, 00:19   #4 (permalink)
Baby Mamber
 
Join Date: Feb 2007
Posts: 1
rbnz is on a distinguished road
Default Re: Template -> what does mosCountModules do?

It returns 1 or 0 depending on if there are published modules in the section indicated in the backets;

mosCountModules('left') will return 0 if there are no modules set to the 'left' position in the module manager that are published. It will return 1 if there are 1 or more published as 'left'.

I'm thinking of advancing this on my own site to actually count the modules, or at least make some other function that counts the modules that are registered or not.

Issues I've found are the inability of joomla to allow a registered/public distinction that shows or hides modules depending if users are logged in or not, for say a registration promotion image, pointless for a user to see if they're already registered
rbnz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.06.2008, 16:54   #5 (permalink)
Senior Mamber
 
Join Date: Jun 2008
Posts: 245
weiwei is on a distinguished road
The major

The major wow gold presidential hopeful spent some time talking wow goldabout the wow power leveling economy today. Republican John McCain told small business wow power leveling owners in Washington DC his ideas will be better for them. wow power levelingNPR's Scott Horsley reports.weiwei1978123
weiwei is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 14.06.2008, 23:55   #6 (permalink)
Baby Mamber
 
Join Date: Jun 2008
Posts: 11
Peighegyege is on a distinguished road
Talking No Problem

A bald man took a seat in a beauty shop. "How can I help you?" asked the stylist. "I went for a hair transplant," the guy explained, "but I couldn't stand the pain. If you can make my hair look like yours without causing me any discomfort, I'll pay you $5,000.""No problem," said the stylist, and he quickly shaved his head.----------------------------------Do you look for free wow gold? Welcome to our WoW gold website:1.WoW gold,2.WoW gold,
__________________
Free WoW gold..
Peighegyege 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

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



All times are GMT +2. The time now is 23:30.

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