View Full Version : Display avatar on postbit when no avatar selected.
imported_HexOnxOnx
07-10-2003, 08:25 PM
HI
I know there was a hack on vb.org to show an avatar for when people didn't have one selected. This would show an avatar on the postbit. Anyone know how to do this on vB 3.0?
Thanks!
SmartGnome
07-11-2003, 01:59 PM
In postbit_userinfo template
find
<if condition="$post[avatar]"><br />$post[avatar]<br /></if>
replace with
<if condition="$post[avatar]"><br />$post[avatar]<else /><img src="http://path/to/your/images/noavatar.gif" border="0" hspace="4" vspace="4" alt="No avatar selected" /><br /></if>
There was somewhere a gif like guestavatar with no avatar selected on it. I couldn't find it anymore, so I used the guest avatar and renamed it to noavatar.gif
It works with me anyway
SmartGnome
07-11-2003, 02:13 PM
I found the noavatar.gif :)
imported_Tungsten
07-11-2003, 03:50 PM
Cool! I'm going to add this to my VB3 setup. :)
imported_HexOnxOnx
07-11-2003, 05:15 PM
I found the noavatar.gif :)
Thanks for the code! I already have some avatars that match my logo that I am using so thanks anyways for the noavatar one!
Vb-Hispano
07-12-2003, 01:50 PM
thanks is lol :D
Zachery
08-01-2003, 07:28 PM
ooo me likies
Nhat_Long
12-24-2003, 10:56 AM
i want to help no avatar VBB 3.0 Gamma, please help
Neal-UK
10-05-2004, 07:40 PM
can't find the template mentioned. I'm on vb 3.0.3
Zachery
10-05-2004, 09:51 PM
Talking about dragging up the dead,
in the postbit or postbit legacy template, same bit of code./
Found in postbit
if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</
That is it.
and in postbit legacy:
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$avatarurl" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
So, not sure which to edit....
imported_Krika
05-21-2005, 03:40 PM
Same problem here, which "template" do i must edit?
angelicGrace
05-21-2005, 04:30 PM
postbit - if your avatar and other info runs across the top of a person's post.
postbit legacy if the avatar and other info runs to the left side of a person's post.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.