Gravatar Plugin

Feed 10 posts, 4 voices

Avatar
257 posts

I'm redesigning my own site and thought in the About Section it may be quite cool to use an avatar from Gravatar. It is currently used in the back end of Frog in the User Admin section but this little plugin allows you to display your pic in a part of the front end by adding a little bit of code to your page.

Hope it is useful to someone else!

Andy

Gravatar Plugin 0.1

 
Avatar
1493 posts

Thanks for this, Andy! I have added this one (and your Twitter plugin, which somehow had escaped my notice!) to the MadeByFrog user plugin page. I gave a direct link to the .zip(s) of course. If you get to the stage of making a "page" for your plugins, so the link itself doesn't need updating, that would be cool! :)

Thanks for sharing these!

 
Avatar
343 posts

Hey andy, forgot to say Welcome to the unofficial developers grup. i would love to extend it , but i've didn't seen you latley on IM and i am taking a break until sunday.

 
Avatar
257 posts

@David - thanks for the adds! I am working on a redesign now so will let you know when I'm up and running again :)

If anyone uses the Twitter plugin, please let me know - it would be great to see it in action. In fact, if anyone uses twitter, you can follow me @andrew_waters

@BDesign - yeah sorry I have been neck deep in work - I may get back online for a bit next week :)

 
Avatar
20 posts

Have a bit of feedback on this – it works great, but it would helpful if you could put an alt tag on the image.

At the moment it causes a validation error on my otherwise tidy page, so I can’t use this at the moment, call me pedantic :(

Easily fixed in the code I know, but I was thinking about tweaking this plugin so I could use it for my readers blog comments, so poses a problem for multiple gravatars.

 
Avatar
257 posts

Hi Valeska, I’ll be relaunching the plugins very soon and will bear that in mind.

If you would like to fix it now go to:

/frog/plugins/gravatar/functions/gravatar.php

and change line 7 to read:

echo "<img src=\"$grav_url\" alt=\"Image Profile Picture from Gravatar\" style=\"float: left;\" />";

or whatever alt tag you would like…

 
Avatar
20 posts

Thanks Andy, much appreciated!