Hello,
I know for this question I should ask the extensions programmer, but he is not anzwering, so I am asking here, because maybe someone has a solution for this:
It is all about: http://www.mediawiki.org/wiki/Extension:ArticleComments
I got it to work properly on my Mediawiki Installation, but it gets spammed massive. That is why i would like to install the reCAPTCHA Plugin, announced here: www.mediawiki.org/wiki/Extension_talk:ArticleComments#Captcha_support
I wrote "Jaroslav Tulach" and he is sending me some article-comments.diff file which has the following code (see below).
Is someone able to read this code and knows what to do so that reCAPTCHA could be installed in that wonderful Article Comments Extension?
Your Help is highly appreciated Isabell
~~~~~~~~~~~~~~~~~~~~~~~~ diff -r 5ab5e1459c4f -r 761476165c97 httpdocs/extensions/ArticleComments.php --- a/httpdocs/extensions/ArticleComments.php Tue May 12 21:42:16 2009 +0200 +++ b/httpdocs/extensions/ArticleComments.php Wed May 13 09:50:06 2009 +0200 @@ -69,6 +69,8 @@ # Confirm MW environment if (!defined('MEDIAWIKI')) die();
+require_once 'EditPage.php'; + # Credits $wgExtensionCredits['other'][] = array( 'name'=>'ArticleComments', @@ -138,7 +140,7 @@ */ function wfArticleCommentForm( $title = null, $params = array() ) {
- global $wgScript, $wgArticleCommentDefaults, $wgContentLang, $wgContLang; + global $wgScript, $wgArticleCommentDefaults, $wgContentLang, $wgContLang, $wgCaptcha; $wcl = ($wgContentLang ? $wgContentLang : $wgContLang);
# Merge in global defaults if specified @@ -177,6 +179,7 @@ '<p>'.wfMsgForContent($ac.'comment-field').'<br />'. '<textarea id="comment" name="comment" style="width:30em" rows="5">'. '</textarea></p>'. + $wgCaptcha->getForm(). '<p><input id="submit" type="submit" '. 'value="'.wfMsgForContent($ac.'submit-button').'" /></p>'. '</form></div>'; @@ -292,6 +295,7 @@ $wgMessageCache->addMessage('article-comments-submission-view-all', 'You may view all comments on that article [[$1|here]]'); $wgMessageCache->addMessage('article-comments-prefilled-comment-text', ''); $wgMessageCache->addMessage('article-comments-user-is-blocked', 'Your user account is currently blocked from editing [[$1]].'); + $wgMessageCache->addMessage('article-comments-no-captcha', 'Your response to captcha was not correct. Go back and try again.'); $wgMessageCache->addMessage('article-comments-new-comment', "\n== $1 ==\n\n<div class='commentBlock'>\n$2\n\n--$3 $4\n</div>\n"); $wgMessageCache->addMessage('article-comments-no-spam', "At least one of the submitted fields was flagged as spam."); $wgMessageCache->addMessage('processcomment', 'Process Article Comment'); @@ -302,7 +306,7 @@ */ function specialProcessComment() {
- global $wgOut, $wgParser, $wgUser, $wgContentLang, $wgContLang; + global $wgOut, $wgParser, $wgUser, $wgContentLang, $wgContLang, $wgCaptcha; $wcl = ($wgContentLang ? $wgContentLang : $wgContLang);
# Retrieve submitted values @@ -352,6 +356,18 @@ return; }
+ # Captcha & Recaptcha + if ($wgCaptcha->passCaptcha()) { + $article->purge(); + } else { + $wgOut->setPageTitle(wfMsgForContent($ac.'submission-failed')); + $wikiText = "<div class='errorbox'>"; + $wikiText .= wfMsgForContent($ac.'failure-reasons')."\n\n"; + $wikiText .= '* '.wfMsgForContent($ac.'no-captcha', $talkTitle->getPrefixedText())."\n"; + $wgOut->addWikiText($wikiText . "</div>"); + return; + } + # Retrieve article content $articleContent = ''; if ( $article->exists() ) { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
On 02/07/12 03:55, Isabell Alcott wrote:
Hello,
I know for this question I should ask the extensions programmer, but he is not anzwering, so I am asking here, because maybe someone has a solution for this:
It is all about: http://www.mediawiki.org/wiki/Extension:ArticleComments
I got it to work properly on my Mediawiki Installation, but it gets spammed massive. That is why i would like to install the reCAPTCHA Plugin, announced here: www.mediawiki.org/wiki/Extension_talk:ArticleComments#Captcha_support
I wrote "Jaroslav Tulach" and he is sending me some article-comments.diff file which has the following code (see below).
Is someone able to read this code and knows what to do so that reCAPTCHA could be installed in that wonderful Article Comments Extension?
Your Help is highly appreciated Isabell
I don't see why that code would need to require_once 'EditPage.php'; Also, adding the $wgCaptcha, ArticleComments extension would die if ConfirmEdit wasn't also installed.
However, given that ArticleComments simply writes into a talk page, it should already obey the wiki captcha configuration settings...
Do you have ConfirmEdit installed?
PS: Is german law friendlier with reCaptcha?
I tested this DISQUS for several hours now and all I can see is that (in my beginners point of view) it dont seem to be very practicable. I posted many comments on one Testsite and after closing Firefox and IE and repointing to the testsite, there are shown "0 Comments". After pointing to "Newest" I see the old comments but still the Counter above stands on zero.
http://s15.postimage.org/boos9f3fv/qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq.jpg
So here is my question:
1) is it possible to let the counter count 2) is it possible to have the comments standard shown so that there wont be shown the "BEST" but "ALL"
Thanks in advance Isabell
On Tue, Jul 3, 2012 at 1:09 AM, Platonides Platonides@gmail.com wrote:
On 02/07/12 03:55, Isabell Alcott wrote:
Hello,
I know for this question I should ask the extensions programmer, but he is not anzwering, so I am asking here, because maybe someone has a solution for this:
It is all about: http://www.mediawiki.org/wiki/Extension:ArticleComments
I got it to work properly on my Mediawiki Installation, but it gets spammed massive. That is why i would like to install the reCAPTCHA Plugin, announced here: www.mediawiki.org/wiki/Extension_talk:ArticleComments#Captcha_support
I wrote "Jaroslav Tulach" and he is sending me some article-comments.diff file which has the following code (see below).
Is someone able to read this code and knows what to do so that reCAPTCHA could be installed in that wonderful Article Comments Extension?
Your Help is highly appreciated Isabell
I don't see why that code would need to require_once 'EditPage.php'; Also, adding the $wgCaptcha, ArticleComments extension would die if ConfirmEdit wasn't also installed.
However, given that ArticleComments simply writes into a talk page, it should already obey the wiki captcha configuration settings...
Do you have ConfirmEdit installed?
PS: Is german law friendlier with reCaptcha?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
hello, it is me again, i just noticed, that it takes 15 minutes or so till the comments are actualized.
On Tue, Jul 3, 2012 at 1:16 PM, Isabell Alcott uv22ealcott@googlemail.com wrote:
I tested this DISQUS for several hours now and all I can see is that (in my beginners point of view) it dont seem to be very practicable. I posted many comments on one Testsite and after closing Firefox and IE and repointing to the testsite, there are shown "0 Comments". After pointing to "Newest" I see the old comments but still the Counter above stands on zero.
http://s15.postimage.org/boos9f3fv/qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq.jpg
So here is my question:
- is it possible to let the counter count
- is it possible to have the comments standard shown so that there
wont be shown the "BEST" but "ALL"
Thanks in advance Isabell
On Tue, Jul 3, 2012 at 1:09 AM, Platonides Platonides@gmail.com wrote:
On 02/07/12 03:55, Isabell Alcott wrote:
Hello,
I know for this question I should ask the extensions programmer, but he is not anzwering, so I am asking here, because maybe someone has a solution for this:
It is all about: http://www.mediawiki.org/wiki/Extension:ArticleComments
I got it to work properly on my Mediawiki Installation, but it gets spammed massive. That is why i would like to install the reCAPTCHA Plugin, announced here: www.mediawiki.org/wiki/Extension_talk:ArticleComments#Captcha_support
I wrote "Jaroslav Tulach" and he is sending me some article-comments.diff file which has the following code (see below).
Is someone able to read this code and knows what to do so that reCAPTCHA could be installed in that wonderful Article Comments Extension?
Your Help is highly appreciated Isabell
I don't see why that code would need to require_once 'EditPage.php'; Also, adding the $wgCaptcha, ArticleComments extension would die if ConfirmEdit wasn't also installed.
However, given that ArticleComments simply writes into a talk page, it should already obey the wiki captcha configuration settings...
Do you have ConfirmEdit installed?
PS: Is german law friendlier with reCaptcha?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
kbtomo39
Sent from my iPhone
On Jul 3, 2012, at 7:09 AM, Platonides Platonides@gmail.com wrote:
On 02/07/12 03:55, Isabell Alcott wrote:
Hello,
I know for this question I should ask the extensions programmer, but he is not anzwering, so I am asking here, because maybe someone has a solution for this:
It is all about: http://www.mediawiki.org/wiki/Extension:ArticleComments
I got it to work properly on my Mediawiki Installation, but it gets spammed massive. That is why i would like to install the reCAPTCHA Plugin, announced here: www.mediawiki.org/wiki/Extension_talk:ArticleComments#Captcha_support
I wrote "Jaroslav Tulach" and he is sending me some article-comments.diff file which has the following code (see below).
Is someone able to read this code and knows what to do so that reCAPTCHA could be installed in that wonderful Article Comments Extension?
Your Help is highly appreciated Isabell
I don't see why that code would need to require_once 'EditPage.php'; Also, adding the $wgCaptcha, ArticleComments extension would die if ConfirmEdit wasn't also installed.
However, given that ArticleComments simply writes into a talk page, it should already obey the wiki captcha configuration settings...
Do you have ConfirmEdit installed?
PS: Is german law friendlier with reCaptcha?
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org