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.

 

Modules displayed based on user preference

Modules displayed based on user preference

I'm wondering if MetaMod has the ability to allow logged in users to somehow select which modules they are interested and have those modules automatically appear on that user's homepage whenever they log in? Something like myYahoo?

mfarineau
Beginner Modder
ranks
useravatar
Offline
1 Posts
Administrator has disabled public posting

Re: Modules displayed based on user preference

Start with the Quick Start guide:

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

Then you can use the following rule to check for username:

if ($user->username == "joe") return XXX;
if ($user->username == "bob") return YYY;
if ($user->username == "ann" or $user->username == "brenda") return ZZZ;

... replace XXX etc with the module numbers that you want to use for that user.

Hope that helps,

Indrajit

indrajitch
Beginner Modder
ranks
useravatar
Offline
4 Posts
User info in posts
Administrator has disabled public posting

Re: Modules displayed based on user preference

Hi mfarineau,

the trickiest part is giving people the preference for what modules they want. Once you have that in the system, then MetaMod can retrieve this info from the database and use it to determine which modules to display.

There are a number of components that extend the info that is stored in people's profiles. e.g. CommunityBuilder and VIrtueMart. I know there are others too.

So basically what would do would be to set up extra parameters in the profiles, so that people can use these parameters to choose some different modules. They would do this by editing their profile. Then set up MetaMod to read their profiles. There's a Recipe page for CommunityBuilder on this site which shows you how to get info out of a profile, so that would be a good 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
3313 Posts
User info in posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1679
Total Polls:
6
Total Posts:
5914
Total Posts Today:
1
User Info:
 
Total Users:
10816
Newest User:
sakmy567q
Members Online:
0
Guests Online:
118

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