For those of you who don't know what a Gravatar or an Avatar is its an Image associated with your profile or your e-mail , so when you leave a comment in some other blog your image will be displayed next to the comment ,making your comment stand out from the rest of the comments.This is a great way to be recognized in blogs where there are plenty of commenter's.
For this to happen the blog owner of the blog need to to enable avatars.If your a blog owner and don't have avatars enabled then this could be a good way to improve your number of comments.It also makes the comments look a bit lively. MyAvatar plug in seems to be the most popular one around at the moment.It has support for MyBlogLog which is a prominently used community of bloggers and by simply changing a parameter it supports the gravatars provided by Gravatar.Installing it is very easy and it has very clear instructions on how to add it to your blog.If you are not using MyBlogLog ,Gravatar provides you with their own plug in for different platforms.Their instruction page clearly states it how should be done.The problem with their approach is that they only generate the url , so you have to give that url as the source of img attribute for it to work.This can be done as below.Note that the Gravatar function returns a url.
<img src="<?php Gravatar(); ?>">
What do you need to get advantage of this.If you still haven't joined then I suggest you join the MyBlogLog community.Be sure to upload a image if you want to see it next to comments.If you don't have a MyBlogLog account then you can create a Gravatar account free , and then you can get an image associated with your email.So every time you comment using that email the image will get displayed next to the comment.I suggest you get a Gravatar account even if you have a MyBlogLog account because some blogs don't have support for MyBlogLog.


I agree. MyAvater seems to be the best bet. I don’t mean to sound like an ass but
to the best of my knowledge will not return a value off a php function.
If you’re looking to return a value off a plugin function(myFunc) on a php page, that should be
<img src=”">
but I’m a bit unclear about what you’re mentioning in your post.
Cheers!
Oh Crap! I’m sorry.. Didn’t realize you’re executing php code off the comments… I reckon you switch it off because of the security concerns.. what is between <?php and > might not appear since they are being considered as php code..
You are correct Nadeesha , the function is inside < ?php .. tags , sorry about the lack of information , what I meant to say way that the function will return a url like “http://gravatar.com/2323dsdfs98dsdffs” and you have to give this as the source of the img attribute.Hope this clears things up