![]() |
Avatars - I have default and custom avatars - need to show only 1
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? |
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:
HTML Code:
<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> |
There are a lot of places where the avatar is used, you may have to edit all those places. :)
|
All times are GMT. The time now is 01:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|