View Full Version : Avatar in Header
joeboo
06-19-2003, 12:38 AM
I've tried almost everything. I searched around here as well, but the modifications here involving the avatar in the header always create some problem. It either displays custom avatars only, or it displays custom and preselected avatars, but now you can get a custom avatar because it says "Invalid url".
Can anyone help me out? I wish to add the avatar in the header without any problems. I would greatly appreciate it. Cheers :)
Erwin
06-19-2003, 01:58 AM
This will add a query to every page on your forum. Are you sure?
If you're sure, do this (no need file hacking):
In your phpinclude template, add this to the bottom:
$bbuserinfo[avatarurl]=getavatarurl($bbuserinfo[userid]);
Then, in your header template, add this anywhere to show the avatar:
<img src="$bbuserinfo[avatarurl]" border="0" alt="Your current avatar" align="middle">
Should work.
joeboo
06-19-2003, 02:06 AM
Didnt quite work :/
It showed up as a broken image
Erwin
06-19-2003, 02:16 AM
Strange.
Add this to the bottom of your headinclude template and see if it helps:
<base href="$bburl">
joeboo
06-19-2003, 02:30 AM
huzzah, i found the problem. It should have worked the first time, but i had the header calling a template. So i just got rid of the template and just added the coding to the header. Thanks for the info Erwin. :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.