Hi,
I am new in elgg. How to i just show friend's username instead of their profile/icon?
For example the code below:
foreach($friends as $friend)
{
echo elgg_view("profile/icon",array('entity' => get_user($friend->guid), 'size' => $size));
}
How to i change it just to show name only?
Thanks for the advice.
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.
- Ravish@ravish

Ravish - 0 likes
You must log in to post replies.foreach ($friends as $friend)
{
echo $friend->username;
}