Title: Activity Sparks
Author: pantsonhead
Published: <strong>2009 年 8 月 15 日</strong>
Last modified: 2015 年 8 月 18 日

---

搜索插件

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

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

![](https://ps.w.org/activitysparks/assets/icon-256x256.png?rev=1223188)

# Activity Sparks

 作者：[pantsonhead](https://profiles.wordpress.org/pantsonhead/)

[下载](https://downloads.wordpress.org/plugin/activitysparks.zip)

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

 [支持](https://wordpress.org/support/plugin/activitysparks/)

## 描述

Activity Sparks is a highly customizable widget to display a “sparkline” style graph
in your sidebar indicate post and/or comment activity. This plugin leverages Google’s
Chart API, so does not require the PHP GDI library. Customization options include
Title, size, colour, background transparency, caching period, activity granularity
and period.

## 屏幕截图

[⌊Example implementation (3 instances)⌉⌊Example implementation (3 instances)⌉[

Example implementation (3 instances)

## 安装

 1. Upload `activitysparks.php` to the `/wp-content/plugins/` directory of your WordPress
    installation
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. The widget can now be configured and used from the Appearance -> Widgets menu

## 常见问题

  Can I use it if I don’t want to call a widget in the sidebar?

Basic template tag support was added in v0.3. The following code checks for plugin
activation and renders with the default settings.

    ```
        <?php if(function_exists('activitysparks')) {
            activitysparks();   
        } ?>
    ```

To change the default settings you must pass an array of the parameters you wish
to alter. These are the available parameters and valid values

 * dataset = ‘posts’, ‘comments’, ‘both’ or ‘legend’
 * width_px = positive integer
 * height_px = positive integer
 * period = 1, 7, 14, 30, etc. (number of days to group by)
 * ticks = positive integer (number of periods to display)
 * chma = 0 or positive integer (chart margin px)
 * bkgrnd = 6 character hex value (e.g. FFFFFF) or ‘NONE’ for transparency
 * posts_color = 6 character hex value (e.g 4D89F9)
 * comments_color = 6 character hex value (e.g FF9900)

An example of how to implement parameters is as follows:

    ```
        <?php if(function_exists('activitysparks')) {
            activitysparks(array('dataset'=>'legend','width_px'=>480,bkgrnd=>'NONE'));  
        } ?>
    ```

Caching is not available for the template tag implementation.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

 *   [ pantsonhead ](https://profiles.wordpress.org/pantsonhead/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### v0.6.1 2015-08-18

 * Moved screenshot to assets folder
 * Added icon PNG

#### v0.6 2015-08-02

 * Fixed “Undefined index” error.
 * Tested up to: 4.2.3

#### v0.5 2012-10-23

 * Fixed caching issues.

#### v0.4.2 2012-10-05

 * Fixed issues highlighted by debugging mode.

#### v0.4.1 2012-09-18

 * Tested up to: 3.2.1

#### v0.4 2009-09-02

 * Added optional category observance
 * Fixed ticks bug

#### v0.3 2009-08-19

 * Added color swatches to widget UI
 * Added basic template tag support

#### v0.2 2009-08-17

 * Added optional caching (90% faster)

#### v0.1 2009-08-14

 * Initial release

## 额外信息

 *  版本 **0.6.1**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **4.2.39**
 *  语言
 * [English (US)](https://wordpress.org/plugins/activitysparks/)
 * 标签
 * [activity](https://cn.wordpress.org/plugins/tags/activity/)[graph](https://cn.wordpress.org/plugins/tags/graph/)
   [sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/activitysparks/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/activitysparks/reviews/#new-post)

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

## 贡献者

 *   [ pantsonhead ](https://profiles.wordpress.org/pantsonhead/)

## 支持

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

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