Bitcoin Forum

Economy => Services => Topic started by: b!z on December 30, 2014, 10:58:34 AM



Title: [will tip BTC] How do I install ConfirmEdit on Mediawiki?
Post by: b!z on December 30, 2014, 10:58:34 AM
Hi guys, I installed Mediawiki on a web host using Softaculous. Apparently the ConfirmEdits extension is already bundled with the install, because it has its own folder in /extensions/.

I put this code at the very bottom of LocalSettings.php:

Code:
require_once "$IP/extensions/ConfirmEdit/QuestyCaptcha.php";
$wgCaptchaClass = 'QuestyCaptcha';
$arr = array (
        'A question?' => 'An answer!',
        "What is this wiki's name?" => "$wgSitename",
        'Please write the magic secret, "passion", here:' => 'passion',
        'Type the code word, "567", here:' => '567',
        'Which animal? <img src="http://www.example.com/path/to/filename_not_including_dog.jpg" alt="" title="" />' => 'dog',
        'Fill in the blank: Blue is a ...' => array( 'colour', 'color' ),
);
foreach ( $arr as $key => $value ) {
        $wgCaptchaQuestions[] = array( 'question' => $key, 'answer' => $value );
}

(I got the code from here http://www.mediawiki.org/wiki/Extension:ConfirmEdit#QuestyCaptcha)

However, when I edit, even when logged out, no CAPTCHA is displayed. How do I fix this? I will tip some BTC if your answer helps :)


Title: Re: [will tip BTC] How do I install ConfirmEdit on Mediawiki?
Post by: franckuestein on December 30, 2014, 02:44:35 PM
After adding the ConfirmEdits extension and the code at the very bottom of LocalSettings.php, are you setting up a configuration for them?
I think that after doing what you've made, you have to set up this configuration on your project:
http://www.mediawiki.org/wiki/Extension:ConfirmEdit#Configuration

Then, navigate to "Special:Version" on your wiki to verify that the extension is successfully installed.  :D
Hope to help you  ;)