Feature

Dreebbble allows you to display the latest shots for a given player or from a chosen list on your ExpressionEngine website.

The plugin is at its very basic stages and will develop as the API does.

For updates, please follow @dreebbble

Requirements

Dreebbble requires ExpressionEngine 2+. What about ExpressionEngine 1.6 I hear you say... Fear not, Nathan's looking after it for you. Check out his Dribbble plugin.

Installation

Installing Dreebbble is easy:

  • 1. Download the latest version of Dreebbble
  • 2. Extract the .zip file to your desktop
  • 3. Copy the dreebbble directory to your /system/expressionengine/third_party/ directory
  • 4. Done.

Usage

The tags works this way:

:: Single Player

{exp:dreebbble:get_latest player="dribbble" limit="5"}
{/exp:dreebbble:get_latest}

:: List

{exp:dreebbble:get_latest list="everyone" limit="5"}
{/exp:dreebbble:get_latest}

Available Parameters so far:

  • player: Player id or username, e.g. '39' or 'dribbble'.
  • limit: Limits the amount of shots to display.
  • list: Retrieves one of the 3 available lists on dribbble. Values are "debuts", "everyone" or "popular"
  • image_size: By default the plugin will return the small version of the shot. However, you can set image_size to "original" to return the main image.

Variables available:

  • {id}: The shot's id
  • {title}: The shot's title
  • {url}: The shot's url
  • {image_url}: The url for the shot's image
  • {width}: The shot's width
  • {height}: The shot's height
  • {views_count}: The shot's view count
  • {likes_count}: The shot's like count
  • {comments_count}: The shot's comment count
  • {rebounds_count}: The shot's rebound count
  • {player_id}: The player's id
  • {player_name}: The player's name
  • {player_location}: The player's location
  • {player_avatar_url}: The player's avatar url

Here's an example of how to use it in your templates:

The below will retrieve a given player's 5 latest shots (large image)

<ul>
{exp:dreebbble:get_latest player="dribbble" limit="5" image_size="original"}
  <li>
    <h2><a href="{url}">{title}</a></h2>
    <h3>By: {player_name} from {player_location}</h3>
    <img src="{image_url}" alt="{title}">
  </li>
{/exp:dreebbble:get_latest}
</ul>

This example will retrieve the five latest shots from everyone (thumbnail version)

<ul>
{exp:dreebbble:get_latest list="everyone" limit="5"}
  <li>
    <h2><a href="{url}">{title}</a></h2>
    <h3>By: {player_name} from {player_location}</h3>
    <img src="{image_url}" alt="{title}">
  </li>
{/exp:dreebbble:get_latest}
</ul>

Change Log

1.4

→ Added the "view_count", "likes_count", "comments_count", "rebounds_count" single variables

1.3

→ Added the "image_size" parameter

1.2

→ Changed code slightly to adapt to the api changes

1.1

→ Added the "list" parameter

1.0b

→ Initial Release

Licence

Dreebbble is licenced under Creative Commons Attribution-Share Alike 3.0 Unported