Gravatar Hovercards Plugin Now Available for Self-Hosted WordPress and BuddyPress Sites

You thought they were super cute when they became available for WordPress.com users. Now self-hosted WordPress sites can take advantage of the new Gravatar hovercards, too! Install the Gravatar Hovercards plugin and they will automatically appear. No configuration necessary! This plugin is based on code from Otto of OttoPress.com. Please note that it is not the official plugin, but it works. Install it and you’ll get fancy hovercards like this:

After you install it, you can check if it’s working by hovering over the Gravatar images in your comments. If it’s not working for you, it may be that you are using IE. In that case you’ll want to get a new browser.

How to Add Gravatar Hovercards to BuddyPress

If you want to have Gravatar hovercards working on BuddyPress member profile pages, you’ll want to make some slight tweaks. This tip comes to you courtesy of Rich Fuller, the author of many excellent BuddyPress plugins. Add this to your theme’s functions.php file or bp-custom.php instead of installing the plugin:

function bp_gravatar_hovercards() {
	wp_enqueue_script( 'gprofiles', 'http://s.gravatar.com/js/gprofiles.js', array( 'jquery' ), 'e', true );
}

function bp_gravatar_hovercard_setup_globals() {
	global $bp, $is_member_page;

	//don't waste if we don't care
	if ( $is_member_page && bp_is_member() ) {

		add_action('wp_enqueue_scripts','bp_gravatar_hovercards');

	}
}
add_action( 'bp_core_setup_globals', 'bp_gravatar_hovercard_setup_globals', 50);

Additionally, you’ll want to make sure that the profile links point to the actual BuddyPress profile instead of Gravatar, while still maintaining the hovercards. Rich has some more information on that at his tutorial. Hopefully he’ll make this into a plugin soon (*hint, hint) and it will be easier for more BuddyPress communities to implement.

Add More Value to Your WordPress Comments Section

Again, the Gravatar Hovercards plugin isn’t the official plugin but if you want this functionality added to your site now, there’s no harm in using it. The great benefit of adding hovercards is to provide more community. They add value to your comments section, because others commenting can find out about each other and connect. We’ll make sure to keep you updated if and when an official hovercards plugin becomes available.

Featured Plugin - WordPress Ecommerce Shopping Cart Plugin

Out of all the WordPress ecommerce plugins available, MarketPress has got to be the winner - easy to configure, powerful functionality, multiple gateways and more. A simply brilliant plugin!
Find out more

Featured Plugin - WordPress Infinite SEO Plugin

Fully integrated with the SEOMoz API, complete with automatic links, sitemaps and SEO optimization of your WordPress setup - this is the only plugin you need to help you rank your site number 1 on Google - nothing else compares.
Find out more

Featured Plugin - WordPress Pop-Up Chat Plugin

No javascript required, no third part chat engine, just fully featured chat right in your own database on your own WP sites - couldn't be easier.
Find out more

Featured Plugin - WordPress Wiki Plugin

To get a wiki up and running you used to need to install Mediawiki and toil away for days configuring it... not any more! This plugin gives you *all* the functionality you want from a wiki, in WordPress!!!
Find out more

Featured Plugin - WordPress Newsletter Plugin

Now there's no need to pay for a third party service to sign up, manage and send beautiful email newsletters to your subscriber base - this plugin has got the lot.
Find out more

Featured Plugin - WordPress Membership Site Plugin

If you're thinking about starting a paid, or just private, membership site then this is truly the plugin you've been looking for. Easy to use, massively configurable and ready to go out of the box!
Find out more

Featured Plugin - WordPress Q&A Site Plugin

It's now incredibly easy to start your own Q&A site using nothing more than WordPress - The Q&A plugin simply and brilliantly transforms any site, or page, into a perfect support or Q&A environment.
Find out more

Featured Plugin - WordPress Appointments Plugin

Take, set and manage appointments and client bookings without having to leave WordPress. Appointments+ makes it easy.
Find out more

Featured Plugin - WordPress Google Maps Plugin

Simply insert google maps into posts, sidebars and pages - show directions, streetview, provide image overlays and do it all from a simple button and comprehensive widget.
Find out more

Comments (3)

  1. ;) i think if the javascript api allowed extra links – then making it a full plugin for buddypress would be ideal (ie, pass in the link to the buddypress profile page for the current site) otherwise the edit to the theme file is a drawback for most users. i need to verify/or create a trac ticket to filter on the avatar css.

Participate