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.

 

Different Menus for Author and Superadmin

Different Menus for Author and Superadmin

Hi,
I think this will be easy but I couldn't find a solution - it's a long day ..!

Ok,
I need to show different menus to authors and superadmins after they logged in.
I've tried this in the PHP-Field but it won't work:

if ( MM_USER_SUPER_ADMINISTRATOR ) return 29;
if ( MM_USER_SUPER_AUTHOR ) return 391;


After a login as author and superadmin I see allways the same both menus.

Can you please help me with the right receipe?

Greetings,
SupNub

Edited By: supnub
23-Sep-09 17:59:00

supnub
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Different Menus for Author and Superadmin

Hi SupNub,

you're getting close!

First of all, the rules you have there are nearly right -- there's no such thing as MM_USER_SUPER_AUTHOR. Try MM_USER_AUTHOR.

Second, don't put anything in the Quick Module ID Include box if you are using PHP rules like you are doing. Just use the PHP rules to include the modules if the conditions are met.

Third, check the modules you are including. They should be enabled, but have Menu Assignment set to "none" so that they don't show up by themselves, and will be displayed if the MetaMod includes them.

Hope that helps,
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

Re: Different Menus for Author and Superadmin

No, sorry, that won't work.
When I set the Menu-Assignment to "none" then both menus are not shown.
Not for Superadmins nor for Authors.

Accesslevel for all Modules (mod_mainmenu and mod_metamod) are set to Public.

Any Idea?

SupNub

supnub
Beginner Modder
ranks
useravatar
Offline
3 Posts
Administrator has disabled public posting

Re: Different Menus for Author and Superadmin

Hahahahahaaaaa! Oh shit!

*sorry for that*

Yes, indeed, it was a long day with tons of work.

Do you know what the reason was that it didn't work?

I FORGOT TO PUBLISH THE METAMOD MODULE!!!!!!!!!

WUUUUUUUUUUAAAAAAAAAAAAA!

I'm an idiot, sorry!

Now it works as it should! Great! I'm happy!

Thank you for your help and excuse me.

Greetings
SupNub

supnub
Beginner Modder
ranks
useravatar
Offline
3 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:
146

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