Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » No value of variables
No value of variables
No value of variables
Hi!
I have joomla 1.0 and the metamod for it. I'm just trying the simplest
recip code, but it does not work! How can I check if the MM_LOGGED_IN has it's
value of 0 or 1 or not?
I included this code:
if ( MM_LOGGED_IN ) return 37;
else return;
To display module 37 to logged in useres. But it never shows up!
I checked everything, 37 is published, and has a not existing position, with menu item 'NONE'.
Please help!
Re: No value of variables
Hi Zombipocok,
the version of MetaMod for Joomla 1.0 does not have the constants like MM_LOGGED_IN. They were introduced in a later version of MetaMod 1.5 only.
However you can easily achieve the same thing:
if ($my->id > 0) return 37;
else return;
- Index
- » MetaMod
- » MetaMod General Support
- » No value of variables
Board Info
- Board Stats:
- Total Topics:
- 1699
- Total Polls:
- 6
- Total Posts:
- 5965
- Posts this week:
- 4
- User Info:
- Total Users:
- 8011
- Newest User:
- ignac84502
- Members Online:
- 0
- Guests Online:
- 295
- Online:
- There are no members online
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked