Add Recent Comments Widget with Avatars To Blogger

A while ago I published here on the blog posts that teach one how to show recent comments, plus today I found this new script created by Way2blogging recent comments, he has the distinction of showing the avatar / photo, in every recent comment, which only could be seen before in our competitor WordPress. Learn now how to insert this script on your blog.






1 - Access (blogger.com)

2 - Click on the name of your blog

3 - Go to Layout-> Add Gadget> HTML / JavaScript

4 - Insert Gadget content like the following code:


<div id="recent-comments-box">
<style type="text/css">
    ul.w2b_recent_comments{list-style:none;margin:0;padding:0;}
    .w2b_recent_comments li{background:none !important;margin:0 0 6px !important;padding:0 0 6px 0 !important;display:block;clear:both;overflow:hidden;list-style:none;}
    .w2b_recent_comments li .avatarImage{padding:3px;background:#fefefe;-webkit-box-shadow:0 1px 1px #ccc;-moz-box-shadow:0 1px 1px #ccc;box-shadow:0 1px 1px #ccc;float:left;margin:0 6px 0 0;position:relative;overflow:hidden;}
    .avatarRound{-webkit-border-radius:100px;-moz-border-radius:100px;border-radius:100px;}
    .w2b_recent_comments li img{padding:0px;position:relative;overflow:hidden;display:block;}   
    .w2b_recent_comments li span{margin-top:4px;color: #666;display: block;font-size: 12px;font-style: italic;line-height: 1.4;}
</style>
<script type="text/javascript">
//<![CDATA[
    // Recent Comments Settings
    var
    numComments     = 4,
    showAvatar     = true,
    avatarSize     = 60,
    roundAvatar    = true,
    characters     = 40,
    defaultAvatar     = "http://www.gravatar.com/avatar/?d=mm",
    hideCredits    = true;
//]]>
</script>
<script type="text/javascript" src="http://bloggerblogwidgets.googlecode.com/svn/trunk/w2b-recent-comments-w-gravatar.js"></script>
<script type="text/javascript" src="http://technolsoft.blogspot.com/feeds/comments/default?alt=json&callback=w2b_recent_comments&max-results=4"></script>
</div>
 Note:

  •      The number in orange is the amount of comments that will be displayed.
  •      Blue change to false if you do not want the avatars appear true or so they appear.
  •      Change the number in green to set the size of the avatars.
  •      Red change to false if you do not want the frames are shaped circle.
  •      Change the number in purple to set the amount of characters displayed snippet comment.
  •      Brown is the address of the default image if the commentator has no avatar.
  •      In pink change to false if you want to show credit of authorship.
  •      Change the words in black by the address of your blog.
5 - Save changes and view.