I've looked at the Elgg API and I saw that the ElggUser class contains the function:
ElggUser.addFriend($friend_guid)
Is there any elegant way to add friendship hierarchy like in facebook.
For examle, if I want to add my class mate John, I prefer to add him as one of my 'class mates' friends, by using something like:
ElggUser.addFriend($friend_guid, $my_friends_group_guid)
Thanks,
Vova
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.
- Cash@costelloc
Cash - 0 likes
- svovaf@svovaf
svovaf - 0 likes
- DhrupDeScoop@Dhrup2000
DhrupDeScoop - 0 likes
- Kim W@kimweir4
Kim W - 0 likes
- Cash@costelloc
Cash - 0 likes
- svovaf@svovaf
svovaf - 0 likes
You must log in to post replies.It is possible to create collections of friends but the relationship itself cannot accept any additional metadata. It is also possible to create relationships other than friends. You could define a relationship called classmate.
How do I define those relationships?
add_entity_relationship($user_guid, "friend", $friend_guid)
HELP ????????? !!
InvalidParameterException
All files must have an owner!
I can't get in my site as Administrator
kimweir569@charter.net
@Kim W - your post is off-topic. Do a search on "InvalidParameterException" and see what other people have done with this.
After adding entity relationship, is it possible to post a message only to relationship members?