Title: RainyShots
Author: rainypixels
Published: <strong>11 Tháng 5, 2011</strong>
Last modified: 12 Tháng 5, 2011

---

Tìm kiếm plugin

Plugin này **chưa được cập nhật với 3 phiên bản mới nhất của WordPress**. Nó có 
thể không được hỗ trợ và bảo trì, và có thể xung đột với các phiên bản WordPress
mới nhất.

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

# RainyShots

 Bởi [rainypixels](https://profiles.wordpress.org/rainypixels/)

[Tải về](https://downloads.wordpress.org/plugin/rainyshots.1.0.zip)

 * [Chi tiết](https://vi.wordpress.org/plugins/rainyshots/#description)
 * [Đánh giá](https://vi.wordpress.org/plugins/rainyshots/#reviews)
 *  [Cài đặt](https://vi.wordpress.org/plugins/rainyshots/#installation)
 * [Nhà phát triển](https://vi.wordpress.org/plugins/rainyshots/#developers)

 [Hỗ trợ](https://wordpress.org/support/plugin/rainyshots/)

## Mô tả

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/).

## Ảnh màn hình

 * [[
 * screenshot-1.gif

## Cài đặt

 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.

## Hỏi đáp

  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.

## Đánh giá

Không có đánh giá nào cho plugin này.

## Người đóng góp & Lập trình viên

“RainyShots” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.

Những người đóng góp

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

[Dịch “RainyShots” sang ngôn ngữ của bạn.](https://translate.wordpress.org/projects/wp-plugins/rainyshots)

### Muốn tham gia phát triển?

[Duyệt code](https://plugins.trac.wordpress.org/browser/rainyshots/), check out 
[SVN repository](https://plugins.svn.wordpress.org/rainyshots/), hoặc theo dõi [nhật ký phát triển](https://plugins.trac.wordpress.org/log/rainyshots/)
qua [RSS](https://plugins.trac.wordpress.org/log/rainyshots/?limit=100&mode=stop_on_copy&format=rss).

## Nhật ký thay đổi

#### 1.0

 * Iz in ur v1

## Meta

 *  Phiên bản **1.0**
 *  Cập nhật lần cuối **15 năm trước**
 *  Số lượt cài đặt **10+**
 *  Phiên bản WordPress ** 2.9 hoặc cao hơn **
 *  Đã kiểm tra lên đến **3.1.4**
 *  Ngôn ngữ
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * Thẻ
 * [designer](https://vi.wordpress.org/plugins/tags/designer/)[developer](https://vi.wordpress.org/plugins/tags/developer/)
   [social media](https://vi.wordpress.org/plugins/tags/social-media/)[template tag](https://vi.wordpress.org/plugins/tags/template-tag/)
 *  [Nâng cao](https://vi.wordpress.org/plugins/rainyshots/advanced/)

## Đánh giá

Chưa có đánh giá nào được gửi.

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

[Xem tất cả đánh giá](https://wordpress.org/support/plugin/rainyshots/reviews/)

## Những người đóng góp

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

## Hỗ trợ

Có điều gì muốn nói? cần giúp đỡ?

 [Xem diễn đàn hỗ trợ](https://wordpress.org/support/plugin/rainyshots/)

## Ủng hộ

Bạn có muốn hỗ trợ vào sự phát triển của plugin này?

 [ Ủng hộ plugin này ](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/)