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.

 

Show Different Module To Registered/Public Users And Display User Name

Show Different Module To Registered/Public Users And Display User Name

1. I'm not sure what I'm missing but I'm trying to show one module for logged-in users and another for non logged-in users.  When I log in to test it I see both modules, I should only see 53.  What am I missing please?  The code below is what I'm using.

if ( MM_LOGGED_IN ) return 53; /* the module id for logged-in users */
else return 47; /* the module id for non-logged-in users */

2. Also, related to the above, how do I show the Username when they log in.  I would like it to show something like "Welcome John".

Thanks in advance!!

MyWorld
Beginner Modder
ranks
useravatar
Offline
14 Posts
Administrator has disabled public posting

Re: Show Different Module To Registered/Public Users And Display User Name

Hi MyWorld,

1 - since you are using a PHP rule, don't put anything into the "Quick Module Id or position include" box. Leave it blank.

2 - please read through the Quick Start guide, particularly the bits about disabling the "target" modules or assigning them to "none" menu items.

http://www.metamodpro.com/metamod/quick-start

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
3312 Posts
User info in 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:
109

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