Thank you kh99!
I'm not so concerned about forumhome I suppose. But getting it to work on postbit would be really nice.
Unfortunately I'm having an issue with it working. This is the code I am using:
Code:
<vb:if condition="$show['avatar']">
<vb:if condition="$post[userid] == $bbuserinfo[userid] AND $post[avatarid] == 0 AND !$post[hascustomavatar]">
<vb:comment>Post belongs to logged in user and that user doesn't have an avatar</vb:comment>
<a class="postuseravatar" href="/profile.php?do=editavatar" title="Click here to choose your picture!">
<img src="/images/misc/unknown.gif" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="Click here to choose your picture!" />
</a>
<vb:else />
<vb:comment>Existing avatar code</vb:comment>
<a class="postuseravatar" href="{vb:link member, {vb:raw post}}" title="{vb:rawphrase {vb:raw post['onlinestatusphrase']}, {vb:raw post.username}}">
<img src="{vb:raw post.avatarurl}" alt="{vb:rawphrase xs_avatar, {vb:raw post.username}}" title="{vb:rawphrase xs_avatar, {vb:raw post.username}}" />
</a>
</vb:if>
</vb:if>
but the issue I have is that the image I am trying to get to show up for when a user doesn't have an avatar, isn't showing up. I want that image to be what they click on to take them to the Edit Avatar page but for some reason it isn't showing.
Any idea what I'm doing wrong? Thanks!