Hi Stephane,
For what it's worth, reCaptcha did little to stop our spam problem at
mahara.org. See Bug 1252098.
That said, I suppose adding it for public comments couldn't hurt. Mahara
an API for adding captcha's to forms. You just add a "captcha" pieform
element to it.
Unfortunately, I tried it just now, and adding this to the comment form
didn't entirely work. It displays the reCAPTCHA okay the first time you
load the page, but not after you submit a comment (successfully or not).
I suspect this is because we're reloading the comments section via Ajax,
and my recaptcha implementation wasn't clever enough to handle that.
If anyone wants to give it a try, the starting point is this:
diff --git htdocs/artefact/comment/lib.php htdocs/artefact/comment/lib.php
index d9d2ce1..846886b 100644
--- htdocs/artefact/comment/lib.php
+++ htdocs/artefact/comment/lib.php
@@ -931,6 +931,7 @@ class ArtefactTypeComment extends ArtefactType {
'required' => true,
),
);
+ $form['elements']['captcha'] = array('type' => 'captcha');
}
$form['elements']['message'] = array(
'type' => 'wysiwyg',
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask
on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1599241
Title:
recaptcha for anonymous comments on public pages
Status in Mahara:
Confirmed
Bug description:
While it was imperative to give public a voice if desired on selected
public page, the fact that comments are anonymous let spammers do
their unwanted actions.
It was added in https://bugs.launchpad.net/mahara/+bug/547384 the
necessity to set a recaptcha feature in implementing public comment. I
has not been done.
Hence the request :
If public comment is allowed on a page and the visitor is not
authenticated, there should be a recaptcha feature to limit spam.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1599241/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to : [email protected]
Unsubscribe : https://launchpad.net/~mahara-contributors
More help : https://help.launchpad.net/ListHelp