Show Commentators Photo inside comments in Blogger

by Deineshd on October 18, 2008

This is just another and important hack in the Bloggers hacks directory.This hack helps you show the photo of the commentator embedded on the left side of the comment or below the commentator’s name.I have also performed this hack in my blog.Now whenever Blogger users comment in my blog with their Blogger Profile then their photo will be obviously shown in the left side of their comment just like below.

Show+commentators+photo Show Commentators Photo inside comments in BloggerIsn’t it great?It has got many features like:It attracts more users to Comment on your blog,Makes your blog professional looking and the comments seem easy to manage.It is not so hard to perform this hack in your blog.For that you must follow the following tutorial.

First of all copy the following code and Paste it in your blog Just above </head> tag.

<script src='http://bloganolutilities.googlepages.com/blogger_comment_photos.js' type='text/javascript'/><script type='text/javascript'>//<![CDATA[addLoadEvent(function(){showCommentPhotos('commentphoto','comment-author', 1);});//]]></script> 

Now in Second step search for the following Block of code.

<dl id='comments-block'><b:loop values='data:post.comments' var='comment'><dt class='comment-author' expr:id='"comment-" + data:comment.id'><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></b:loop></dl>

After you Find searching the whole block of code,select the Codes and replace it with the following block of codes.

<dl id='comments-block'><b:loop values='data:post.comments' var='comment'><dt class='comment-author' expr:id='"comment-" + data:comment.id'><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'><div class='commentphoto' style='float:left;margin:5px;'/><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>

After you replace the code Save your the Template and see the photos of your Commentators.Enjoy.

Consider to Subscribe to our RSS feed or Follow us at Twitter or Join our Facebook Fan Page.Enter your Email below to subscribe to our updates via Email.

Enter your email address:

Delivered by FeedBurner

Similar Posts

Powered by Thesis

Thesis Theme

An amazing WordPress Theme, nothing beats the versatility and SEO friendliness of the Thesis framework.

From beginners, to the most advanced WordPress developers, Thesis makes it easy for anyone to customize it.

{ 16 comments… read them below or add one }

indungg October 18, 2008 at 7:08 pm

Nice hacks,..
once again,..THANKS.
Good Luck n SUCCESS!

Reply

MR-BOLICA March 15, 2009 at 11:48 pm

it show to me only the defult photos not the profile one

any help

Reply

•???•p.k.á?????•?• March 20, 2009 at 3:55 pm

as it is showing only default photos please do something for this..

http://hacking2all.blogspot.com

Reply

Simran April 4, 2009 at 3:25 am

Its not working for me :(

http://technolizard.blogspot.com

Reply

CELEBSIMAGE April 16, 2009 at 7:58 pm

i am not getting this and i too dont see in your blog.

Reply

Tania May 2, 2009 at 12:16 am

thanks for sharing. it work sell on me

Reply

Sameer Khan May 22, 2009 at 12:46 am

sorry it didnot worked..it only shows default photos for anonymous and unregistered users…but id doesnot show any picture for registered users…

Please HELP…

see here… http://hindimp3sdownload.blogspot.com/2008/04/jimmy-free-songs-download.html

Reply

Sameer Khan May 22, 2009 at 12:50 am

it didnot worked for me… please I need your help.. to make it work…

Reply

PANOS KOYKOYZELIS May 24, 2009 at 12:24 pm

This works ONLY if the comments form is in a new popup window, NOT if it is an embeded form

Reply

sop May 25, 2009 at 4:52 am

not works to my blog too

Reply

blogger4you June 19, 2009 at 9:41 pm

For now this script does not work – maybe Blogger changed some defaults…

But it works WITHOUT any scripts if you set open comments in a new popup window.

Reply

teddy August 13, 2009 at 8:58 pm

Your JS file has bandwith problem. This means at some specific times, the trick doesn't work !

Reply

Lessonszyx October 9, 2009 at 11:45 pm

Lesson

Reply

Settor91 October 23, 2009 at 1:33 pm

Is it easier to genocide someone than mass deport them politically? ,

Reply

Andrei Dumbrav? December 8, 2009 at 10:12 am

It is wotking for my blog although i have embedded the comments form in the article default page
Andrei Dumbrav?´s last blog ..Primul meu Blogmeet My ComLuv Profile

Reply

All PC Tips January 18, 2010 at 8:05 pm

not working……

Reply

Leave a Comment

Previous post:

Next post: