Update: Forget this plugin. Go install Jetpack instead.
WordPress.com rolled out a nifty new feature called “Gravatar Hovercards” today. Basically it changes gravatar images into popups showing more info when the user hovers over them. In the comments, Andy Peatling mentioned bringing them to self-hosted WordPress blogs soon.
I didn’t feel like waiting.
<?php /* Plugin Name: Gravatar Hovercards */ function gravatar_hovercards() { wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), 'e', true ); } add_action('wp_enqueue_scripts','gravatar_hovercards');
This is not official.
It’s not supported.
It may not even work for you.
It certainly won’t work if they change things.
Still, this blog is about fun things I do with WordPress, so I saw no reason not to post it. I expect they’ll come out with their own plugin soon, but I’d be rather surprised if it’s much more than this. Maybe some extra options or something. I dunno. Switch to that script when it comes out.
But for those people who like experimenting and playing with WordPress on the edge, here you go.
And for you Javascript inclined people, take a look at their code. It’s got some tricks in it that are pretty neat.
Enjoy. 🙂
(Updated as per several comments)