Bitcoin Forum
May 24, 2024, 11:45:06 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [will tip BTC] How do I install ConfirmEdit on Mediawiki?  (Read 431 times)
b!z (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
December 30, 2014, 10:58:34 AM
 #1

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 Smiley
franckuestein
Legendary
*
Offline Offline

Activity: 1960
Merit: 1130


Truth will out!


View Profile WWW
December 30, 2014, 02:44:35 PM
 #2

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.  Cheesy
Hope to help you  Wink

[ AVAILABLE SIGNATURE SPACE ]
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!