A captcha-protected version of the classic ContactPage extension.
Go to file
Cyberes 7291d036b3 readme 2020-10-24 19:48:59 -06:00
i18n c 2020-10-24 18:17:45 -06:00
includes c 2020-10-24 19:24:39 -06:00
ContactPage.alias.php Use short array syntax in alias file 2017-06-17 23:59:04 +02:00
README.md readme 2020-10-24 19:48:59 -06:00
extension.json f 2020-10-24 19:13:27 -06:00

README.md

A better version of the classic contact form extension.

Install

  1. git clone https://git.dp15.us/dpanzer/ProtectedContactPage.git
    
  2. Make sure you have set $wgPasswordSender and have set up SMTP.

  3. Add to the bottom of LocalSettings.php:

$wgReCaptchaSiteKey = 'you public key';
$wgReCaptchaSecretKey = 'your secret key';

wfLoadExtension( 'ProtectedContactPage' );
$wgContactConfig['default'] = array(
        'RecipientUser' => 'your account name', // Must be the name of a valid account which also has a verified e-mail-address added to it.
        'SenderName' => "name for sender email address",
        'RequireDetails' => true,
        'AdditionalFields' => array(
                'Text' => array(
                        'label-message' => 'emailmessage',
                        'type' => 'textarea',
                        'rows' => 20,
                        'required' => true,  // Either "true" or "false" as required
                ),
        ),
        'DisplayFormat' => 'table',
        'RLModules' => array(),
        'RLStyleModules' => array(),
        'MustBeLoggedIn' => false,
);

Usage

Go to Special:Contact to access the contact form.