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

October 27, 2010  | 
3 Comments

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 + Google Maps = Perfect

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

Featured Plugin - Easily integrate your WordPress site with Facebook

Would you like to add Facebook comments, registration, 'Like' buttons and autoposting to your WP site? Well, The Ultimate Facebook plugin has got that all covered!
Find out more

Featured Plugin - Start Your Own Powerful Membership Site

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 - Send beautiful html email newsletters, from WordPress!

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 - Open an Online Store with MarketPress

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

Featured Plugin - Host sites, get paid, just like WordPress.com

If you've ever wondered how you could offer a paid site management and hosting service, then this is the plugin for you. Offer a freemium or paid service, for any niche you like, it's powered Edublogs.org to success already!
Find out more

Featured Plugin - Every great SEO tweak you need, in one snazzy bundle

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 - Add bottom corner (or anywhere else) chat to your site

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 - Turn any WordPress page into a fully featured wiki!

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

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

  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.

  2. Pingback: Gravatar Hovercards Plugin für Self Hosted WP Blogs | kulturbanause blog

  3. TY a lot for blogging this, it had been quite helpful and helped me tons

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting