Post Pic

Ho to: Use Twitter avatars in comments

Do you enjoy Twitter? I do. So what about displaying Twitter avatars in your comments, instead of gravatars? In this recipe, you’ll learn how to easily integrates Twitter avatars on your comments.

So you want to integrate Twitter avatars to your comments? No problem!

The first thing to do is to get the functions file here or here.

Once you have it, unzip the archive and open the twittar.php file. Select all its content and paste it to the functions.php file from your theme.

The last thing to do is to open your comments.php file and find the comments loops. Then, paste the following line inside it:

<?php twittar('45', 'default.png', '#e9e9e9', 'twitavatars', 1, 'G'); ?>

Thanks to Smashing Magazine and Ricardo Sousa for this excellent piece of code!

42 Responses

Jan 15 2009 01:53

That is a really awesome little code!!

Feb 22 2009 18:38

How does it get my Twitter avatar? Or is it only getting the admin’s twitter avatar? I would think I need to type in my twitter user name for it to know my avatar…but I don’t see a spot to do that.

…confused about how this works.

Mar 05 2009 12:38

I don’t see KonFuzed’s Twitter Avatar? Am I missing something?

@Jorin_Cowley

Apr 09 2009 10:13

Does this work for 2.7.1? I have been unable to get this code/plugin to work on anything..

Jun 22 2009 03:25

It doesn’t work for me neither!

Jul 23 2009 20:57

The file link is broken. Thanks for the recipe!

Aug 07 2009 13:53

did any one tested this ??

Aug 31 2009 21:10

I haven’t test this yet, but I think it’s worked :)

Sep 07 2009 23:52

Twittar doesn’t work because of an update to the twitter api. It seems unlikely that the then xml feed will allow integration like this again.

Oct 07 2009 15:55

Can someone confirm if it’s working?

Nov 29 2009 13:08

I dont think this plugin has worked for a long time.

Can anyone confirm it is now up and running??

Jan 19 2010 18:10

Yeah, I too am having problems with the file. If it manages to get fixed let me know.

Cheers

Jan 22 2010 19:45

cool plugin.. cheers!!!

Mar 13 2010 14:50

This is really cool

Apr 01 2010 08:38

what??? thanks for the info… i will try it

Trackbacks:

Leave a Comment

* Name, Email, Comment are Required