hakob099-ի խոսքերից
Մերսի ես արդեն սենց լուծեցի այդ խնդիրը
if ($avatarurl[0]!="") {
echo "<img src=\"forum/" . $avatarurl[0] . "\" width=\"100\" height=\"100\" alt=\"" . $vbulletin->userinfo['username'] . "\"\" />";
}
else
{
echo "<img src=\"images/noavatar.gif\" width=\"100\" height=\"100\" alt=\"" . $vbulletin->userinfo['username'] . "\"\" />";
}
իսկ $avatarurl ստացա
chdir('/home/bitam/public_html/forum');
require_once('/home/bitam/public_html/forum/includes/functions_user.php');
$avatarurl = fetch_avatar_url($vbulletin->userinfo['userid']);
chdir ('/home/bitam/public_html');
Էջանիշներ