Extension:Bad Image List

From MediaWiki.org

Jump to: navigation, search
Manual on MediaWiki Extensions
List of MediaWiki Extensions
Bad Image List

Release status: stable

Implementation Special page, Database
Description Administration interface for the bad image list
Author(s) Rob Church
Version 1.0 (2006-07-06)
MediaWiki 1.7.0 or later
Download from Subversion
Added rights badimage

The Bad Image List extension provides more flexible blacklisting of images which shouldn't be rendered inline, and is friendlier in terms of management and performance for larger sites.

The extension was written by Rob Church in July 2006 and requires MediaWiki 1.7.0 or later to work. The code is cache-friendly, and works with shared memory caching (memcached, APC etc.) if available, to reduce database hits. All users can view the list, and trusted users can add and remove items from it; the latter is controlled with standard permissions. List modifications are logged for later review.

Contents

Installation

  1. Place extension files into a "BadImage" directory in your MediaWiki "extensions" directory
  2. Run the install.php script from the command line to set up the table used for the list; this requires that $wgDBadminuser and $wgDBadminpassword are set up in AdminSettings.php
  3. Add the line require_once( "{$IP}/extensions/BadImage/BadImage.php" ); to LocalSettings.php

Installation can be verified through the Special:Version page on the wiki.

Use

To view or edit the bad image list, access Special:Badimages. When in privileged mode, you will be able to add or remove images.

Adding an image

To add an image, enter its name in the title box, provide a reason if desired, and click Add. You can enter the name with or without the namespace prefix, i.e. "Image:Foo.png" and "Foo.png" are both acceptable.

Removing an image

To remove an image, click the remove link next to the item in the list. Provide a reason and click Remove.

Personal tools