View Full Version : Display Member's Avatar in Showlink
lee wilde
01-20-2005, 04:38 AM
You may already know this, but I've just figured out that we can display members' avatars with their links.
In ADV_LINKS_SHOWLINK template, include this line wherever you want the avatar to appear:
<img src="http://yoursite/forums/image.php?u=$link[userid]" border="0" align="left">
If the member does not have an avatar, nothing will display.
No, it will display a broken image if the member does not have an avatar. There must be a better way to do this adding $avatar to the query... I'll look into it later because I'm also interested in this.
lee wilde
01-20-2005, 08:15 AM
No, it will display a broken image if the member does not have an avatar.
No broken images on my site, avatars or not.
If you come up with a better way, excellent. Would be great if you (or someone) could figure out how we can attach images to the links.
are you using firefox lee? that may be the reason why you dont see any broken images...anyways... this would be great if someone could come up with a way of showing no image if the member doesnt have an avatar.... is probably something really easy since I think they could you an <if> statement... but I may be wrong...
I have no reason to believe this works because I doubt Brian has add the necessary code to displaylinks.php to pull the avatar from the db, but you could try this:
<if condition="$show['avatar']"><img src="$avatarurl" alt="" border="0" /></if>
Will try it... I will tell you what happens...
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.