WordPress.org

Ready to get started?Download WordPress

Plugin Directory

BuddyPress Hovercards

Add themable hovercards to your BuddyPress installation.

How can I disable hovercards for certain avatars?

Hovercards are disabled for some avatars already, namely the profile badge and the profile header. To add more disabled elements, you can use the folowing filters:

'bphc_parent_filter' to disable hovercards for all children of a certain element id or class, e.g.:

function disable_bphc_by_parent( $filter ) {
    return $filter . ', .children-of-this-class';
}
add_filter('bphc_parent_filter', 'disable_bphc_by_parent');

'bphc_element_filter' to disable hovercards for avatar img tag with this class/id, e.g.:

function disable_bphc_for_elements ( $filter ) {
    return $filter . ', .avatars-with-this-class, #avatar-with-this-id'
}
add_filter('bphc_parent_filter', 'disable_bphc_by_parent');

Can I make my own hovercard?

Yes. If you want to add a custom hovercard, or change the displayed fields, copy '/bp-hovercards/templates/hovercard.php' to the root of your (child) theme and edit it there to prevent it being overwritten at an update.

Requires: WP 3.2.1, BP 1.5 or higher
Compatible up to: WP 3.4.2, BP 1.6.1
Last Updated: 2013-1-24
Downloads: 4,304

Ratings

4 stars
4.7 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1