Qcybb

We are here to help you solve your problems!

You are here: Home / Question2Answer / Question2Answer Akismet Plugin

Question2Answer Akismet Plugin

January 29, 2013 28 Comments

The Question2Answer Akismet Plugin will check questions, answers and comments for spam. If spam is detected, it will be queued for moderation.

Requirements : Q2A 1.5.4 – PHP 5.x – cURL PHP extension
Current Version : 1.0 Q2A 1.5.4
Download Link : Q2A-Akismet-Plugin.zip

** Q2A 1.6 Update **

Since Q2A 1.6 is fast approaching, I’ve updated my plugin to fully support the new version. While I was at it, I went ahead and added a new “Moderate questions, answers and comments that contain links” option. When enabled, this will further protect your Q2A site from spammers. (Big thanks to VdoubleE for all the beta testing!)

Q2A 1.6 Download Link : Q2A-Akismet-Plugin-v2b3.zip

To install the Q2A Akismet plugin, create a folder called akismet-spam-filter in your qa-plugin directory and copy the qa-plugin.php, qa-akismet.php and akismet.class.php in to that folder. This plugin requires a Akismet API key. If you do not have one, you will need to sign up for a free API key. For non-business personal sites, choose the ‘Personal’ plan.

To activate the plugin, head over to Admin / Plugins and enter in your API key. The plugin also offers an option to only use the Akismet spam filter for users with less than XX points.

I plan to add additional options (in the near future) that will highlight detected spam content in your ‘Moderate’ section, as well as adding “spam” and “ham” buttons on content pages. If you enjoy this plugin or would like to help support this project, you can do so by sending us a donation – thank you in advance, every bit helps!

Would you like to contribute to this project? Q2A Akismet Plugin on Github

Filed Under: Question2Answer

Leave a Comment ↓

