@sprity_ die kleinen pixelmännchen sind zu kamerascheu in reply to sprity_ 22 hrs ago

Spam Karma 2 Akismet Plugin

I have updated the Spam Karma 2 Akismet Plugin that was released as BETA some months ago. I don’t want to be like all those hip web 2.0 permanent betas, so we leave this state for now. I bumped the version number of this small plugin to 2.0 and made some modifications:

  • fixed a logic error which prevented the plugin to submit some corrections to Akismet.com
  • changed some strings and default values (now checks against Akismet.com more often to give that service more to eat)
  • there is now a little readme in the php-file
  • fsockopen could produce php warnings which revealed the wordpress.com api key which was fixed, too

The location of the plugin is the same as before: sk2_akismet_plugin.zip

Make sure you have an installed Spam Karma 2.x, download the zipfile, unzip it to your wp-content/plugins/SK2/sk2_plugins directory and enter your Wordpress.com Api Key (now available for free if you sign up there and I should get money for referring people there *g*) in the Spam Karma 2 settings. Finished! Nothing more to do for you Smile
If you are upgrading, you only need to copy the sk2_akismet_plugin.php from the zip over your old one.

Have a spamless blog and a good time!

P.S.: Bug reports go into the comment section. Thanks!

P.P.S.: 156 downloads of the beta in the last 3 months. Thanks!

Update:
Version 2.1 now features the display of its own version and I have recorded 640 downloads so far Smile

