Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

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!

Hello,

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?

MattJLehr
Beginner Modder
ranks
useravatar
Offline
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.

Cheers,
Stephen

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

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10137
Newest User:
lexispoker1
Members Online:
1
Guests Online:
238

Online: 
liaskas

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked