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.

 

Modul to unique user

Modul to unique user

Hello,
I try this one
if ( $user->id == "62" ) return 51;
where user's id is 61 and module id is 51
but it doesnt work for me
Any suggestions ?
Thanks in advance

delxy
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Modul to unique user

Is the MetaMod published? (it needs to be)
Is 51 definitely the module ID of the module you want to display?
Is user 62 actually logged in the the front end of the site?
Is the MetaMod assigned to ALL pages or just a selection of pages... if so is it assigned to the page you are viewing?

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

Re: Modul to unique user

Lol that was fast , thanks

Yes to all.
I just made it , the problem was Advanced Module Manager ,so i've deleted it and now its okay.
Thanks again, great support:)

delxy
Beginner Modder
ranks
useravatar
Offline
8 Posts
Administrator has disabled public posting

Re: Modul to unique user

Hello, sorry to butt in here. How would you do this for multiple users? I need to do it for two or more users...

morktron
Beginner Modder
ranks
useravatar
Offline
11 Posts
User info in posts
Administrator has disabled public posting

Re: Modul to unique user

For more than one user:

if ( $user->id == "62" or $user->id == "63" or $user->id == "101" ) return XXX;


replace XXX with the module id of the module you want to show to user ids 62, 63 and 101.

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

Re: Modul to unique user

Excellent thanks metamodguy you are a legend. I can see MetaMod is going to be extremely useful for a lot of my clients. I'm buying the Pro version now, thanks again smile

morktron
Beginner Modder
ranks
useravatar
Offline
11 Posts
User info in posts
Administrator has disabled public posting

Re: Modul to unique user

Hi Folks,

good news - Peter and I have collaborated on new versions of MetaMod Pro (v2.2) and Advanced Module Manager (v1.8.0). Existing MMP customers can pick up their free upgrade following instructions on http://www.metamodpro.com/forums/topic?id=271

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

Board Info

Board Stats:
 
Total Topics:
1675
Total Polls:
6
Total Posts:
5917
Posts this week:
6
User Info:
 
Total Users:
11577
Newest User:
owens65784
Members Online:
0
Guests Online:
153

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