Comment Author Photo

Friday, October 17, 2008
Posted by Takumi 86

comment author

Blogger or Blogspot by default has no chance on displaying the commenter author photo if they leave comment as Anonymous or using other service like Wordpress/Open ID. If you (as blogger commenter) did not upload your pic at your profile, you cannot see your photos, Thats bad because as we know, comment author photo are more like an Avatar that represent your nickname.

This is pretty bad for blogger blogspot but not for WP user. However there is a tweak to make it happen, all you need is HTML basic knowledge only

How to make it happen?
Go to PurpleMoggy site and learn the way, i'm sure you'll know what i'm means. If you're having difficult, then read their comment or you can ask here, and see what i can do for you

1. Go to your Blogger Dashboard Layout, click on Edit HTML, check the "Expand widget templates" box and find these line

[dl id='comments-block'>
[b:loop values='data:post.comments' var='comment'>
[dt class='comment-author' expr:id='"comment-" +'>
[div class='commentphoto' style='float:right;'/>
[a expr:name='"comment-" +'/>
[b:if cond='data:comment.authorUrl'>
[a expr:href='data:comment.authorUrl' rel='nofollow'>
[dd class='comment-body'>
[b:if cond='data:comment.isDeleted'>
[span class='deleted-comment'>
[dd class='comment-footer'>
[span class='comment-timestamp'>
[a expr:href='"#comment-" +' title='comment permalink'>
[b:include data='comment' name='commentDeleteIcon'/>
[div style='clear:both;'/>

2. The lines in bold means the word you need to add, you can change float:right to float:left if you want the pic to be on the left instead of the right

3. Last thing we need to do is to find tags and add the following code above it

[script src='' type='text/javascript'/>
[script type='text/javascript'>
addLoadEvent(function(){showCommentPhotos('commentphoto','comment-author', 1);});

4. Once you're done, save it

Attention! To make the works, please replace [ with < style="font-weight: bold;">bold RED right after //

addLoadEvent(function(){showCommentPhotos('commentphoto','comment-author', 1);});

If you like my post, please subscribe to my RSS feed!



1. This blog is DoFollow
2. If you like my post, please leave your review and i'll appreciate that and do not spam, Thanks

Post a Comment