Auero
01-11-2003, 05:25 PM
Mist helped me with some code that I entered into the phpinclude. It makes the users avatar be allowed to show in the header template..
// User Avatar
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0" hspace="1" vspace="1">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0" hspace="1" vspace="1"></a>';
}
Now the avatar shows up in the header template, but when I try to upload a custom avatar I get this message.
Error - cannot find an image at the specified URL. Please make sure that you have entered a valid URL.
Now if I switch forum skins I'm able to upload an avatar. I haven't edited any .php files, just the phpinclude and the header templates.
Any reason as to why this happens?
Thanks :)
// User Avatar
if ($bbuserinfo[userid]!=0) {
$avatarurl=getavatarurl($bbuserinfo[userid]);
if ($avatarurl=='') {
$avatarurl='images/avatars/noavatar.gif';
}
$avatarimage='<a href="member.php?s='.$session[sessionhash].'&action=editavatar"><img src="'.$avatarurl.'" border="0" hspace="1" vspace="1">';
} else {
$avatarimage='<a href="register.php?s='.$session[sessionhash].'&action=signup"><img src="images/avatars/guestavatar.gif" border="0" hspace="1" vspace="1"></a>';
}
Now the avatar shows up in the header template, but when I try to upload a custom avatar I get this message.
Error - cannot find an image at the specified URL. Please make sure that you have entered a valid URL.
Now if I switch forum skins I'm able to upload an avatar. I haven't edited any .php files, just the phpinclude and the header templates.
Any reason as to why this happens?
Thanks :)