Have implemented Gravatar on my blog.
What is Gravatar?
A gravatar, or globally recognized avatar, is quite simply an 80×80 pixel avatar image that follows you from weblog to weblog appearing beside your name when you comment on gravatar enabled sites. Avatars help identify your posts on web forums, so why not on weblogs?
Integration of Gravatar on my blog was simple.
I first installed the Gravatar Signup Plugin. It generates code with a checkbox when you comment giving you the option of signing up for Gravatar right from my blog.
Tested it by signing up for Gravatar myself.
You receive a confirmation email from them and all you have to do is click on the link. Next I uploaded my image.
Next step was implementing it on my blog.
Firstly, I installed the WordPress Gravatar Plugin.
Then I editted my themes CSS file and added this code:
.gravatar {
position: relative;
float: right;
margin: 0 0 2px 5px;
padding: 0;
clear: both;
}
Then I editted my themes comments.php file and added this in the comments loop:
<img src="<?php gravatar("", 60); ?/ >" alt="Gravatar" class="gravatar" />
This ensured that all the gravatars are of size 60px. As of now I am enabling all gravatars. However, if I do notice obscene ones, I will need to sensor it.
BTW, the comment loop is between:
<?php foreach ($comments as $comment) : ?>
and
<?php endforeach; /* end for each comment */ ?>
That’s it folks ![]()
Liked this article? Stay in touch with us! Don't forget to Stumble It!
Grab the site feed or add to your Technorati favs.
Post Details
- Post Date :
- Saturday, Mar 12th, 2005 at 5:30 pm
- Category :
- Blogging and Computers & Technology
- Tags :
- Blogging, gravatar
- Do More :
- Both comments and pings are currently closed.
Related Posts
Some posts related to the post you have just read:
- Gravatar.com logins disabled?
- To Gravatar or not to?
- Connections Reloaded 2.0 Roadmap
- Connections Revolutions in the Making
Search this site for Related Posts
Recent Posts
Previous and Next
Latest Five

March 13th, 2005 at 10:22 pm
Test to check if Gravatar works
March 14th, 2005 at 2:33 am
Yes, it works.
I install it 2 days ago, and I think it’s very nice plug.
March 14th, 2005 at 6:03 pm
Gravatar on my site is put that way:
In CSS file:
.gravatar {
border: 1px solid #A3A3A3;
padding:3px;
margin:0 5px 5px 0;
float:left;
}
And in comment file is on the beginning of “cite” - before name of author.
March 14th, 2005 at 7:52 pm
Quite a bit like mine. Only thing is I didn’t include a border and I floated it right