Hi there,
As Ive said in previous posts, i’m new to EE, but I’m getting there in building my first site. Ironing out a few issues at the moment.
One being, that I have comments enabled for news items. When a comment is posted, it lists the author, their avatar, and their comment.
My problem seems to be that the avatar on shows up when that user is logged in.
If I’m logged out I cannot see the avatar.
Here is what I have at the moment (I’m using CE Image and Time ago plugins)
<ul class="comments-list">
{exp:comment:entries channel="news"}
{exp:member:custom_profile_data}
<li>{if avatar_filename == ''}
/-/images/img04.jpg
{/if}
{if avatar}
{exp:ce_img:single src="{avatar_url}" width="32" height="32" alt="{screen_name}'s avatar" class="avatar" rounded_corners="all,2" bg_color="f9f9f9"}
{/if}
{/exp:member:custom_profile_data}
<div class="comment-holder">
<span class="author"><a href="http://{url}">{name}</a> wrote</span>
{comment}
<div class="report-holder">
<ul class="report">
<li>{exp:time_ago revert_to_date_format="%d %F %Y"}{comment_date}{/exp:time_ago}</li>
<li><a href="#">Report ?</a></li>
</ul>
</div><!-- div class report-holder ends -->
</div><!-- div class comment-holder ends -->
</li>
{/exp:comment:entries}Any help would be greatly appreciated! Thanks!