Weitere Artikel, die dich vielleicht interessieren könnten:

  • Spam Karma 2 Akismet Plugin BETA BIG BIG UPDATE: This plugin is no longer BETA! The location of the zip containing the plugin did not change...
  • Spam Karma 2 Wie mir dieses Plugin entgehen konnte, ich weiß es nicht. Aber es leistet göttliches beim unauffälligen Entfernen von Spam (Kommentare...
  • Realstats Plugin Es wird langsam … noch ein bisschen herumbasteln und ich habe das perfekte Statistikplugin. Neu auf der rechten Seite: die...
  • Quickfix Del.icio.us Integrator Plugin Del.icio.us hat scheinbar schon wieder seine API umgestellt und so kann man leider nicht mehr die letzten Links per http://usernameassword@del.icio.us/api/posts/recent,...
  • Das Top Commenters Plugin wirkt Und wie es wirkt Da hatte jemand Steffi eine interessante Abendbeschäftigung und ich werde das jetzt nicht alles “re-kommentieren”, nene...
Kategorien: Wordpress Tags:
  1. 31. Januar, 2006 um 07:09 Uhr | #1

    Good job on this. Does the plugin look up Akismet while SK2 calculates the karma?

  2. 31. Januar, 2006 um 07:11 Uhr | #2

    Apparently the apostrophe in my name causes a problem with the comments on your site!

  3. 31. Januar, 2006 um 07:33 Uhr | #3

    Thanks Ajay (fixed that apostrophe error). The plugin checks the comment against Akismet after SK2 calculated the karma. You can change that behaviour by assigning different values to the “register_plugin” function call at the bottom of the php file, but the default (executed as the last plugin) should be ok for everyone.

  4. 9. März, 2006 um 02:40 Uhr | #4

    Thanks for this great plugin! I was debating which plugin to use (SK2 or Akismet) and now I can have the best of both!

  5. 5. Mai, 2006 um 20:05 Uhr | #5

    Habe jetzt das SK2 Askimet Plugin auch installiert, nachdem mir heute ein spambot durch SK2 gerutscht ist.

    Komischerweise funktionierte der Trackback nicht. Im Spamfilter haengengeblieben?

  6. 20. Mai, 2006 um 20:07 Uhr | #6

    Great work! I recently noticed that some spam gets through the “bare” SK2 plugin. I hope the last remaining few commentspams get caught by this addition !

    BTW: Nice theme. Wink

  7. 31. Mai, 2006 um 21:32 Uhr | #7

    I use Wordpress on my hosted account. I just unstalled SK2 and uploaded sk2_akismet_plugin.php to the proper directory. I do not see SK2-Askimet on the plugin screen. Is it just working automatically?

  8. 31. Mai, 2006 um 21:34 Uhr | #8

    I meant to write installed, not unstalled!

  9. 31. Mai, 2006 um 23:27 Uhr | #9

    Hello Phil, the plugin will not be listed in the normal pluginlist, but instead inside the spam karma management screen …

  10. 1. Juni, 2006 um 07:04 Uhr | #10

    Thanks. I finally figured out how to get the API key, from a Wordpress.com blog.

    I noticed that SK2 is available under both the Manage tab and the Options tab. I use Wordpress v.2.0.2

    Phil

  11. 27. Juni, 2006 um 22:55 Uhr | #11

    Are you supposed to activate the Akismet plug-in that comes with WP?

  12. 28. Juni, 2006 um 00:17 Uhr | #12

    Hello sygyzy, no you aren’t. This plugin here is a complete implementation (you may say copy) of the original plugin. The wordpress plugin api doesn’t allow for multiple plugins to classify a comment … only the last one that sees the comment decides if it’s spam or ham. Therefor this “copy” of the original was neccessary Smile

  13. 28. Juni, 2006 um 00:33 Uhr | #13

    Sebbi – Just for clarification’s sake. I upload your plugin and activate it. When I go to the plugin page in WP, I also see the Akismet plugin. I leave that deactivated. In the Spam Karma 2 options, under the plugins section, I enter my Wordpress API key. That’s it?

    How do I know it’s “working”?

  14. 28. Juni, 2006 um 01:55 Uhr | #14

    I’ve found what I think might be a bug. If I look in the approve comments section, the latest entry is clearly a SPAM trackback. So I check the box and have it run through Akismet. The red status text says “Submitted to Akismet as ham. Akismet say it’s SPAM.” After it reports that, nothing happens. It still just leaves it in the approved state.

    1. How did it get to the approved state in the first place?
    2. Barring that, how come after Akismet says it’s spam, it doesn’t get moved to moderated or the spam section?

  15. 28. Juni, 2006 um 13:00 Uhr | #15

    sygyzy, yes that’s it. You know it’s working when you hover over the karma points of a comment and you see “Akismet says it’s ok/spam”. Not all comments (those already having a pretty hight negative karma) get send to Akismet for classification, so it may not appear everywhere.

    The bug: it’s not a bug, it’s a feature. Running the Akismet check over a comment again only adds/subtracts the karma points of this check (default: 7). This may not be enough to turn the comment into spam. If you want to do that you have to click on “moderate selected”. SK2 automatically moves the marked comments to the spam section and sends a notification to Akismet that it was wrong about the comment.

    @1. You can see the reasons for the karma value if you hover (mouse over) over the points.
    @2. If other modules of SK2 decided it’s ham and gave the comment enough points, Akismets default -7 points (saying it’s spam) might not be enough. I implemented it this way because Akismet isn’t always the better choise (SK2 alone is very good in the spam fight). If you feel the Akismet check should have more to say, update its strength (general setting) to strong or supastrong Smile

  16. 28. Juni, 2006 um 21:10 Uhr | #16

    Sebbi – You are correct on all fronts. I verified it is working. Also, I found out why my spam trackbacks and comments were still marked as valid. They all came from repeat offenders and apparently due to the Snowball Effect (granularity), this awards the commetner with like 500 points. There is nothing in the world that could cancel that out!

  17. 29. Juni, 2006 um 14:59 Uhr | #17

    The “Snowball Effect” is indeed a problem if the first spam comment was identified as ham. While it never happened on my blog I imagine deleting hundreds of false-positives wouldn’t be a lot of fun. However the author of SK2 wrote something about bayesian filters and neural nets for the next version in a news update. I’m looking forward to that (in hopes it further hinders those nasty spamers out there) Smile

  18. 25. Juli, 2006 um 03:37 Uhr | #18

    Hi. I don’t have much to add to the above except… this is awesome.

    Thank you so much for the effort. Smile

  19. 26. Juli, 2006 um 06:13 Uhr | #19

    Okay, I do have one small request. Could you please add the line in so the plugin tells us what version it is? I believe you do it by adding a line like this in the variables:

    var $plugin_version = 2.1;

    Danke!

  20. 26. Juli, 2006 um 09:48 Uhr | #20

    Thank you for the request. I modified the plugin that it shows its version.

    Lately I discovered an annoying bug: SK2 does not seem to be able to recover or moderate multiple comments at once. I don’t know if my plugin causes this or if it’s a general problem of the newest SK2-release.

  21. 31. Juli, 2006 um 20:26 Uhr | #21

    The version display doesn’t quite work. Try this:

    var $plugin_version = 2.1;
    var $show_version = true;

    Note that it’s “$plugin_version” not “$version”.

    With these two lines in there, the Spam Karma 2 options page will show the version of your plugin, which is awfully handy when we’re checking for updates! Smile

    Still awesome. Much cleaner than using a whole separate WP plugin for Akismet. Thanks.

  22. Anonymous
    31. Juli, 2006 um 21:40 Uhr | #22

  23. 31. Juli, 2006 um 22:10 Uhr | #23

    Oops, something went wrong with the zipfile (two versions were packed together). I hope that I got it right this time.

    Thank you for reporting it … again Smile

  24. 2. August, 2006 um 01:53 Uhr | #24

    well, let’s give this one a try then…

  25. 10. August, 2006 um 21:41 Uhr | #25

    Been using both for a while, now I can let them work together! Thanks!

  26. 15. September, 2006 um 16:04 Uhr | #26

    Where can I get it from?

  27. 15. September, 2006 um 17:10 Uhr | #27

    The link is hidden in the text of the article Wink

  28. 20. September, 2006 um 17:46 Uhr | #28

    Maybe Im missing something but…
    Should I be keeping the Wordpress Akismet plugin active at the same time I have Spam Karma (with your plugin) active? Or should the Akismet plugin be de-activated?

  29. 20. September, 2006 um 18:10 Uhr | #29

    Hi Dave and thanks for asking!
    The original Akismet plugin (shipped with Wordpress) is not needed and it should not be activated next to an active Spam Karma installation.

    The reason i wrote this SK-plugin was because you can not have multiple cooperating spam plugins in Wordpress. This SK-plugin is escentially the original Akismet plugin rewritten to work with Spam Karma, because Spam Karma has an interface for other spam fighting mechanisms.

  30. 17. Oktober, 2006 um 20:24 Uhr | #30

    Can you please add the “subscribe to comments” plugin? So you can notify us when you have released an update. Smile

  31. 17. Oktober, 2006 um 21:27 Uhr | #31

    Hmm … last time I used that plugin nobody but some fake-adresses subscribed to the comments Smile … why don’t you subscribe to the RSS-Feed of the comments instead? You could use http://www.feedblitz.com/ if you want to be updated via mail Smile

  32. 6. November, 2006 um 17:07 Uhr | #32

    Yupp, you are right. Smile So I don’t need the “legacy” akismet-plugin anymore when I have installed this version? The “problem” here is: akismet overrules all decisions made by the battery of sk2-plugins. Frown

    SK2 even is not learning when akismet is enabled. And is it possible to re-add the “Recent Spam Harvest” to the dashboard? (e.g. a link to YOUR_URL/wp-admin/options-general.php?page=spamkarma2&sk2_section=spam
    ?

    Then I just need to check-out the dashboard. Smile Btw: If you don’t know the right “hook” to use, try this:

    add_action(‘activity_box_end’, ’sk2_admin_stats’Wink;

    Surely you need to code this function (not class method!)

    Well, ich komme aus Deutschland, tippe aber lieber in Englisch meine Fragen, damit andere auch was verstehen! Wink

  33. 6. November, 2006 um 17:25 Uhr | #33

    Hello Quix0r,

    I believe such a function (showing up on the dashboard) should and probably can only be handled by Spam Karma itself. But development of SK has essentially been halted for the last few months … maybe Dr Dave has lost interest in this or he thinks it’s good enough (it really is!!!) for the time being, I don’t know Smile

  34. 7. November, 2006 um 14:08 Uhr | #34

    Hmmm, I have a “legacy” (WordPress-native) anti-spam plugin here which targets on the POST request URI itself. They are up to 99.9999% like this: “POST /wp-comments-post.php” I asume here you have no sub-folders.

    My plugins inserts with a ProtoType (so JavaScript) observer an unique string into it, e.g. “wp-comments-post-xxxxxxxxxx.php”. After the POST request mod_rewrite rewrites it back to “wp-comments-post.php?cpr_code=xxxxxxxxxx by xxxxxxxxxx is “server-unique data”.

    Well, this might be a usefull plugin. So is there a tutorial or something where I can start with to code a “binding” to my legacy plugin? So when my plugin runs in SK2-mode it shall not run again in “legacy-mode”…

  35. 7. November, 2006 um 15:40 Uhr | #35

    I might not really understand what you want to do, but if you are trying to write a “plugin” for Spam Karma, please refer to the documentation (including sample code) shipped with Spam Karma.

    Nice idea, btw. I think somebody has already brought that up on the wp-hackers list. Was that you?

  36. 24. November, 2006 um 09:14 Uhr | #36

    I abandoned Akismet a while ago since this script returns quite alot of false positive for me. Akismet is a decent service but it’s surely hard to prevent data poisoning (I bet that’s on the move right now) and a DoS attack.

  37. 24. November, 2006 um 14:23 Uhr | #37

    Hello christina,

    yep … I have disabled the plugin in my installation, too. Akismet was the cause too many spams came through Spam Karmas checks. Sad, but true.

    What do you mean by DoS attack? Trough Akismet or against Akismet?

  38. 29. November, 2006 um 14:23 Uhr | #38

    @Sebbi: I have written now a “binding” – in truth it is a plug-in but it binds both legacy plug-ins together – for my plug-in. Smile Thanks for your help anyway.

  39. 12. Dezember, 2006 um 20:31 Uhr | #39

    Just thought I’d let you know that from time to time, my API key deletes itself. My guess is that every once in a while, the Akismet servers get an error and falsely reports that my key is invalid. This makes your plugin delete my saved key.

    I’ve edited your plugin for my own uses (to make it not remove my key on error), but I still thought I’d let you know. Smile

  40. 12. Dezember, 2006 um 23:52 Uhr | #40

    Thanks for the heads up. I also thought if it would be more elegant to only check the validity of the key when it changed (like the regular Akismet plugin does) and not on every view of the adminpage.

    P.S.: my API key deleted itself on the recent DNS outage of Akismet, but never before …

  41. 15. Dezember, 2006 um 19:36 Uhr | #41

    Thanks for the plugin Sebbi. I’ve recommended this to a great number of people Smile

  42. 16. Dezember, 2006 um 06:09 Uhr | #42

    I’m not that cool yet to need spam filtering. Most of that stuff comes via my blog that catches it.

  43. 11. Januar, 2007 um 12:47 Uhr | #43

    Sebbi ist schuld! Ich wussts schon immer Wink

  44. 23. Januar, 2007 um 23:05 Uhr | #44

    gracias por el plugin

  45. 24. Januar, 2007 um 13:01 Uhr | #45

    Is this plugin going to be updated for the new Akismet 2.0?

  46. 24. Januar, 2007 um 13:04 Uhr | #46

    Hello Dave,

    there is nothing new about Akismet 2.0 except the interface. The spam-checking feature of Akismet didn’t change in that update.

  47. Evie28
    15. Januar, 2010 um 07:23 Uhr | #47

    This is very great that you are sharing the good idea connecting to this post, but, I advice to use the assistance of the essay writers [Linked to: 4writers].

  48. 15. Januar, 2010 um 16:14 Uhr | #48

    Evie28 :

    This is very great that you are sharing the good idea connecting to this post, but, I advice to use the assistance of the essay writers [Linked to: 4writers].

    blabla, and I advise you not to spam my blog … thx.

  1. 31. Januar, 2006 um 05:02 Uhr | #1
  2. 4. Februar, 2006 um 16:58 Uhr | #2
  3. 5. Februar, 2006 um 01:52 Uhr | #3
  4. 5. Februar, 2006 um 21:51 Uhr | #4
  5. 7. Februar, 2006 um 11:15 Uhr | #5
  6. 8. Februar, 2006 um 18:32 Uhr | #6
  7. 15. Februar, 2006 um 23:26 Uhr | #7
  8. 24. Februar, 2006 um 23:22 Uhr | #8
  9. 11. April, 2006 um 10:43 Uhr | #9
  10. 23. April, 2006 um 06:52 Uhr | #10
  11. 11. Mai, 2006 um 17:55 Uhr | #11
  12. 20. Mai, 2006 um 19:00 Uhr | #12
  13. 21. Mai, 2006 um 10:07 Uhr | #13
  14. 22. Mai, 2006 um 07:22 Uhr | #14
  15. 23. Mai, 2006 um 06:12 Uhr | #15
  16. 23. Mai, 2006 um 18:46 Uhr | #16
  17. 24. Mai, 2006 um 12:35 Uhr | #17
  18. 25. Mai, 2006 um 14:01 Uhr | #18
  19. 27. Mai, 2006 um 19:12 Uhr | #19
  20. 30. Mai, 2006 um 17:31 Uhr | #20
  21. 31. Mai, 2006 um 01:37 Uhr | #21
  22. 8. Juni, 2006 um 15:19 Uhr | #22
  23. 19. Juni, 2006 um 16:11 Uhr | #23
  24. 19. Juni, 2006 um 23:04 Uhr | #24
  25. 22. Juni, 2006 um 15:13 Uhr | #25
  26. 22. Juni, 2006 um 17:25 Uhr | #26
  27. 7. Juli, 2006 um 16:53 Uhr | #27
  28. 9. Juli, 2006 um 02:30 Uhr | #28
  29. 19. Juli, 2006 um 18:17 Uhr | #29
  30. 5. August, 2006 um 00:08 Uhr | #30
  31. 27. August, 2006 um 16:36 Uhr | #31
  32. 27. August, 2006 um 19:48 Uhr | #32
  33. 26. September, 2006 um 13:41 Uhr | #33
  34. 25. Oktober, 2006 um 05:08 Uhr | #34
  35. 30. Oktober, 2006 um 19:41 Uhr | #35
  36. 13. November, 2006 um 01:01 Uhr | #36
  37. 13. November, 2006 um 07:33 Uhr | #37
  38. 22. November, 2006 um 13:20 Uhr | #38
  39. 4. Dezember, 2006 um 13:28 Uhr | #39
  40. 6. Dezember, 2006 um 19:53 Uhr | #40
  41. 8. Dezember, 2006 um 22:03 Uhr | #41
  42. 14. Dezember, 2006 um 00:49 Uhr | #42
  43. 16. Dezember, 2006 um 21:42 Uhr | #43
  44. 11. Januar, 2007 um 11:56 Uhr | #44
  45. 11. Januar, 2007 um 17:13 Uhr | #45
  46. 29. Januar, 2007 um 08:18 Uhr | #46
  47. 29. Januar, 2007 um 18:27 Uhr | #47
  48. 21. Januar, 2008 um 12:02 Uhr | #48
  49. 23. Januar, 2008 um 19:17 Uhr | #49
  50. 31. Januar, 2008 um 16:34 Uhr | #50
  51. 2. Februar, 2008 um 22:25 Uhr | #51
  52. 28. Februar, 2008 um 20:06 Uhr | #52
  53. 20. März, 2008 um 13:35 Uhr | #53
  54. 1. April, 2008 um 17:51 Uhr | #54
  55. 3. April, 2008 um 20:01 Uhr | #55
  56. 6. April, 2008 um 12:42 Uhr | #56
  57. 30. April, 2008 um 18:59 Uhr | #57
  58. 1. Mai, 2008 um 23:28 Uhr | #58
  59. 5. Juni, 2008 um 10:31 Uhr | #59
  60. 5. Juni, 2008 um 11:07 Uhr | #60
  61. 11. Juni, 2008 um 19:32 Uhr | #61
  62. 22. Juni, 2008 um 18:20 Uhr | #62
  63. 24. Juni, 2008 um 08:53 Uhr | #63
  64. 6. Juli, 2008 um 03:34 Uhr | #64
  65. 16. Juli, 2008 um 21:18 Uhr | #65
  66. 17. Juli, 2008 um 01:31 Uhr | #66
  67. 21. Juli, 2008 um 13:38 Uhr | #67
  68. 7. August, 2008 um 19:22 Uhr | #68
  69. 10. August, 2008 um 00:42 Uhr | #69
  70. 14. August, 2008 um 00:16 Uhr | #70
  71. 27. August, 2008 um 05:39 Uhr | #71
  72. 19. September, 2008 um 08:18 Uhr | #72
  73. 22. September, 2008 um 10:56 Uhr | #73
  74. 24. Oktober, 2008 um 06:59 Uhr | #74
  75. 21. November, 2008 um 17:53 Uhr | #75
  76. 2. Dezember, 2008 um 08:14 Uhr | #76
  77. 5. Dezember, 2008 um 17:41 Uhr | #77
  78. 31. Dezember, 2008 um 17:51 Uhr | #78
  79. 28. Januar, 2009 um 21:47 Uhr | #79
  80. 29. Januar, 2009 um 12:26 Uhr | #80
  81. 14. März, 2009 um 16:09 Uhr | #81
  82. 21. Juni, 2009 um 22:42 Uhr | #82
  83. 6. Oktober, 2009 um 16:45 Uhr | #83
  84. 8. Oktober, 2009 um 20:50 Uhr | #84
  85. 27. Oktober, 2009 um 07:09 Uhr | #85