Display Avatars Besides Comments In Blogger

It's been quite long since I made a post in this blog. I had a lot of problems with my net connection(still not fixed) and modem. Still, I found some time today, to post about a new feature introduced by blogger, that is, avatars on blogger comments. Blogger is introducing new features daily on account of its 10th birthday celebration. Every blogger wanted to display avatars like the ones, that showed in word press and this dream has come true now. I have personally tried this feature and you may take a look at the snapshot of the feature installed in my blog below.
avatars-beside-blogger-commentsThis feature displays only users who post comments with Blogger/Google account. But, if you post a comment with "Name /URL" you will not have any image displayed. However, if you post a comment using Wordpress or OpenID or LiveJournal or Typepad or AIM, the favicon of the respective sites will be displayed. I hope the blogger team improves this feature and may be, they can join hands with Gravatar too. Let us get to our work of installing this feature in our blog.

If you are using a default blogger template, then you should navigate to "Settings>>Comments" from the Dashboard and enable the option "Show profile images on comment". It is that simple!! You will find the avatars displayed in your blog. But, what if you have a customized template like mine?? Simply follow the steps below to get the featured installed in your blog.
1. Navigate to "Layout>>Edit HTML" from your dashboard. Make a back up of your template before you do any changes in the template.
2. Expand your template, that is, make sure that you have a tick mark in that "Expand Widget Template". Now, do a search using "CTRL+F" for the following line:
<dl expr:class='data:post.avatarIndentClass' id='comments-block'>
Note: If you could not find the above code, the search for the following line:
<dl id='comments-block'>
3. Now, replace that piece of line with the following code:
<dl expr:class='data:post.avatarIndentClass' id='comments-block'>
4. Next, search for this piece of code:
<a expr:name='data:comment.anchorName'/>
5. Replace all the occurrences of the above code(code in step 4) with the following code:
<b:if cond='data:comment.favicon'>
<img expr:src='data:comment.favicon' height='16px' style='margin-bottom:-2px;' width='16px'/>
</b:if>
<a expr:name='data:comment.anchorName'/>
<b:if cond='data:blog.enabledCommentProfileImages'>
<div expr:class='data:comment.avatarContainerClass'>
<data:comment.authorAvatarImage/>
</div>
</b:if>
You may place a default avatar for those who do not have profile picture. In order to do this, place the following piece of code above the line ]]></b:skin>
.avatar-image-container{background:url(http://alturl.com/xbwk); width:35px;height:35px; }
.avatar-image-container img { border:none;}
Finally, you need to save your template. Now, check out your blog with blogger avatar feature installed in it!! Comments are always welcome!! See you soon in my next post!!

Enjoyed the article?
Subscribe to this Blog via Email:

Click here to subscribe to FREE email updates from "Everything About Blogging", so that you do not miss out anything that can be valuable to you and your blog!

    Other Recommended Posts

  • Blogger Tutorials
Mukund said on October 23, 2009 at 4:26 PM :

Haha!! Not a problem! Yeah! Even I will use your blog the same way soon! Love to receive funny comments from you :)

REPLY
Anup said on October 27, 2009 at 8:05 AM :

It is helpful, but it is bad in Css coded.

REPLY
Anup said on October 31, 2009 at 12:25 PM :

Thanks for giving suggestion. Can we do link exchange?? Please.

REPLY
Mukund said on November 1, 2009 at 7:22 AM :

@Anup: Yes! For sure, I would love to link your blog provided it has got a PR1 or has got some back links.

REPLY
Naz said on November 2, 2009 at 2:02 PM :

Hi Mukund. Thanks for this tip. I will try it later on and I hope everything is ok. Have an awesome Monday. :)

REPLY
Mukund said on November 2, 2009 at 7:07 PM :

@Naz: Thanks!! Sure! Try that and let me know if you have any problems. Happy to help you:)

REPLY
Ashu said on November 4, 2009 at 9:33 AM :

