Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin is no longer maintained by its original author, unfortunately… You may try to replace your simple math spam protection with the Quiz plugin:

    http://wordpress.org/extend/plugins/quiz/

    — works in a similar way and if you don’t overcomplicate it, may suit you pretty well. Try it.

    I just made one simple question (“The sum of 2+1?”) and one simple answer (3 or three), and that’s it…

    I will see if it works well…

    After some poking around, I found the problem with the Math Comment Spam Protection plugin. The fix is simple.

    Hope this helps!

    Er, I suppose I should post the fix here, as well.

    Find Line 211 of math-comment-spam-protection.php:
    if ( ( !isset($user_ID) ) && ( $comment_data['comment_type'] == ” ) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks
    The offending code is this:
    ( !isset($user_ID)
    Simply change the above to this:
    ( ! $user_ID )
    So that Line 211 looks like the following:
    if ( ( ! $user_ID ) && ( $comment_data['comment_type'] == ” ) ) { // Do not check if the user is registered & do not check trackbacks/pingbacks
    Voila! The Math Comment Spam Protection plugin will now work again!

    Otto has suggested a better fix: use is_user_logged_in():

    ( ! is_user_logged_in() )

    Thread Starter yuki_keylin

    (@yuki_keylin)

    @optimiced: Thanks for your tip, maybe I’ll try it.

    @chipbennett: I tried to change it into ( ! is_user_logged_in() ) and first thought, it worked. But after submitting the comment it transported me to a totally different post I didn’t want to comment. Strange!? After some test I found out that the newer version of my theme seems to cause the trouble. I reactivated the older version and now it works again.

    Thanks although!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Math Comment Spam Protection] Doesn’t work with WordPress 3.0’ is closed to new replies.