Extension:QuestyCaptchaEditor

QuestyCaptchaEditor is an on-wiki special page interface for managing QuestyCaptcha questions and their answers.

Privileged users can view the list of existing CAPTCHA questions and their correct answers on  and use this special page to add and delete questions and their answers. (While direct editing of existing question+answer(s) pairings isn't supported as of version 1.1, you can delete a question and then readd it to functionally "edit" it.)

Actions taken via the special page are logged to ; access to this log is restricted only to privileged users (those who have the same   user right needed to access the QuestyCaptchaEditor special page).

Install
Prior to installing the extension, you will need to patch a MediaWiki core file. This is needed because otherwise QuestyCaptchaEditor will not be able to properly overwrite the value of  configuration variable and this will result in an exception being thrown, which thus breaks the wiki and we don't want that.

Apply the needed MediaWiki core hack
5. Save changes to the file
 * 1) Open   in your favorite text editor
 * 2) Find the
 * 3) Change the line   to
 * 4) (Optional but strongly recommended) Add a   or   explaining the patch, for example:

Check out the extension via git
Go to your wiki's  directory and run:

Edit LocalSettings.php to load QuestyCaptchaEditor
Add something like the following to the wiki's  file:

Ensure that QuestyCaptchaEditor is loaded after the base ConfirmEdit includes!

Create the new database tables
Re-run the MediaWiki core updater script,, to have it create the two new, necessary database tables,   and.

All three major DBMSes—MySQL/MariaDB, PostgreSQL and SQLite—should be supported, though support for the latter two hasn't been tested but it's present.

Done!
That's it. You should now be able to use the  special page as a privileged user.

Legacy support
If the  variable is set in the wiki's   file, questions and answers from it will override those specified on   and the variable should be removed or commented out from   to make proper use of.

User rights
The new user right, given to the administrator  user group by default, is needed to access   and the restricted log of actions taken via that page at.

Internationalization support
The extension is fully internationalizable. As of version 1.1, the following languages are supported:


 * English (en)
 * Finnish (fi)

While the  special page supports adding question+answer(s) pairings in languages other than the wiki's content language, only the pairs in the wiki's content language will be currently used by the code (see  ). In the future, this will probably change so that the  URL parameter is properly supported to support wikis with multiple supported languages (e.g. Wikimedia Commons, Wikimedia Meta-Wiki, etc.).

Known bugs/missing features/etc.

 * 1) No pagination on
 * 2) The special page UI is literally from 2006-2007 and thus not responsive, uses  s, and so on
 * 3) The functional fix done in version 1.1 to properly support questions with multiple correct answers is unnecessarily inefficient and needs fixing ASAP