2007-02-12 14:50:29 -07:00
|
|
|
--------------------------------------------------------------------------
|
2007-02-14 06:34:20 -07:00
|
|
|
README for the ContactPage extension
|
2014-01-28 20:38:50 -07:00
|
|
|
Copyright © 2006-2014 Daniel Kinzler
|
2007-02-12 14:50:29 -07:00
|
|
|
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.
|
|
|
|
|
2014-01-28 20:38:50 -07:00
|
|
|
<https://www.mediawiki.org/wiki/Extension:ContactPage>
|
2007-02-12 14:50:29 -07:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
2007-02-15 08:35:27 -07:00
|
|
|
== Installing ==
|
2007-02-12 14:50:29 -07:00
|
|
|
|
|
|
|
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" );
|
|
|
|
|
2014-01-28 20:38:50 -07:00
|
|
|
$wgContactUser = 'WikiAdmin'; // User on the wiki
|
2010-09-29 11:05:29 -06:00
|
|
|
$wgContactSender = $wgPasswordSender;
|
2007-02-12 14:50:29 -07:00
|
|
|
$wgContactSenderName = 'Contact Form on ' . $wgSitename;
|
|
|
|
|
2007-02-15 08:35:27 -07:00
|
|
|
|
|
|
|
== Configuration ==
|
2007-02-12 14:50:29 -07:00
|
|
|
|
|
|
|
$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 $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 is the name associated with the contact sender.
|
|
|
|
This will be shown in the recipient's email program.
|
|
|
|
|
2007-10-13 05:41:44 -06:00
|
|
|
If you are using the ConfirmEdit extension (captchas), you can require
|
|
|
|
a captcha test for sending contact messages by using the following:
|
|
|
|
|
|
|
|
$wgCaptchaTriggers['contactpage'] = true;
|
|
|
|
|
2010-11-14 13:09:33 -07:00
|
|
|
== Customization ==
|
2010-11-14 10:08:48 -07:00
|
|
|
|
|
|
|
[[Special:Contact]] calls the default formular.
|
|
|
|
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.
|
|
|
|
|