Log in

View Full Version : Avatars - I have default and custom avatars - need to show only 1


MReardon
01-26-2009, 05:55 PM
To all -

Thank you in advance for your help concerning this matter. Please do not reply "just upgrade" as it is not an option for me. This pains me too.

I have set default avatars for my usergroups (based upon # of posts). I have also allowed users to upload custom avatars if they wish.

When a user posts, they get the "new user" default icon until they make 15 more posts. However, if they choose to upload a custom avatar, when they post, BOTH the default and their uploaded custom avatar show up.

I would like to not show the default avatars if the user has their own custom avatar. I would still like to retain the default avatars for other users without custom avatars.

Is there a way to manage this?

Lynne
01-26-2009, 07:45 PM
Default vb code checks to see if there is a custom avatar and sets show[avatar] to true if there is so that the image code is only shown if it exists. So, have you tried just using that code with an else statement for the default avatar:
<if condition="$show['avatar']"><td class="alt2"><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a></td>
<else />
your default avatar
</if>

Dismounted
01-27-2009, 04:25 AM
There are a lot of places where the avatar is used, you may have to edit all those places. :)