Cyberes 7291d036b3 | ||
---|---|---|
i18n | ||
includes | ||
ContactPage.alias.php | ||
README.md | ||
extension.json |
README.md
A better version of the classic contact form extension.
Install
-
git clone https://git.dp15.us/dpanzer/ProtectedContactPage.git
-
Make sure you have set
$wgPasswordSender
and have set up SMTP. -
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.