Hey all.
What I'm looking to accomplish is the following and I'm not sure how to do it;
Users should be segrated based on preselected categories. For example, by language.
Imagine 3 users, User A speaks English, User B speaks French, and User C speaks English AND French.
User A signs up and selects English as his language. From this point forward he will only see blogs, videos, files, photos etc of other Users who speak English.
User B signs up and selects French as his language. From this point forward he will only see blogs, videos, files, photos etc of other Users who speak French.
User B signs up and selects English AND French as his languages. From this point forward he will see all blogs, videos, files, photos etc of other Users who speak French OR speak English.
User A is segregated from User B and B from A. But User C is not segregated from anyone.
It's not a permissions issue, it's simply a preferences issue. If User A suddenly learns French and wants to change his category to English AND French then he can do so.
I'm not sure what the best way to accomplish this would be. Any advice would be greatly appreciated.
Thank you kindly.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Team Webgalli@webgalli

Team Webgalli - 0 likes
- Burgs@burgs

Burgs - 0 likes
- ElggCloud@g2w!

ElggCloud - 0 likes
You must log in to post replies.Definitely can be done. All you need is create the preference as metadata's on users. Then if the user is logged in, create a hook for the elgg_get_entities() function and then fetch the entities based on the user metadata.
Sounds simple? No.
If a field is created, called pref_lang, using the Profile Manager plugin, is that stored as metadata?
Yes, it will be stored as metadata.