Math for all, but question on account creation?
I have editing disabled for anons and would like to use MathCaptcha as default but QuestyCaptcha on account creation. Is there a solution?
Copy ConfirmEditHooks.php to ConfirmEditQuestyHooks.php, and edit the following:
class ConfirmEditHookstoclass ConfirmEditQuestyHooks- Replace the function getInstance() with:
static function getInstance() {
static $captcha = false;
if ( !$captcha ) {
$captcha = new QuestyCaptcha;
}
return $captcha;
}
- Remove the line
class CaptchaSpecialPage extends UnlistedSpecialPage {and everything below - In ConfirmEdit.php change the hooks you wish to be handled with QuestyCaptcha to ConfirmEditQuestyHooks (where it says 'ConfirmEditHooks::...' change to 'ConfirmEditQuestyHooks::...'). In your case, seem to be UserCreateForm and AbortNewAccount