I installed it but I have a problem!
I made it that the friends are showing next to the tables with personal information and with the contact table but I have a problem now ...
At first all seemed nice working but when one user made 8 friends when they were added to his profile the structure of the profile was braked ...
I only changed some code and I was thinking it was enough:
if($total_h_friends > 3)
{
for($j = 3; $j < $total_h_friends; $j++)
{
$photo_img = '<img src="images/no_photo.jpg" height=60 width=50 border=0>';
if ( $friendsdata[$j]['user_avatar_type'] && $friendsdata[$j]['user_allowavatar'] )
{
switch( $friendsdata[$j]['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$photo_img = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $friendsdata[$j]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$photo_img = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $friendsdata[$j]['user_avatar'] . '" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$photo_img = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $friendsdata[$j]['user_avatar'] . '" alt="" border="0" />' : '';
break;
}
}
$template->assign_block_vars('friendsrow2', array(
'USERNAME' => $friendsdata[$j]['username'],
'USERLINK' => "profile.php?mode=viewprofile&u=" . $friendsdata[$j]['user_id'],
'DEFAULT_PIC' => $photo_img )
);
}
}
I changed from 4 to 3 ...
Now the first line with friends in the profile is with 3 friends(as I wanted) but on the second line are shown all the other friends !
Can someone help me how to make that to be shown 3 lines with 3 friends and after these lines to have a link "View all of my friends" and to be shown all the friends on another page ?
Please help!
EDIT:no matter! I fixed it myself