Sorted By: Tag (time-saviour)

Is There Anybody Out There Who Doesn't Have Gravatar !

Sometimes we get sick to put our avatar pic. to every web site that we have registered to view our avatar. In this point gravatar.com helps us.
2010-11-19 22:14
Tugberk Ugurlu


Sometimes we get sick to put our avatar pic. to every web site that we have registered to view our avatar. In this point gravatar.com helps us. 

Gravatar works very basicly and securely. Firstly, you need to go to gravatar.com and sing up. After uploading your avatar and configure it with your e-mail address, your are basically done.

When you are writing a comment to a blog post, you are mostly required to enter your e-mail address and that e-mail address is enough to put your global avatar along with your comment. Of course, this is valid if the web site accepts gravatar pictures. 

Do not panic whether your e-mail address will be on picture's url. It won't. The picture url will similarly looks like that;

http://www.gravatar.com/avatar.php?gravatar_id=17698e3ad0e0dc70853cddda166bc573&size=80&default=identicon

You could easlily take advantages of gravatar and use it on your website. You could read implementation guidance for more information.

If you are using ASP.Net MVC and you are familiar with NuGet, the implementation will be so easy.

Implementation of Gravatar on ASP.Net MVC

  1. Write this command on Package Management Console : PM> install-package Microsoft.MVC.Helpers
  2. After the instalation, you will see Microsoft.MVC.Helpers.Gravatar.GetHTML(...) method. That method will generate the gravatar automatically.

Hope this helps !

Tags