Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a link that would let user change their Gravatar on my site?

Tags:

php

gravatar

How do I add a link that would let user change their Gravatar on my site? (The same way you can change your Gravatar on Wordpress)

Thanks, Kenneth

like image 803
ksuralta Avatar asked Mar 26 '09 08:03

ksuralta


People also ask

How do I get my Gravatar profile link?

First, you'll need to Sign In to your Gravatar account. Click on My Profile in the top bar. Click on Websites in the left side menu. You can add a link to any site by clicking on the "+" sign above Add Link.

How do I put a Gravatar on my website?

Go to Settings > Discussion and scroll down to the Avatars section. Next to Avatar Display, check the Show Avatars box. Next to Maximum Rating, select the type of avatars permissible on your site. Next to Default Avatar, select Gravatar Logo.


2 Answers

If you provide a link to http://en.gravatar.com/emails/ it will take them to the Gravatar site where they can log in and make changes to their account. I'm not sure if any other public API that would allow this change.

like image 77
kdmurray Avatar answered Nov 12 '22 01:11

kdmurray


Looking at the html source on wordpress.com, it looks like they're using something like ThickBox to load the Gravatar site in an iframe:

<a href="https://secure.gravatar.com/accounts/force-by-email/wpcom/username/somecode?TB_iframe=true&amp;height=475&amp;width=960" id="gravatar_ui" class="thickbox" title="gravatar.com" onclick="return false;">
   <img src="https://secure.gravatar.com/avatar/gravatarid?s=128&amp;r=any&amp;time=43179786" class="no-grav">
   <p style="text-align: center;">Change your Gravatar</p>
</a>
like image 20
Dan Esparza Avatar answered Nov 12 '22 00:11

Dan Esparza