I know Friend in Elgg is different with Friend in Facebook
So I want to make a list of users that :
I add him/her as friend
AND
He/she adds me as friend
I think it will need 'where' , but i don't understand , and i didn't find a plugin that contain this code ( I usually use other plugin code)
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.
- Dries@driesdk
Dries - 0 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- Avicena AlGhiffar Alsharaawy@AVicenaGhifa
Avicena AlGhiffar Alsharaawy - 0 likes
- Dries@driesdk
Dries - 1 like
- Dries@driesdk
Dries - 0 likes
You must log in to post replies.Not a real answer to your question, but if you want to make it more like Facebook, you could use this plugin:
https://elgg.org/plugins/384965
It makes sure friends are only friends after accepting the friendship.
Thanks for your answer but i don't want it to be like Facebook :) I just need the list. :)
Look at the resource view for friends. I think it's resources/friends. You need to use elgg_list_entities_from_relationship()
If i use 'inverse_relationship'=>false, the result is list of users that I add as friend (Friends)
if i use 'inverse_relationship'=>true , the result is list of users that adds me as friend(Friends of)
I want a list of my Friends at once my Friends of
my english is not good , but let me explain my goal:
I something similar for something I was working on. I think I borrowed this code from another plugin as well.
this is the start.php
Then get your list like this
Can't edit, there is a typo, sorry, it's
instead of
in the list