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
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.
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.
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.
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&height=475&width=960" id="gravatar_ui" class="thickbox" title="gravatar.com" onclick="return false;">
<img src="https://secure.gravatar.com/avatar/gravatarid?s=128&r=any&time=43179786" class="no-grav">
<p style="text-align: center;">Change your Gravatar</p>
</a>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With