Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.



Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.


Recipe for logged in users in 1/2 way working... help!

Recipe for logged in users in 1/2 way working... help!


I have been trying to use the recipe:

if ( MM_LOGGED_IN ) return 101; /* the module id for logged-in users */
else return 102; /* the module id for non-logged-in users */

It is very weird, but it seems only half of this is working.  When a user is logged in the module I have chosen to show will display, according to the MetaMod.  But for some reason when they are not logged in the other module will not display.  I have tried reversing the formula with the same results.

Any ideas on this?

Beginner Modder
5 Posts
Administrator has disabled public posting

Re: Recipe for logged in users in 1/2 way working... help!

When you say you get the same results when reversing the formula, what actually happens? Does one particular module still stubbornly refuse to display, or do you find that whichever one is in the "else" part of the statement does not display?

If it's just 1 of the modules which you can't get to show, try assigning that to a page directly, just to make sure the module itself is ok. Also check on whether it's enabled or not, and if not, then check the "auto-enable included modules" setting in MetaMod.

Did you remember to swap 101 and 102 for the actual module ids you want to display?

Still no joy? Can you post the exact recipes (both exact and "reversed" as you stated above) with an explanation of what happens each time.

Also try turning on debugging mode and see if that gives you any info.


Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
Total Topics:
Total Polls:
Total Posts:
Posts this week:
User Info:
Total Users:
Newest User:
Members Online:
Guests Online:

Forum Legend:

 New Sticky