Hi Mukund,
Helpful post..and well written too.
Just dropped by to ask you if you would like a link exchange??
The URL to my blog is in my link itself
Just leave a comment on my blog if u interested..cheeers!!!

REPLY
trends+ said on November 4, 2009 at 1:08 PM :

Oh! That's really cool that we can share avatar on blog.I added you to my blog, take a peek...later keep those great tips coming.

REPLY
Mukund said on November 4, 2009 at 2:04 PM :

@trends+: Yeah! Thanks man!! I checked your blog. Perfect place for shopping I think! :)

REPLY
Mukund said on November 4, 2009 at 2:14 PM :

@Ashu: Thanks Ashu!! I had a look at your blog and I would like to know if you got some back links for your site. If that is the case, then we both can have link exchange else I will have to turn down your offer!

REPLY
Primary Work at Home said on November 4, 2009 at 7:49 PM :

Great post! Thanks for sharing this.

REPLY
angelawd said on November 5, 2009 at 2:13 AM :

Do you think it makes a difference whether you show gravatars or not? I have them turned off in my wordpress template because I didn't think they were that valuable.

http://angelawd.com

REPLY
Mukund said on November 5, 2009 at 9:55 AM :

Pretty good question! The answer is Yes! We need to turn on Gravatars in our site, just because you can remember people well through picture rather than names. I mean to say, it represents you and your blog. For example the picture in my blog header serves as an identity to me and my blog. Hope you got my point!!

REPLY
Antsy Girl said on November 6, 2009 at 8:26 PM :

I like the social bookmarking idea I'll get the button and start working on it right away...

bollyz4u.blogspot.com
celebbubblegum.blogspot.com

REPLY
Mukund said on November 7, 2009 at 11:23 AM :

@Antsy Girl: Yeah!! Sure! Try it and let me know if you have any problems.

REPLY
SBA said on November 10, 2009 at 6:58 AM :

Glad you're back Mukund! Keep those fingers crossed that connections holds. The avatar is a good advancement but as you said, there's a long way to go! I almost never sign in with blogger id and I hate hunting people down from their blogger profile --- having the url is so much easier.

The gravatar is an extension of your blog's branding. It's irritating to see the default blue gravatar in WP. You can even have different images, one for each email you comment under.

Using my blogger id to test this out...

REPLY
Srinu said on November 12, 2009 at 6:52 PM :

that's great..! now we can add avatar on blogspot also that's really great ..! thanks for share..!

REPLY
Salman said on November 22, 2009 at 2:22 PM :

Thanks....

REPLY
michael said on November 23, 2009 at 3:59 PM :

Well I am not sure about blogger, but for wordpress sometimes could be helpful. I would say it depends of the content of your page. Sometimes it is good to allow the users to create their own account in order to comment to your blog and make them able to upload a profile picture. This could be helpful for a high traffic blog.

REPLY
tare1977 said on November 23, 2009 at 4:39 PM :

Thank you very much, I will try to modity code as your advised.

Kanjanatare

REPLY
Tinytec said on November 25, 2009 at 9:11 PM :

Hey Mukund, your site is very cool but I found it a bit hard to find the comment button/link on this page. Maybe you should make the comment link bigger or add a graphic to it for blind-fishes like me ?

Best Regards,
Tinytec :)

REPLY
Mukund said on November 25, 2009 at 10:04 PM :

@Tinytec: I will definitely take your point into consideration and will figure out a better method for the comment box!!

REPLY
Ella said on November 25, 2009 at 10:25 PM :

I like the social bookmarking idea ellad2.com

REPLY
benooi said on December 4, 2009 at 11:23 AM :

This comment has been removed by the author.

REPLY
Anup said on December 5, 2009 at 4:02 PM :

Hi Mukund,

Many of them have problems and I have some tricks for that. Please look at this CSS based codes.

Arrange your Comments Avatar with CSS in blogger

Thanks.

