Title: RainyShots
Author: rainypixels
Published: <strong>11. svibnja 2011.</strong>
Last modified: 12. svibnja 2011.

---

Pretraga dodataka

Dodatak **nije testiran s zadnje 3 glavna izdanja WordPressa**. Možda ga se više
ne održava ili pruža podršku i možda ima probleme sa kompatibilnošću s novijim inačicama
WordPressa.

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

# RainyShots

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

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

 * [Detalji](https://hr.wordpress.org/plugins/rainyshots/#description)
 * [Recenzije](https://hr.wordpress.org/plugins/rainyshots/#reviews)
 *  [Instalacija](https://hr.wordpress.org/plugins/rainyshots/#installation)
 * [Razvoj](https://hr.wordpress.org/plugins/rainyshots/#developers)

 [Podrška](https://wordpress.org/support/plugin/rainyshots/)

## Opis

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

## Snimke zaslona

 * [[
 * screenshot-1.gif

## Instalacija

 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.

## ČPP

  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.

## Recenzije

Nema recenzija za ovaj dodatak.

## Suradnici i Programeri

“RainyShots” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.

Suradnici

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

[Prevedite “RainyShots” na svoj jezik.](https://translate.wordpress.org/projects/wp-plugins/rainyshots)

### Zainteresirani ste za razvoj?

[Pregledajte kôd](https://plugins.trac.wordpress.org/browser/rainyshots/), pogledajte
[SVN spremište](https://plugins.svn.wordpress.org/rainyshots/)ili se pretplatite
na [dnevnik razvoja](https://plugins.trac.wordpress.org/log/rainyshots/) od [RSS](https://plugins.trac.wordpress.org/log/rainyshots/?limit=100&mode=stop_on_copy&format=rss).

## Dnevnik promjena

#### 1.0

 * Iz in ur v1

## Meta

 *  Version **1.0**
 *  Zadnje ažuriranje **prije 15 godina**
 *  Aktivnih instalacija **10+**
 *  WordPress inačica ** 2.9 ili viša **
 *  Testirano do **3.1.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/rainyshots/)
 * Oznake
 * [designer](https://hr.wordpress.org/plugins/tags/designer/)[developer](https://hr.wordpress.org/plugins/tags/developer/)
   [social media](https://hr.wordpress.org/plugins/tags/social-media/)[template tag](https://hr.wordpress.org/plugins/tags/template-tag/)
 *  [Napredni pogled](https://hr.wordpress.org/plugins/rainyshots/advanced/)

## Ocjena

No reviews have been submitted yet.

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

[See all reviews](https://wordpress.org/support/plugin/rainyshots/reviews/)

## Suradnici

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

## Podrška

Želite nešto reći? Potrebna vam je pomoć?

 [Pregledaj forum za podršku](https://wordpress.org/support/plugin/rainyshots/)

## Doniraj

Želite li podržati napredak ovog dodatka?

 [ Donirajte ovom dodatku ](http://rainypixels.com/writings/journal/rainyshots-a-dribbble-plugin/)