Recent Topics

1 May 04, 2006 23:57    

Hi,

I try to install the akismet plugin I found here: http://manual.b2evolution.net/Plugins/akismet_plugin Is this plugin compatible with Dawn? It doesn't work here. What do I have to do? Now, I put the file _akismet.plugin.php in the plugins directory, but I can't edit anything in the settings->plugins tab in the admin panel of my b2evo install. Am I wrong this way? Thanks!

2 May 05, 2006 09:12

The Askimet plugin is for the Phoenix version which is the next release, and as such it does not work with the Dawn version.

¥

3 May 05, 2006 20:00

¥åßßå is right and I've just added a note on the wiki page.

4 Nov 29, 2010 14:12

I am curious whether thus plugin is working correctly with b2evo 3.3.3, I have reasons to believe it does not have any impact at all, because my levels of spam comments are rather high even after I enable this plugin.

I decided to explore the issue and see what I can find. I came to the conclusion that the plugin is not invoked at all.

I enabled the debug-mode in the config file and looked at the output.

  • On my site, the Akismet plugin ID is 37

  • The plugins section of the debug output says: "Registered plugin IDs: 10, 12, 18"

  • The event that is fired when the basic_antispam plugin is called is FilterCommentContent, as seen here:

  • 
    Calling basic_antispam_plugin(#12)->FilterCommentContent( )
    Calling code_highlight_plugin(#18)->FilterCommentContent( )
    
    I expect that the Akismet plugin should be called somewhere in that neighborhood
  • The code of the [url=http://evocms-plugins.svn.sourceforge.net/viewvc/evocms-plugins/akismet_plugin/trunk/_akismet.plugin.php?revision=1074&view=markup]Akismet plugin[/url] does not have any reference to FilterCommentContent.

  • The debug output has no reference to "Akismet" at all.

  • Akismet's config says that it is hooked into GetSpamKarmaForComment, but there is no reference to this in the debug output either.

  • [/list:u] I was expecting that somewhere in the code there would be a place where the plugin indicates which events it wants to hook into - but that is not the case. Can someone describe their experience with the Akismet plugin?

5 Nov 30, 2010 22:10

From looking at the source of b2evo HEAD, there's still the GetSpamKarmaForComment hook, which should get called when inserting a comment to the database.

I have installed it on the test server (stable/3.3), so you might test it from there (http://test.b2evo.net/).
Make sure that it is enabled (it requires a API key).

Then, it should show up in the debug log if a new comment gets inserted; make sure that you see the DB debuglog (queries), where you can see when a comment was inserted.
It might be that a redirect is taking place after insertion.

6 Dec 02, 2010 14:20

Then, it should show up in the debug log if a new comment gets inserted; make sure that you see the DB debuglog (queries), where you can see when a comment was inserted.

That's what I was doing, but there is no reference to GetSpamKarmaForComment

I uploaded the entire debug output here, for reference: http://pastebin.com/JqZzpEMT

I am under the impression that the debug output is not complete, I was unable to find GetSpamKarmaForComment, so I looked for INSERT or UPDATE statements (trying to see what ends up going into the SQL queries).

There's just one UPDATE and one INSERT statement, and none of them contains the comment itself.

I then looked in the advanced config file again - found nothing related to a DB-specific log.

Am I missing something?

Perhaps something is wrong with the config? These are the settings I am using: http://img204.imageshack.us/img204/7990/b2evoakismetconf.png (the API key is masked, but in practice I use one that is assigned to my domain).

I tried http://test.b2evo.net, but there are problems with that:
- there is an error: "Plugin class file [plugins/_akismet.plugin.php] is not readable!" (is it because the b2evo setup was reset?)
- my API key would not work, because Akismet checks if the key corresponds to the domain from which the request came. (although it still has sense - at least I'd be able to see that Akismet rejects the request; whereas in my case- apparently nothing is happening at all).

So now my question is - if I don't see the expected data in the log, where else must I enable something?

7 Dec 15, 2010 01:29

Looking at the plugin settings, have you checked the "Skip above/below" settings?

There are other settings, too, like if it should apply for registered users.

I have just tested it on test.b2evo.net for the HEAD variant (using my private API key, which worked), and it said in the Debuglog "Skipping GetSpamKarmaForComment check, because we do not apply here. " (I was logged in)

Also, there is a redirect after the comment is being posted, therefore this is in the first Debuglog section.

SQL queries are only being displayed for the final request (after the redirect), therefore there's no INSERT (for the comment).

8 Dec 15, 2010 01:32

I tried http://test.b2evo.net, but there are problems with that:
- there is an error: "Plugin class file [plugins/_akismet.plugin.php] is not readable!" (is it because the b2evo setup was reset?)

Have you used the HEAD variant? (it is the only one with the plugin being installable) - you probably have installed it then before the reset?!
It should work, and also your API key should work there (probably).


Form is loading...