A captcha-protected version of the classic ContactPage extension.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Drake Panzer c41a6e9fb6 change die to throw error 5 months ago
i18n english is the only good language lol 5 months ago
i18n-disabled english is the only good language lol 5 months ago
includes change die to throw error 5 months ago
ContactPage.alias.php Use short array syntax in alias file 3 years ago
README.md readme 6 months ago
extension.json f 6 months ago

README.md

A better version of the classic contact form extension.

New features:

  • reCAPTCHA protection
  • Better email layout
  • Always track a user's IP
  • Handle reverse proxy and Cloudflare IPs

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.