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

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 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://tw.wordpress.org/plugins/rainyshots/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/rainyshots/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/rainyshots/#installation)
 * [開發資訊](https://tw.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 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.1.4**
 *  語言
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * 標籤:
 * [designer](https://tw.wordpress.org/plugins/tags/designer/)[developer](https://tw.wordpress.org/plugins/tags/developer/)
   [social media](https://tw.wordpress.org/plugins/tags/social-media/)[template tag](https://tw.wordpress.org/plugins/tags/template-tag/)
 *  [進階檢視](https://tw.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/)