Extension:ContactPage

From MediaWiki.org

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

Release status: beta

Implementation Special page
Description contact form for visitors
Author(s) Duesentrieb
MediaWiki 1.9 (maybe older versions too)
Download svn (browse), bundle
README
log
Parameters $wgContactUser, $wgContactSender, $wgContactSenderName

The ContactPage extension implements a contact form for visitors. It creates a special page Special:Contact, which is similar to Special:Emailuser, but it has a fixed recipient, and can be used anonymously.

[edit] Installing

Copy the ContactPage directory into the extensions folder of your MediaWiki installation. Then add the following lines to your LocalSettings.php file (near the end):

require_once( "$IP/extensions/ContactPage/ContactPage.php" );
 
  $wgContactUser = 'WikiAdmin';
  $wgContactSender = 'apache@' . $wgServerName;
  $wgContactSenderName = 'Contact Form on ' . $wgSitename;

[edit] Configuration

$wgContactUser
must be the name of a registered wiki user, who has supplied an email address, has user-to-user email enabled, and has confirmed his/her email address if that is required on this wiki (see Manual:$wgEmailAuthentication).
$wgContactSender
must be the email address used as the sender of the contact email. Depending on the setup of your web host, this may have to be an existing mail account.
$wgContactSenderName
the name associated with the contact sender. This will be shown in the recipient's email program.

As of rev:26698 (2007-10-13) you can require a captcha test for the contact page, if you have the ConfirmEdit extension installed. Captchas are enabled by setting $wgCaptchaTriggers['contactpage'] = true.

[edit] History

  • rev:21348: fixed edit token check for anonymous users. Previously, sending the message failed silently for anons without a session cookie.
  • rev:21702: fixed "send me a copy" feature. Was sending duplicates to the contact address instead of copied to the sender.
  • rev:26696: all messages now listed on Special:Allmessages
  • rev:26698: support for captchas using Extension:ConfirmEdit
Personal tools