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.

 

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

treybraid
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

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

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

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

treybraid
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

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...

treybraid
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: showing a module to only public and registered users

forgot to tick subscribe....

treybraid
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

Re: showing a module to only public and registered users

for anyone that wants to know this got it to work:

if ( MM_NOT_LOGGED_IN ) return 222;
if ( MM_USER_REGISTERED ) return 222;

thanks
trey

treybraid
Beginner Modder
ranks
useravatar
Offline
7 Posts
Administrator has disabled public posting

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

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

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5913
Dormant:
User Info:
 
Total Users:
10796
Newest User:
mokao3
Members Online:
0
Guests Online:
196

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