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.

 

Menus... Can't figure it out...

Menus... Can't figure it out...

I can't seem to figure out what I am doing wrong. I have things set up to display two menus for either public or registered. When I log in, the correct menu displays perfectly. When I log out (public), no menu appears at all. I made sure both menus are disabled. The MetaMod is enabled. They are both set up the same. I have this code in the module:

Code:

if ( MM_USER_REGISTERED ) return 38; else return 1;

I am not sure what else I need to do. I am glad at least half of this works, just puzzled why the other doesn't. Any ideas?

dufek
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Menus... Can't figure it out...

Hi Dufec,

hmmm... the only thing I can think of at the moment is that you may be using the "Show Quick Module(s) to" selector at the top of the MetaMod config. If you are using a PHP rule as you are doing, you should set that selector to "All users". Otherwise, the PHP rule will only get run when a user is logged in... and so the "else" condition will never get run.

You can also track this by turning on MetaMod Debug mode - this should indicate what's going on.

Best regards,
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
3328 Posts
User info in posts
Administrator has disabled public posting

Re: Menus... Can't figure it out...

USER wrote:

you should set that selector to "All users".

That was exactly the issue. Once changed and selected to all users, it worked perfectly. Thank you very much for your help! What a great module!

dufek
Beginner Modder
ranks
useravatar
Offline
2 Posts
Administrator has disabled public posting

Re: Menus... Can't figure it out...

I'm glad that fixed it! Thanks for reporting back.

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
3328 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5933
Posts this week:
4
User Info:
 
Total Users:
4383
Newest User:
kingpen99
Members Online:
0
Guests Online:
105

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