Extension:EnhanceContactForm

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
EnhanceContactForm

Release status:Extension status stable

ImplementationTemplate:Extension#type Special page
DescriptionTemplate:Extension#description Improves Special:Contact by sending more info about the user
Author(s)Template:Extension#username Jack Phoenix
Latest versionTemplate:Extension#version 0.6
MediaWikiTemplate:Extension#mediawiki 1.23+
LicenseTemplate:Extension#license Public domain
Download
ExampleTemplate:Extension#example ShoutWiki

Translate the EnhanceContactForm extension if it is available at translatewiki.net

Check usage and version matrix.

EnhanceContactForm is a MediaWiki extension that hooks into Special:Contact and sends more information about the sender to the recipient of the contact emails. This information includes:

  • the URL of the wiki ($wgServer)
  • the name of the wiki's database ($wgDBname)
  • reporter's IP address (regardless of whether they checked the "Include my IP address in this message" checkbox or not)
  • reporter's browser
  • reporter's operating system
  • reporter's skin
  • reporter's User-Agent string

The extension was written by Jack Phoenix for ShoutWiki.

Dependencies[edit]

Installation[edit]

  1. Download the source code into a file called EnhanceContactForm.php and place it in $IP/extensions/EnhanceContactForm/
  2. Add the line
    require_once("$IP/extensions/EnhanceContactForm/EnhanceContactForm.php");
    
    into the wiki's LocalSettings.php
  3. Installation can now be verified through the wiki's Special:Version