A captcha-protected version of the classic ContactPage extension.
Go to file
Translation updater bot 0f4467fd1a Localisation updates from https://translatewiki.net.
Change-Id: I1e341e85b775e964d7a20f86c5bc62797f41176d
2014-03-11 20:42:49 +00:00
.gitignore Add .gitignore 2012-05-21 01:32:46 +01:00
.gitreview Adding .gitreview 2012-03-23 10:27:26 -07:00
COPYING Update README 2014-01-29 03:45:20 +00:00
ContactPage.alias.php Localisation updates from https://translatewiki.net. 2014-02-19 20:03:42 +00:00
ContactPage.i18n.php Localisation updates from https://translatewiki.net. 2014-03-11 20:42:49 +00:00
ContactPage.php Some cleanup post rewrite 2014-02-27 20:53:43 +00:00
ContactPage_body.php Fix message usage 2014-02-28 11:44:15 -05:00
README Remove "required" messages. HTMLForm takes care of that with validation. 2014-02-27 21:42:47 +00:00

README

--------------------------------------------------------------------------
README for the ContactPage extension
Copyright © 2006-2014 Daniel Kinzler, Sam Reed
Licenses: GNU General Public Licence (GPL)
          GNU Free Documentation License (GFDL)
--------------------------------------------------------------------------

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.

<https://www.mediawiki.org/wiki/Extension:ContactPage>

The ContactPage extension was originally written by Daniel Kinzler in 2007
and is released under the GNU General Public Licence (GPL). It is based on
the code in SpecialEmailuser.php in the MediaWiki core.
The internationalization files contain contributions by several people;
they are mentioned in each file individually.


== 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" );

== Configuration ==

As of version 2, all configuration is done by one global variable,
$wgContactConfig.

  $wgContactConfig['formname'] = array(
       'RecipientUser' => 'WikiUser',
       'SenderEmail' => 'user@email.com',
       'SenderName' => 'User Email',
       'RequireDetails' => true,
       'IncludeIP' => true,
  );

All contact form keys (in this case 'formname') should be in
lowercase.

RecipentUser must be the username 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 $wgEmailAuthentication).

SenderEmail is used when to send the email when an address isn't
entered on the contact form. It defaults to $wgPasswordSender.

SenderName is the display name used with SenderEmail.

RequireDetails Whether users will be required to supply a name and an
email address on Special:Contact.

IncludeIP Whether the form will include a checkbox offering to put the IP
address of the submitter in the subject line.

== Customization ==

[[Special:Contact]] calls the 'default' form.
Pagetext: [[MediaWiki:contactpage-pagetext]]
Subject: prefilled with text from [[MediaWiki:Contactpage-defsubject]] 
E-mail body: empty.

[[Special:Contact/typename]] calls the contact page with a customized pagetext and
prefilled form fields:
Pagetext: [[MediaWiki:contactpage-pagetext-typename]]
Subject: prefilled with text from [[MediaWiki:contactpage-subject-typename]]
E-mail body: prefilled with text from [[MediaWiki:contactpage-text-typename]]

If a customized message does not exist the default message is shown.