Extension:Flickrm
From MediaWiki.org
|
Flickrm Release status: unknown |
|
|---|---|
| Implementation | Special page |
| Description | Special page to show your Flickr photos. |
| Author(s) | Juan Felipe Alvarez Saldarriaga |
| Version | 0.1 |
| MediaWiki | 1.7 |
| Download | Flickrm Extension, Flickrm Special Page |
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 |
[edit] License
Flickrm Extension is free software, covered by the GNU General Public License.
[edit] Download
- Download PhpFlickr class.
- Download Flickrm Extension
- Download Flickrm Special Page
[edit] Installation
- Decompress phpFlickr.
- Save Flickrm Extension on the extensions/ folder as Flickrm.php.
- Save Flickrm Special Page on includes/ folder as SpecialFlickrm.php.
[edit] Configuration
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.
[edit] Usage
Now go to Special:Specialpages, click on Flickrm or just write Special:Flickrm directly on your navigation toolbar.
[edit] Flickrm Planet
Now we have an special feature on Flickrm extension, a Planet, what's a Planet? a lot of Flickr accounts in just one page!.
[edit] Setup
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>" );
[edit] Usage
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.
[edit] Demo
- Example from Archive.org: GiGAX gallery, original page down.
[edit] External links
- Alternative: Flickr Extension Extension which shows chosen photos on any page.

