Extension:Flickrm

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
Flickrm

Release status: unknown

Implementation Special page
Description Special page to show your Flickr photos.
Author(s) Juan Felipe Alvarez Saldarriaga
Last version 0.1
MediaWiki 1.7
License No license specified
Download Flickrm Extension,
Flickrm Special Page
Check usage and version matrix

The Flickrm Extension is a special page to show your Flickr photos. It is based on Ruben Molina's original code from GiGAX, Flickrm uses PhpFlickr v1.x.


Contents

License [edit]

Flickrm Extension is free software, covered by the GNU General Public License.

Download [edit]

  1. Download PhpFlickr class.
  2. Download Flickrm Extension
  3. Download Flickrm Special Page
Download both Flickrm files from here.

Installation [edit]

  1. Decompress phpFlickr.
  2. Save Flickrm Extension on the extensions/ folder as Flickrm.php.
  3. Save Flickrm Special Page on includes/ folder as SpecialFlickrm.php.

Configuration [edit]

Open your LocalSettings.php and add the extension.

require_once( "extensions/Flickrm.php" );

Open SpecialFlickrm.php and write some constants to setup your Flickr.

// Your flickr username.
define( "FLICKRM_USERNAME", "<USERNAME>" );

// Your flickr api key.
// Get one: http://www.flickr.com/services/api/misc.api_keys.html
define( "FLICKRM_APIKEY", "<API KEY>" );

// Path for phpFlickr class
// Download it: http://www.phpflickr.com
define( "PHPFLICKR_PATH", "/path/to/phpFlickr.php" );

// Path for cache dir, Remember to set write permission for apache. 
// About cache: I'm using filesystem cache you can also use database cache...
// change the cache line in both files: flickrm.cloudtag.php and flickrm.php
// Read about it here: http://www.phpflickr.com/docs/?page=caching
define( "FLICKRM_CACHE", "/path/to/cache" );

// Some constants for the tags.

// Max font size.
define( "MAX_FONT_FLICKRM", 35 );
// Min font size.
define( "MIN_FONT_FLICKRM", 12 );
// Mininum tag count to display.
define( "MIN_TAGS_FLICKRM", 1 );

Save it and thats all you need to setup Flickrm for MediaWiki.

Usage [edit]

Now go to Special:Specialpages, click on Flickrm or just write Special:Flickrm directly on your navigation toolbar.

Flickrm Planet [edit]

Now we have an special feature on Flickrm extension, a Planet, what's a Planet? a lot of Flickr accounts in just one page!.

Setup [edit]

Just add as many Flickr usernames that you want to the wfSpecialFlickrm() method on SpecialFlickrm.php script.

// Set planet users :).
$flickrm->flickrPlanet = array( "<f00>", "<bar>" );

Usage [edit]

Go to Special:Specialpages?a=planet and you can see all user's tags and the latest photos that they have, choose whatever tag you want and you see all pictures associed to this tag for all the users on the planet.

Demo [edit]

External links [edit]

  • Alternative: Flickr Extension Extension which shows chosen photos on any page.