This is piece of code from Elgg. I need code fixed to return results based on user. I have half working code.
I need to to display all groups activity for specific user, for example :
$owner = page_owner_entity(); or $_SESSION['user']->guid;
$groups = elgg_get_entities_from_relationship(array('relationship'=> 'member', 'relationship_guid'=> $owner->getGUID(), 'inverse_relationship'=> FALSE, 'type'=> 'group', 'limit'=> 5));
that will display list of 5 user's groups.
I need to display latest activity from all user's groups as a river. I also have a code that displays group river but it only displays one group and not all.
Please bid only if you know Elgg.