Extension:ImportFreeImages

From MediaWiki.org
Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Crystal Clear action run.png
ImportFreeImages

Release status: stable

Import-free-images-screenshot.png
Implementation Special page
Description Allows users to import properly licensed photos directly into their wiki from flickr.
Author(s) Travis Derouin
Last Version 0.1 (2008-02-17)
MediaWiki 1.11-1.15[1]
License GPL
Download Download snapshot
Subversion [Help]

Browse source code

check usage (experimental)

The ImportFreeImages extension allows users to import properly licensed photos directly into their wiki from flickr.

Update: As of January 17, 2008 this extension should be working with MediaWiki 1.11+. The new version fixes some security issues, so please upgrade if possible. Please e-mail any bug reports to [email protected]. Thanks.

Contents

[edit] License

Copyright 2006 Travis Derouin, wikiHow

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

[edit] Author

Travis Derouin ( ext @ wikihow.com)

[edit] Pre-requisites

This extension was tested with MediaWiki 1.8.2. Your PHP configuration must have set allow_url_fopen to On.

[edit] Configuration & Installation

require_once('extensions/ImportFreeImages/ImportFreeImages.php');
$wgEnableUploads = true;

[edit] Options

This photography was imported from flickr. 
This photo was originally taken by [http://www.flickr.com/people/{{{2}}} {{{3}}}] 
and the original photo can be found here: http://www.flickr.com/photos/{{{2}}}/{{{1}}}

This file is licensed under [http://creativecommons.org/licenses/by/2.0/ Creative Commons Attribution 2.0 license].

The license id of the imported image will be appended to the $wgIFI_CreditsTemplate name. So if you are using 'flickr', create a template 'flickr4' for the photos that are imported with the license id 4. See here for all possible license ids.

[edit] Possible Errors

When you get an error like:

you have to switch allow_url_fopen to On in you php.ini.

[edit] Bugs and enhancements

Bugs or feature requests can be sent to the author at ext @ wikihow.com.

Other ideas offering radio buttons and checkboxes to allow users to customize which licenses are searched and how the results are sorted. Other API sources could be added to complement the flickr functionality.

[edit] Notes

  1. Broken with 1.16
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Toolbox