In the profile page, when buddylist module is enabled, it shows the list
of persons. How to add the userphotos here just like in posts / comments ?
The portion of the code in buddylist is
if ($type == 'view' && user_access('view buddy lists')) {
// if thisuser has friends, show friends
$cnt = variable_get('buddylist_prof_buddies', 5);
$i = 0;
if ($buddies = buddylist_get_buddies($thisuser->uid)) {
foreach(array_keys($buddies) as $buddy) {
$account = user_load(array('uid' => $buddy));
$listbuddies[] = $account;
$i++;
if ($i > $cnt) {
break;
}
}
$output[] = array('title' => t('%Buddies', buddylist_translation()), 'value' => theme('user_list', $listbuddies), 'class' => 'buddylist',);
}
Can someone kindly say what to add / alter here so that the photos also show up ?
Comments
any help ?
any help ?
My way
I use a custom user profile (user_profile.tpl.php) but this is the code I use to get buddy pictures although it only shows two buddies =(
Hope this helps in any way
goodluck