REPLY
Anup said on December 6, 2009 at 9:49 PM :

sorry my link is your this is real like for css commetns

Thanks.

REPLY
Mukund said on December 7, 2009 at 8:33 AM :

Yeah! Had a look at your site. Pretty cool! People can follow that!!

REPLY
Ella said on November 12, 2010 at 4:00 PM :

I like the social bookmarking idea ellad2.com

REPLY
Tinytec said on November 12, 2010 at 4:00 PM :

Hey Mukund, your site is very cool but I found it a bit hard to find the comment button/link on this page. Maybe you should make the comment link bigger or add a graphic to it for blind-fishes like me ?

Best Regards,
Tinytec :)

REPLY
tare1977 said on November 12, 2010 at 4:00 PM :

Thank you very much, I will try to modity code as your advised.

Kanjanatare

REPLY
Antsy Girl said on November 12, 2010 at 4:00 PM :

I like the social bookmarking idea I'll get the button and start working on it right away...

bollyz4u.blogspot.com
celebbubblegum.blogspot.com

REPLY
Mukund said on November 12, 2010 at 4:00 PM :

Pretty good question! The answer is Yes! We need to turn on Gravatars in our site, just because you can remember people well through picture rather than names. I mean to say, it represents you and your blog. For example the picture in my blog header serves as an identity to me and my blog. Hope you got my point!!

REPLY
Primary Work at Home said on November 12, 2010 at 4:01 PM :

Great post! Thanks for sharing this.

REPLY
trends+ said on November 12, 2010 at 4:01 PM :

Oh! That's really cool that we can share avatar on blog.I added you to my blog, take a peek...later keep those great tips coming.

REPLY
Ashu said on November 12, 2010 at 4:01 PM :

Hi Mukund,
Helpful post..and well written too.
Just dropped by to ask you if you would like a link exchange??
The URL to my blog is in my link itself
Just leave a comment on my blog if u interested..cheeers!!!

REPLY
Tim said on April 4, 2011 at 8:00 PM :

Cool stuff.

REPLY
Mukund said on April 5, 2011 at 10:43 AM :

@Tim: Thanks for the comment buddy! I'm sure you will find more cool stuffs in the upcoming posts! So, don't miss any of them!

REPLY
trends+ said on April 19, 2011 at 10:45 PM :

Oh! That's really cool that we can share avatar on blog.I added you to my blog, take a peek...later keep those great tips coming.

REPLY
HotKool said on July 18, 2011 at 5:34 PM :

How can we leave comments with the avatar picture/name linking directly to our blog??

REPLY
Mukund said on July 18, 2011 at 7:16 PM :

@HotKool: That depends on the way people comment on your blog. If he/she uses a Google profile to comment, then your image will link to that profile. But, if they leave a comment using Name and URL method, the image will link to the URL. Hope you understood!

REPLY
SyokLah said on August 17, 2011 at 9:45 PM :

hi, i just wanna ask you. this code can be use on blogspot or not? bcoz i like this so much.. thanks.

REPLY
Mukund said on August 17, 2011 at 11:21 PM :

@SyokLah: It's meant to be used for blogs run on blogspot. So, you should! All the articles posted here are meant for blogs run on blogspot. Thanks for the comment buddy:)

REPLY
spiky_fox said on October 4, 2011 at 11:55 AM :

hello .. please am using mobipress theme ... i tried every thing and get nothing .... plz if you can download the theme and reply me how to add it .... i will be very thankful for you


http://fractalblognetwork.com/templates/mobipress_phone_blogger_%20template.zip

REPLY
Mukund said on October 5, 2011 at 1:23 AM :

@spiky_fox: Just hire me via our services page and I'll be able to install a WordPress like comment section (similar to the one you see on my blog) on your blog.

REPLY
Unknown said on October 10, 2012 at 12:51 PM :

thanks

REPLY

Use the tab below to comment. No spam please!!!

[netinsert=0.0.1.11.14.1]