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.

 

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!

Zombipocok
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

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;

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

Re: No value of variables

Thank You very much! smile

Zombipocok
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Total Posts Today:
1
User Info:
 
Total Users:
10075
Newest User:
rsker57
Members Online:
0
Guests Online:
249

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