Title: BuddyPress Hovercards
Author: Mike Martel
Published: <strong>2012 年 6 月 26 日</strong>
Last modified: 2013 年 1 月 24 日

---

搜索插件

![](https://ps.w.org/buddypress-hovercards/assets/banner-772x250.png?rev=698109)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/buddypress-hovercards_b6675b.svg)

# BuddyPress Hovercards

 作者：[Mike Martel](https://profiles.wordpress.org/mike_cowobo/)

[下载](https://downloads.wordpress.org/plugin/buddypress-hovercards.1.1.3.zip)

 * [详情](https://cn.wordpress.org/plugins/buddypress-hovercards/#description)
 * [评价](https://cn.wordpress.org/plugins/buddypress-hovercards/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/buddypress-hovercards/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/buddypress-hovercards/#developers)

 [支持](https://wordpress.org/support/plugin/buddypress-hovercards/)

## 描述

This plugin adds hovercards (like on WordPress,com (Gravatar), Twitter, Facebook,
Google+, etc.) to BuddyPress. Whenever a user hovers over a user avatar, the hovercard
shows up.

Hovercards are completely themable by adding a `hovercard.php` template to your (
child) theme.

Based on imath’s blogpost [on BuddyPress xprofile hovercards](http://imath.owni.fr/2010/11/23/buddypress-xprofile-hovercard/)
and uses the jQuery [Tipsy](http://onehackoranother.com/projects/jquery/tipsy/) 
library and [Rrrene’s hovercards](https://github.com/rrrene/tipsy.hovercard).

## 屏幕截图

[⌊Example hovercard using the template included in the plugin.⌉⌊Example hovercard
using the template included in the plugin.⌉[

Example hovercard using the template included in the plugin.

## 安装

 1. You can download and install BuddyPress hovercards using the built in WordPress
    plugin installer. If you download BuddyPress Hovercards manually, upload the whole
    folder to “/wp-content/plugins/”.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress

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.

## 常见问题

  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.

## 评价

此插件暂无评价。

## 贡献者及开发者

「BuddyPress Hovercards」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mike Martel ](https://profiles.wordpress.org/mike_cowobo/)

[帮助将「BuddyPress Hovercards」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/buddypress-hovercards)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/buddypress-hovercards/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/buddypress-hovercards/)，或通过[RSS](https://plugins.trac.wordpress.org/log/buddypress-hovercards/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/buddypress-hovercards/)。

## 更新日志

#### 1.1.3

 * Fix that avatars would show the hovercard as an alt-text in certain cases

#### 1.1.2

 * Better compatibility with BP Social Theme

#### 1.1.1

 * Disable hovercards for profile badge and profile header (thanks Sandy)
 * Added filters ‘bphc_parent_filter’ and ‘bphc_element_filter’ to disable hovercards
   for certain avatars

#### 1.1

 * Hovercards are now not reloaded when they’re still visible
 * Never show two hovercards at the same time
 * Hovercards were loaded during AJAX calls (when the mouse was no longer on)

#### 1.0

 * Fixed that non-logged in users got a stylish ‘0’ instead of the hovercard
 * Hovercards are now reloaded on _all_ AJAX request (except BP Live Notifications)

#### 0.9.6

 * Hovercards now refresh anytime something is loaded in with AJAX
 * BP 1.6 Beta 1 & 2 compatibility

#### 0.95

 * Fixed ‘Load More’-bug. Users of the WP admin bar would not get hovercards on 
   posts loaded in using the ‘Load More’ button.

#### 0.9

 * Initial upload

## 额外信息

 *  版本 **1.1.3**
 *  最后更新：**14 年前**
 *  活跃安装数量 **10+**
 *  语言
 * [English (US)](https://wordpress.org/plugins/buddypress-hovercards/)
 * 标签
 * [buddypress](https://cn.wordpress.org/plugins/tags/buddypress/)[hovercards](https://cn.wordpress.org/plugins/tags/hovercards/)
 *  [高级视图](https://cn.wordpress.org/plugins/buddypress-hovercards/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/buddypress-hovercards/reviews/)

## 贡献者

 *   [ Mike Martel ](https://profiles.wordpress.org/mike_cowobo/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/buddypress-hovercards/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://trenvo.nl/)