Quote:
Originally Posted by ogden2k
Really? It should show whatever the user has for an avatar.
Code:
<img src="image.php?userid=$bbuserinfo[userid]" alt="" border="0" />
|
There is indeed a problem with hard coding a link to image.php, let me explain.
Hard coding a link to image.php can cuase two errors.
1: It will not work with predefined avatars (non-custom ones that live on the server).
2: It will not work if custom avatars are begin stored outside the database. This is new to vbulletin 3.
When avatars are store as files the link would need to point to: (this is for custom avatars only!)
Code:
<img src="$vboptions[avatarurl]/avatar$bbuserinfo[userid]_$bbuserinfo[avatarrevision].gif" alt="" border="0" />
Both problems can be solved with some added code to the phpinclude_start template, and calling the correct image path via a variable.
I have a code chunck that dose this working on local host that I am plaing to release in my own re-vamp of the kousetsu welcome panel (see the vB 2 mod forums).
|