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.

 

Display Metamod to several users BY ID

Display Metamod to several users BY ID

Hi.
I want to use metamod to display a module (menu) to several users (not in the same user group) I need to get this:
if user id 23,27,49,80 (for example) are  logged in, then display. If any other user is logged in, then do not display.
is there a recipe for this? (i am willing to pay for one) big_smile
Sorry, I hope is clear, I have NO programming clue to explain this better!!!
thanks
Idiel

idiel
Beginner Modder
ranks
useravatar
Offline
5 Posts
Administrator has disabled public posting

Re: Display Metamod to several users BY ID

Easy:

if ($core_genius->check( "userid = 23,27,49,80")) return XXX;
// replace XXX with the module id of the module you want to display for those users

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

Re: Display Metamod to several users BY ID

you are a wonder!!!! thanks!!!

idiel
Beginner Modder
ranks
useravatar
Offline
5 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:
198

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