For some reason this isn’t working. It displays thre EE avatar no problem, but just seems to ignore the whole avatar_filename==’’ argument.
{if comments}
<div class="comments-body">
{if avatar_filename ==''}
<div style="float:left;margin:3px;"><img src="{exp:gravatar email="{email}" rating="R" size="40" border="006600"}" /></div>
{/if}
{if avatar}
<div style="float:left;margin:3px;"><img src="{avatar_url}" width="40" height="40" alt="Avatar for {name}" class="avatar" /></div>
{/if}
{comment}
<span class="comments-post">Posted by {if url != ""}<a href="{url}">{/if}{name}{if url != ""}</a>{/if} on {comment_date format='%m/%d'} at {comment_date format='%h:%i %A'}</span>
<div style="clear:both"></div>
</div>
{/if}
This is a sample of the outputted source for a user known to have a gravatar and not an avatar. As you can see it just seems to skip the if avatara_filename conditional
<div class="comments-body">
<p>Comment text
</p>
<span class="comments-post">Posted by <a href="http://www.domain.net">deb</a> on 07/10 at 07:45 AM</span>
<div style="clear:both"></div>
</div>
Any help?