
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.

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!
40 Responses
That is a really awesome little code!!
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.
I don’t see KonFuzed’s Twitter Avatar? Am I missing something?
@Jorin_Cowley
Does this work for 2.7.1? I have been unable to get this code/plugin to work on anything..
It doesn’t work for me neither!
The file link is broken. Thanks for the recipe!
did any one tested this ??
I haven’t test this yet, but I think it’s worked
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.
Can someone confirm if it’s working?
I dont think this plugin has worked for a long time.
Can anyone confirm it is now up and running??
Yeah, I too am having problems with the file. If it manages to get fixed let me know.
Cheers
cool plugin.. cheers!!!
Trackbacks: