Ho to: Use Twitter avatars in comments

January 14, 2009 at 8:52 am

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!