Comments

  1. darrylc says

    January 30, 2013 at 10:25 am

    I can’t believe someone finally made this plugin!

    This is desperately needed to combat today’s spam. Thank you for including the option to only spam filter users based on points – this was also requested several times on the Q&A site.

    Well done sir!

    Reply to this Comment
  2. Doug Patton says

    January 30, 2013 at 10:52 pm

    Due to the amount of spam my Q&A site was receiving, I was ready to close the doors. I’m not a fan of moderating every users post – it’s too time consuming.

    I’ve only had this plugin installed for 10 hours and it caught all 35 spam posts!

    Thank you so much for creating this … maybe now I can spend more time with the family rather than hunting down and deleting spam.

    Reply to this Comment
  3. Dave Hannon says

    January 30, 2013 at 11:19 pm

    @darrylc – Thank you! I noticed on the Q&A site someone (in late 2011) claimed to be working on one … why it was never released is beyond me. Now that this plugin exists, spammers will have to find a new home :)

    @Doug Patton – You’re welcome, I’m glad I could help!

    Reply to this Comment
  4. ThomasT says

    March 19, 2013 at 5:53 am

    This plugin is a great service to the Q2A ecosystem. Like the others, I can also report that spam abuse was increasing.

    Reply to this Comment
  5. Arthur Rodrigues says

    August 6, 2013 at 10:24 am

    When I try to edit the options of the plugin on the Q2A admin pannel, only a blank page is shown… I mean, no html output at all…

    Do you have any ideas on how to fix this? I’m using the “Q2A-Akismet-Plugin-v2b3” version downloaded from this post, and my Q2A version is the 1.6.2 downloaded from GitHub.

    Thank you.

    Reply to this Comment
  6. Dave Hannon says

    August 7, 2013 at 1:10 pm

    @Arthur – I’m not exactly sure why you are having that issue. I just a fresh install of 1.6.2 / Akismet plugin and everything works just fine.

    Could you check your webserver error logs and copy / paste any errors that are showing up?

    Reply to this Comment
  7. Patrick says

    August 27, 2013 at 6:48 am

    Hi Dave,

    do you have any plans to also allow submitting spam to akismet?

    Thanks,
    Patrick

    Reply to this Comment
  8. Anders says

    September 13, 2013 at 7:21 am

    Thanks! This is a very useful plugin for q2a.
    Would you consider adding an option to delete all spam posts directly, instead of sending them for moderation? I understand akismet may give some false positives, but I think that’s a trade-off a lot of webmasters can live with. An option would be nice? :-)

    Reply to this Comment
  9. Maxj says

    September 16, 2013 at 1:32 pm

    I’ve installed the v2 b3.
    Then I wanted to setup the key : I’ve made access to the Admin section , Plugins, Akismet Spam Filter v2.0 Beta 3, and clicked the “options” link.
    I received a blank page as the previous post.
    In the php error log file there was the following error :

    PHP Fatal error: Call to undefined function curl_init()

    The plugin needs curl installed with php (as it’s written in the requirements section…)
    So I installed it :
    apt-get install php5-curl
    and restarted apache.
    After this procedure I could see the setup page.
    Maxj

    Reply to this Comment
  10. Maxj says

    September 18, 2013 at 2:35 pm

    Hi,
    I’ve posted here :

    http://www.question2answer.org/qa/27560/akismet-plugin-for-q2a-1-6-%26-links-moderation

    an issue I found with the plugin.
    It’s about the link moderation.

    Reply to this Comment
  11. Dave Hannon says

    September 27, 2013 at 12:25 pm

    @Patrick – I was planning to, but I’ve been so busy that I haven’t had time yet.

    @Anders – Thank you for the suggestion, I will see what can be done in the next update.

    @Maxj – I was under the impression that Q2A converted all links to clickable links when you enter them in. That’s what happens here anyways. I’ll have to have a look at the options later tonight to see what is going on.

    Reply to this Comment
  12. Maxj says

    September 27, 2013 at 2:19 pm

    Thanks Dave

    Reply to this Comment
  13. Maxjtechno says

    October 25, 2013 at 2:10 am

    Hi Dave, have you had time to have a look ? If you didn’t have time, no prob :-)

    Reply to this Comment
  14. Chris says

    December 18, 2013 at 10:12 am

    Hi Dave,
    Thanks a lot for that plugin! Do you think you can in the next version also check what is submitted through the feedback form? I currently receive lots of spam from there.

    Reply to this Comment
  15. waqar says

    December 24, 2013 at 7:05 pm

    HI Dave Please Update your Plug in It is not working on new q2a versions ,

    Thanks

    Reply to this Comment
  16. Kumar says

    March 19, 2014 at 5:37 am

    Hi Dave,
    Thank you for creating an amazing plugin. I was looking for something with Akismet as it saves a lot of time with wordpress. I cannot wait to use it.

    Appreciate all the great work !

    Cheers,

    Reply to this Comment
  17. Klaasson says

    June 14, 2014 at 3:40 am

    Hi Dave,
    it would be very nice to have some options how spam is treated. Adding to the moderation queue is very time consuming for me. I would like to have an option that completely deletes spam messages.

    Reply to this Comment
  18. The Project Engineer says

    July 19, 2014 at 8:47 pm

    Thank for this akismet plugin of Question2Answer

    Reply to this Comment
  19. Mr Wizard says

    August 28, 2014 at 8:00 am

    Yes, having a bulk delete option would be wonderful. Thank you for creating this plug-in, helped save me from over 400 spam message in a week!!

    Reply to this Comment
  20. Gurjyot says

    August 30, 2014 at 12:31 pm

    Hello Dave Hannon, the new update for question2answer (v 1.7) is approaching near. Would you update the plugin so that it should work good and flawless on new release of q2a??

    Reply to this Comment
  21. TrangNguyen says

    September 4, 2014 at 10:31 am

    Thanks, a good Plugin !

    Reply to this Comment
  22. Krotov Roman says

    October 22, 2014 at 8:54 am

    Hello!
    I find bug:
    i install plugin into my question2answer 1.6.3 intagrated with wordpress.
    And i go to page with options Question2Answer Akismet Plugin. After this i see blank page.
    I turn on show php errors. And i sow what it is conflict whith akismet wordpress system plugin: “redeclarated class akismet.”
    I rename class in file akismet.class.php to “class nakismet”
    and in file qa-akismet.php i replace “new akismet” to “new nakismet”.
    After this plugin will worked!

    Thank you for this plugin!
    P.S. Sorry for my english – i am russian))

    Reply to this Comment
  23. Michael says

    March 22, 2015 at 7:17 am

    The plugin is in conflict if

    a) q2a is integrated with wordpress installation
    b) wordpress installation has akismet plugin (wordpress plugin)

    Error from the error log:

    PHP Fatal error: Cannot redeclare class akismet in …/akismet.class.php on line 8

    Reply to this Comment
  24. Dave Hannon says

    March 22, 2015 at 1:20 pm

    @Michael – I’ll try and get fix out for this, but in the meantime to get it working for you now – edit the “qa-akismet.php” file and …

    Change all instances of :

    require_once $this->directory.'akismet.class.php';

    To this:

    if (!class_exists('akismet')) { require_once $this->directory.'akismet.class.php'; }

    Reply to this Comment
  25. Patrick says

    November 29, 2017 at 11:07 pm

    Is this plugin working with 1.7 ?

    Reply to this Comment
    • Dave Hannon says

      November 30, 2017 at 1:25 am

      Yes, just download the latest version from Github
      https://github.com/QCYBB/q2a-akismet

  26. mark says

    September 9, 2022 at 9:00 pm

    can you please update the latest version

    Reply to this Comment
    • Dave Hannon says

      September 9, 2022 at 9:04 pm

      Sorry, I haven’t used Q2A in over 7 years.

Leave a Reply to Chris Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Question2Answer
  • SEO
  • WordPress

Recent Comments

  • Dave Hannon on Comment Form Validation for WordPress
  • Hefazat on Comment Form Validation for WordPress
  • farhan on Question2Answer SEO Meta Tags
  • Dave Hannon on Question2Answer Akismet Plugin
  • mark on Question2Answer Akismet Plugin

Copyright © 2006–2025 Qcybb.com