Jump to content

Extension:Report

From mediawiki.org
Revision as of 01:33, 9 May 2018 by AbyxDev (talk | contribs) (oops)
MediaWiki extensions manual
Report
Release status: beta
Implementation Special page , Database
Description Allows users to privately report revisions
Author(s) Ken Hilton (Kenny2wikitalk)
MediaWiki 1.25+
PHP >= 5.6
Database changes Yes
Tables report_reports
License GNU General Public License 3.0
Download GitHub
Help Help:Extension:Report
  • report
  • handle-reports
Quarterly downloads 6 (Ranked 124th)

The Report extension adds a special page for users to privately report revisions of pages for admin attention, as well as another special page for admins to handle such reports.

Installation

  • Download and place the file(s) in a directory called Report in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Report' );
    
  • Run the update script which will automatically create the necessary database tables that this extension needs.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Optional configuration

By default, only registered users can report revisions, and only sysops can handle reports. If different permissions are required, simply adjust $wgGroupPermissions. For example, to allow anonymous users to report revisions, and only allow bureaucrats to handle reports, add the following to LocalSettings.php, after loading the extension:

$wgGroupPermissions['*']['report'] = true;
$wgGroupPermissions['sysop']['handle-reports'] = false;
$wgGroupPermissions['bureaucrat']['handle-reports'] = true;

Usage

  1. As an admin (or other user with the handle-reports permission), browse to Special:HandleReports
  2. You will be presented with a list of recent reports. Choose a report that catches your attention by clicking "View report".
  3. On the "view report" page, you will be presented with a single button to mark the report as handled. After making sure that any required action for the report has been taken care of, click "Mark as handled".

Known issues

  • After a report has been marked as handled, other admins can still re-mark it as handled. This only changes the who and when of the report being handled, however.

See also