Quote:
Originally Posted by KirbyDE
You are using the result of fetch_avatar_url() incorrectly 
Take a look at how member.php for example does it.
|
Oh they switched it to an array interesting.
here's the working code for anyone interested.
PHP Code:
<?
if ($vbulletin->userinfo['userid']!=0) {
$username=$vbulletin->userinfo['username'];
// i assigned the avatar url to the variable $user_av and check to see if it's empty.
$uinfo = fetch_avatar_url($vbulletin->userinfo['userid']);
$user_av = $uinfo[0];
if($user_av!='')
$user_av="/forums/" . $user_av; //replace "/forum/" with your virtual path to your forum pages.
print("<align='center'><span class='sectionheader'>Welcome back, $username!<br>");
//if the avatar url is not empty, display it
if($user_av!='')
print("<div align=center><img src=\"" . $user_av . "\" vspace=4></div>");
} else {
?>