Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » showing a module to only public and...
showing a module to only public and registered users
showing a module to only public and registered users
i have created a menu with 2 items that i want to disappear after someone has become a manager... it needs to stay visible with both public and registered users...
it is called "become a member " module #222 placed in the right column
what would i add and how? would the metamod be active for all the page's and what position does it need to be set at?
website: www.faccess.net
thanks
trey
Re: showing a module to only public and registered users
Hi Trey,
I'm just about to hit the road for a couple of days and can't give a full reply just now... the answer is YES you can do this. The position of the MetaMod would be the position that you want the module to appear at. Don't forget to follow the quick start guide! (i.e. you'll have to deactivate the target module by unpublishing it or setting to a non-existant module position).
Take a look through the Recipes section and also at the bottom of the Configuration page to find PHP that relates to the different member types.
Cheers,
Stephen
Re: showing a module to only public and registered users
stephen i am totally lost as to waht code's to use... this is confusing as hell... i dont understand what code to use...
i guess i just need code for the module to be inactive when a manager is logged in... i see no rules for that at all..
trey
Re: showing a module to only public and registered users
i added this and of course it isnt working--- what did i do wrong...
if ($user->usertype=="Public Front-end")return 222;else return;
if($user->usertype=="Registered")return 222;else return;
thanks
trey
..only want the mod visible with public and registered users...
Re: showing a module to only public and registered users
There's an even easier way:
if ( MM_USER_NOT_MANAGER ) return 222;
in other words, if the user is anything EXCEPT a logged in manager, use module 222.
Cheers,
Stephen
- Index
- » MetaMod
- » MetaMod General Support
- » showing a module to only public and...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7633
- Newest User:
- mingle7855
- Members Online:
- 0
- Guests Online:
- 251
- 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