Thursday 23 May 2013

How to display or show comment-author's profile image in BlogSpot blogs

Filled under:


Here's another useful tip for those bloggers, who are continuously trying to transform their free BlogSpot blogs into a pro-blog.
Through this hack, within 10 minutes you can start showing the images of commentators/comment-authors in your blog.


See the image below; how it will look after tweaking the HTML default code


To do so, first of all log in to Blogger
Now go to Layout, then click on Edit HTML tab.
Now Download the present template as a back up
Then click on "Expand widget templates"

Now search (CTRL+F) this

</head>

Immediately BEFORE IT, paste this:

<!--COMMENT-AUTHOR-PICTURE-STARTS--><script src='http://dsai.588.googlepages.com/blogger_comment_author_photos.js' type='text/javascript'/>
<script type='text/javascript'>
//<![CDATA[
addLoadEvent(function(){showCommentPhotos('commentphoto','comment-author', 1);});
//]]>
</script><!--COMMENT-AUTHOR-PICTURE-STOPS-->

NOW see this code below:

<dl id='comments-block'>
<b:loop values='data:post.comments' var='comment'>
<dt class='comment-author' expr:id='"comment-" + data:comment.id'>
<div class='commentphoto' style='float:right;'/>
<a expr:name='"comment-" + data:comment.id'/>
<b:if cond='data:comment.authorUrl'>
<a expr:href='data:comment.authorUrl' rel='nofollow'><data:comment.author/></a>
<b:else/>
<data:comment.author/>
</b:if>
<data:commentPostedByMsg/>
</dt>
<dd class='comment-body'>
<b:if cond='data:comment.isDeleted'>
<span class='deleted-comment'><data:comment.body/></span>
<b:else/>
<p><data:comment.body/></p>
</b:if>
</dd>
<dd class='comment-footer'>
<span class='comment-timestamp'>
<a expr:href='"#comment-" + data:comment.id' title='comment permalink'>
<data:comment.timestamp/>
</a>
<b:include data='comment' name='commentDeleteIcon'/>
</span>
</dd>
<div style='clear:both;'/>
</b:loop>
</dl>
In the code above YOU HAVE TO INSERT code lines shown in BLUE and BOLDED
And the red ones, are those which you can use as markers, BEFORE whom you have to paste the blue code lines.

You can change the position of pictures or images from Right to Light, by changing it in the first blue line in the code above...
Now whenever, people use their gmail or openid account to comment, then their pictures will be displayed alongside the comments !<>

6 comments:

  1. If you weak in artical writing than visit our website.

    Education Essays

    ReplyDelete
  2. Your Work is exellent it's helpful for me also check my post!!!

    Complete Essays

    ReplyDelete
  3. There are so umpteen twists and turns it instrument sustenance the adrenaline coursingYou staleness Steal, rob and negative your way up the crime separate.
    GTA 5 PC Download

    ReplyDelete
  4. For the specialized female currently, these kind of luggage are generally in fact the best go with. replica cartier Although natural leather goods can be a touch high priced, nevertheless his or her longevity along with operation recompense most. replica chanel Deciding on distinctive totes for every single instances along with have tried them much like your current impression involving fashion is perhaps a better plan, nevertheless using countless possibilities, the idea generally turns into tough. replica prada A new easy means should be to opt for your popular, classy, classy and also well-designed luggage. cartier replica uk Looking for reliable hues is usually wise when they select almost all of the clothing. Precisely what do you think you're expecting? replica chanel Let loose your current innate manner impression along with opt for Hawaiian Totes Makes for you to stay in addition to the rest of the audience.

    ReplyDelete
  5. An ideal article which is very important. . Your article is really relevant to my study at the moment, and I'm really happy that I searched your website. However, I would like to see more information about this topic. I'm going to come back here

    ADVERTISING ON WORDPRESS

    ReplyDelete
  6. This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
    A1 Easel

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...