A captcha-protected version of the classic ContactPage extension.
Go to file
libraryupgrader 10b3a9bf89 build: Updating mediawiki/mediawiki-codesniffer to 29.0.0
Additional changes:
* Remove direct "eslint" dependency in favor of "grunt-eslint".
* Also sorted "composer fix" command to run phpcbf last.

Change-Id: I0c7501cb8452e96bbc2f18b7b6f81c2d936ad76e
2020-01-14 04:34:09 +00:00
.phan build: Upgrade mediawiki/mediawiki-phan-config from 0.5.0 to 0.6.0 2019-05-19 11:45:28 +00:00
i18n Localisation updates from https://translatewiki.net. 2020-01-08 08:42:05 +01:00
includes build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 04:34:09 +00:00
.eslintrc.json Replace jshint with eslint 2019-12-07 18:21:19 +02:00
.gitignore build: Updating mediawiki/minus-x to 0.3.2 2019-12-16 21:14:04 +00:00
.gitreview Whoops, track not trace 2016-10-24 17:02:20 -07:00
.phpcs.xml Add method scope visibility 2018-11-01 20:13:52 +01:00
CODE_OF_CONDUCT.md build: Updating mediawiki/phan-taint-check-plugin to 1.3.0 2018-08-19 11:24:46 +00:00
COPYING Update README 2014-01-29 03:45:20 +00:00
ContactPage.alias.php Use short array syntax in alias file 2017-06-17 23:59:04 +02:00
Gruntfile.js build: Updating mediawiki/minus-x to 0.3.2 2019-12-16 21:14:04 +00:00
README Remove DisplayFormat from README 2017-08-25 19:15:06 +01:00
composer.json build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 04:34:09 +00:00
extension.json Allow a contact page to require users to be logged in to use it 2018-07-10 18:08:33 +01:00
package-lock.json build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 04:34:09 +00:00
package.json build: Updating mediawiki/mediawiki-codesniffer to 29.0.0 2020-01-14 04:34:09 +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):

  wfLoadExtension( 'ContactPage' );

== Configuration ==

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

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

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.

AdditionalFields is used to add any additional fields to the contact form.
These are done using https://www.mediawiki.org/wiki/HTMLForm notation.
The default message text box is not included by default, and if required,
should be added manually to the AdditionalFields array like below.

It should be noted that type 'selectandother' is not currently supported.

  'AdditionalFields' => [
       'Text' => [
            'label-message' => 'emailmessage',
            'type' => 'textarea',
            'rows' => 20,
            'cols' => 80,
            'required' => true,
      ],
  ],

RLModules can be used to add ResourceLoader modules (custom CSS and
JavaScript) to the page.

RLStyleModules can be used to add ResourceLoader CSS modules to the page.

== 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.