I manage to add friends id in profile but I don't have time to change id to name:
In member.php before //--- END FRIENDSLIST MOD --- ADD:
$sql = "SELECT *
FROM ".USERS_TABLE."
WHERE user_id = ".$user_row['user_id']."";
$user_friends_info = $site_db->query_firstrow($sql);
$num_rows_all = 0;
if (!empty($user_friends_info['user_friend_ids'])) {
$friends_id_sql = str_replace(" ", "<br>", trim($user_friends_info['user_friend_ids']));
//here you need to make while and if sentece to get user name
}else{
$friends_id_sql=0;
}
$site_template->register_vars(array(
"lang_friendslist_add", $lang['lang_friendslist_add'],
"user_friends" => $friends_id_sql
));
then in your profile template add:
{user_friends}