Placing Friends' Activity 'River' view in your custom dashboard.

In order to have your friends' activities showing up within your custom dashboard in the 'river' style,

place the following code whereever you want the information to show up.


$owner = page_owner_entity();

$limit = 8;


if ($vars['entity']->limit)

$limit = $vars['entity']->limit;

echo elgg_view_friend_river($owner->guid, $limit);



Hope this helps!

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking