Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Recipe for logged in users in 1/2 way...
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?
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
- Index
- » MetaMod Pro
- » MetaMod Pro General Support
- » Recipe for logged in users in 1/2 way...
Board Info
- Board Stats:
- Total Topics:
- 1698
- Total Polls:
- 6
- Total Posts:
- 5944
- Dormant:
- User Info:
- Total Users:
- 5595
- Newest User:
- gary099231
- Members Online:
- 1
- Guests Online:
- 547
- Online:
- gary099231
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked