Log in

View Full Version : Avatar in header?


Shadow Caine
11-25-2002, 01:03 AM
I'm kinda new around here. Just learning to hack vb really. I was wondering how to display the avatar image in the header. I tried to figure it out for awhile but like I said I'm new to hacking vb. I usually just do graphix. So can anyone please let me now how to do this. I'd be very grateful.

Erwin
11-25-2002, 01:43 AM
Open header template.

Add

<img src="avatar.php?userid=$bbuserinfo[userid]">

anywhere in your header template where you want the avatar to show. :)

Only works for custom avatars.

Shadow Caine
11-25-2002, 03:41 AM
thanx man. :) I'm kinda getting the hang of it. Got gforce2k2 to bug when I really need help though lol

Dean C
11-25-2002, 05:47 PM
Geez is it that simple?

I mean i have an extra query for the avatar display on forumhome so it displays their avatar if they have one and the "No avatar" or "Guest" avatar ...

Any way to get round this without it adding a query?

- miSt

Erwin
11-25-2002, 07:51 PM
That <img src=""> tag for custom avatars adds a query anywhere, although it doesn't show up on microstats. The query is through avatar.php which has to find the avatar from the db.

Dean C
11-26-2002, 05:48 PM
Ohhhhh i see :)

- miSt