Extension:LinkFilter

LinkFilter is an extension to allow users to submit news (etc.) links and wiki admins/other privileged users to approve them.

In addition to the new special pages, LinkFilter also provides &lt;linkfilter&gt; parser hook tag.

New special pages

 * Special:LinkSubmit
 * Special:LinkApprove (available to users with linkadmin right)
 * Special:LinkEdit (redirects to LinkSubmit form, allowing to edit the link details, target etc.)
 * Special:LinksHome
 * Special:LinkRedirect

Installation

 * 1) Get the source code
 * 2) Create the new, required database table (by re-running the MediaWiki updater script, update.php)
 * 3) If a pre-r90829 version of the SocialProfile extension is installed on the wiki, you'll need to patch the existing user_stats table by running patch-columns_for_user_stats.sql against it
 * 4) Add the following into the wiki's LocalSettings.php:
 * 5) Installation can now be verified through the wiki's Special:Version

Configuration

 * $wgLinkFilterDirectory &mdash; path to LinkFilter's files. Defaults to $IP/extensions/LinkFilter.
 * $wgLinkFilterScripts &mdash; web-readable path to LinkFilter's files. This is used to fetch CSS and JS for LinkFilter. Defaults to $wgScriptPath/extensions/LinkFilter.
 * $wgLinkFilterTypes &mdash; an array of link types that will be available in the dropdown menu on Special:LinkSubmit. If this is not defined, LinkFilter will use the defaults in Link::$link_types. The defaults are the same as Link::$link_types currently:
 * $wgLinkPageDisplay</tt> &mdash; not really a configuration variable per se. Used to display different stuff on LinkFilter pages. For example, setting $wgLinkPageDisplay['in_the_news'] = true;</tt> will display "In the News" section on Special:LinksHome.

Customization
You can edit the general instructions displayed to everyone on Special:LinkSubmit by editing MediaWiki:Linkfilter-instructions.

Admins instructions can be edited through MediaWiki:Linkfilter-admin-instructions.

User rights
The extension adds one new user right, linkadmin. Users with this right are able to use LinkFilter's administrative functions, such as approve/reject links. By default, linkadmin, staff and sysop groups have this right.