[SOLVED] Need to fix Profile Buddies
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #8
RE: Need to fix Profile Buddies
Try to change this code:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
if($avatar_dimensions[0]&&$avatar_dimensions[1])
{
	if($avatar_dimensions[0]>$max_width||$avatar_dimensions[1]>$max_height)
	{
		$scaled_dimensions=scale_image($avatar_dimensions[0],$avatar_dimensions[1],$max_width,$max_height);
		$avatar_width_height='width="'.$scaled_dimensions['width'].'" height="'.$scaled_dimensions['height'].'"';
	}
	else
	{
		$avatar_width_height='width="'.$avatar_dimensions[0].'" height="'.$avatar_dimensions[1].'"';
	}
	$buddy_avatar='<a href="'.get_profile_link($buddy['uid']).'"><img src="'.$buddy['avatar'].'" alt="'.htmlspecialchars_uni($buddy['username']).'" '.$avatar_width_height.' '.$avatar_default.'/></a>';
}

to this:

PHP Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
if($avatar_dimensions[0]&&$avatar_dimensions[1])
{
	if($avatar_dimensions[0]>$max_width||$avatar_dimensions[1]>$max_height)
	{
		$scaled_dimensions=scale_image($avatar_dimensions[0],$avatar_dimensions[1],$max_width,$max_height);
		$avatar_width_height='width="'.$scaled_dimensions['width'].'" height="'.$scaled_dimensions['height'].'"';
	}
	else
	{
		$avatar_width_height='width="'.$avatar_dimensions[0].'" height="'.$avatar_dimensions[1].'"';
	}
}
$buddy_avatar='<a href="'.get_profile_link($buddy['uid']).'"><img src="'.$buddy['avatar'].'" alt="'.htmlspecialchars_uni($buddy['username']).'" '.$avatar_width_height.' '.$avatar_default.'/></a>';


01-16-2012 02:02 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Need to fix Profile Buddies - Divvy - 01-14-2012, 11:16 AM
RE: Need to fix Profile Buddies - Divvy - 01-14-2012, 12:13 PM
RE: Need to fix Profile Buddies - RateU - 01-15-2012, 06:24 AM
RE: Need to fix Profile Buddies - Divvy - 01-15-2012, 09:21 AM
RE: Need to fix Profile Buddies - RateU - 01-16-2012 02:02 AM
RE: Need to fix Profile Buddies - Divvy - 01-16-2012, 06:08 AM

 Standard Tools
Forum Jump: