Title: RainyShots
Author: rainypixels
Published: <strong>2011 年 5 月 11 日</strong>
Last modified: 2011 年 5 月 12 日

---

搜索插件

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

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

# RainyShots

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

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

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

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

## 描述

This plugin adds a function `rs_shots()` to WordPress that returns an array of the
15 latest Dribbble shots by a player. The return type of the function is [JSON in appropriate PHP type](http://php.net/manual/en/function.json-decode.php).

The plugin adds an admin screen under Settings > RainyShots that provides a few 
options such as specifying a player and caching preferences.

**Features**

 * Specify the player
 * Returned shots variable is cached for a day by default; this cache duration may
   be updated in admin settings
 * You can manually reset the cache through the admin at any time. This is useful
   if you post a shot and want it to immediately show up in your template.

Read more about it on [my blog](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/).

## 屏幕截图

 * [[
 * screenshot-1.gif

## 安装

 1. Upload the rainyshots folder to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Set the player under Settings > RainyShots before you use the tag; optionally, 
    update the caching preferences.

## 常见问题

  Does the ws_shots() function output any html or css?

Nope. It returns the [json with values encoded as PHP types](http://php.net/manual/en/function.json-decode.php).
You can loop through the object as follows:

    ```
    $shots = rs_shots();

    foreach ($shots as $shot)
    {
        echo "<img src='" . $shot->{"image_teaser_url"} . "' alt='" . $shot->{"title"} . "' />";
    }
    ```

  May I access only “image_teaser_url” or are any other shot properties accessible?

You may access all the properties available in the response to [this API call](http://dribbble.com/api#get_player_shots).
All the plugin does is return the json_decoded result of the API call along with
caching benefits.

## 评价

此插件暂无评价。

## 贡献者及开发者

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

贡献者

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

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0

 * Iz in ur v1

## 额外信息

 *  版本 **1.0**
 *  最后更新：**15 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.9 或更高版本 **
 *  已测试的最高版本为 **3.1.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * 标签
 * [designer](https://cn.wordpress.org/plugins/tags/designer/)[developer](https://cn.wordpress.org/plugins/tags/developer/)
   [social media](https://cn.wordpress.org/plugins/tags/social-media/)[template tag](https://cn.wordpress.org/plugins/tags/template-tag/)
 *  [高级视图](https://cn.wordpress.org/plugins/rainyshots/advanced/)

## 评级

尚未提交反馈。

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/)