как да променя това да показва аватара понеже на моя форум аватарите са само с url
Код:
//start web-tourist.net mod
$potreb=$row['username'];
$potreb='User: '.$potreb;
$regdate = $row['user_regdate'];
$start_time = date('m.d.y', $regdate);
$topici=' Общо мнения: '.$row['user_posts'];
$start_time="Регистрация: ".$start_time;
$avatarat=$row['user_avatar'];
if($avatarat!='')
{
if(file_exists("images/avatars/$avatarat"))
{
$blah = getimagesize("images/avatars/$avatarat");
$width1 = $blah[0];
$height1 = $blah[1];
$lkons=$height1/$width1;
$height2=40;
$width2=$height2/$lkons;
$avatarat="<center><img height=$height2 width=$width2 src=images/avatars/$avatarat></center>";
}
else
{
$avatarat="";
}
}
$balon='onmouseover="return overlib(\' '.$start_time.'<br/>'.$topici.'<br/>'.$avatarat.'\',CAPTION, \' '.$potreb.'\');" onmouseout="return nd();" ';
//end web-tourist.net mod
Търсите следните редове:
if ( $row['user_allow_viewonline'] )
{
$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
$logged_visible_online++;
}
else
{
$user_online_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
$logged_hidden_online++;
}