---
title: 'Flickr Random badges add-on (Statamic v1)'
url: 'https://maxwesten.nl/projects/statamic-addons/flickr-plugin'
markdown: 'https://maxwesten.nl/projects/statamic-addons/flickr-plugin.md'
date: '2012-07-08'
description: "UPDATE: This add-on is for Statamic V1 -- Deprecated! This is an addon for Statamic V1. The development and support has stopped. Introduction This add-on adds a definable number of random displayed badge images from flickr on your page. It's very suitable to display in the sidebar for example. Wh…"
taxonomy:
  archives_month:
    - jul_2012
  archives_year:
    - '2012'
---

[Home](https://maxwesten.nl/)  [Projects](https://maxwesten.nl/projects)  [Statamic Addons](https://maxwesten.nl/projects/statamic-addons)  Flickr badges (S1) 

## [Flickr Random badges add-on (Statamic v1)](https://maxwesten.nl/projects/statamic-addons/flickr-plugin)[on GitHub](https://github.com/mwesten/Plugin-Flickr)

    8th Jul 2012  

## UPDATE: This add-on is for Statamic V1 -- Deprecated!

This is an addon for Statamic V1. The development and support has stopped.

## Introduction

This add-on adds a definable number of random displayed badge images from flickr on your page.
It's very suitable to display in the sidebar for example.
When used with the FancyBox add-on it displays the big images in a lightbox.

## Installation

### Clone or Copy the files to their destination

Clone this project on your system:

```
cd webfolder/_add-ons
git clone git://github.com/mwesten/Plugin-Flickr.git flickr
```

Or download the project and add the contents of archive to the `_add-ons/flickr` folder.

### Add the config values

Add the following info to the `_config/globals.yaml`

```
# Flickr Random Images
# Get your API key here: http://www.flickr.com/services/apps
flickr_api_key: xxxxxxxxxxxxxxxxxx
flickr_api_user: yyyyyyyyyy
flickr_api_user_name: mwesten
flickr_api_count: 9
```

Then fill the `flickr_api_user` by looking up your `flickr_api_user_name` on [this page](http://www.adamwlewis.com/articles/what-is-my-flickr-id).

Now create an API key on <http://www.flickr.com/services/apps> and paste the generated **private key** as the `flickr_api_key`.

### Add the flickr block to your template

Open the theme file (for example) `_themes/london-wild/partials/sidebar.html`Add the following code in the location you want the random flickr images displayed:{{noparse}}

```
{{ flickr:sidebar key="{{flickr_api_key}}" user="{{flickr_api_user}}" name="{{flickr_api_user_name}}" count="{{flickr_api_count}}" }}
```

{{/noparse}} 

[←](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/previous)An IndieWeb Webring 🕸💍 [→](https://xn--sr8hvo.ws/%F0%9F%92%95%F0%9F%8E%89%E2%A4%B5%EF%B8%8F/next)

---

## Navigation

- Parent: [Statamic Addons](https://maxwesten.nl/projects/statamic-addons.md)
- Previous: [Dynamic Sitemap add-on (statamic v1)](https://maxwesten.nl/projects/statamic-addons/sitemap-plugin.md)
- Next: [Highlight.js add-on (Statamic v1)](https://maxwesten.nl/projects/statamic-addons/highlight-plugin.md)
