Akismet Plugin

Akismet Plugin

This plugin uses the Akismet service to filter comment spam.

Installation

./script/plugin install akismet

You will need to add the key and site to your config/config.php file like:

    define('AK_AKISMET_API_KEY', 'here the key you can get at wordpress.org (signup and say you just want the just the key)');
    define('AK_AKISMET_SITE_URL', 'http://the-url-you-signed-up-for');

Using the plugin

Your controllers will now have an “akismet_helper” instance available with these methods:

  • $this→akismet_helper→isSpam($comment_content, $options)
  • $this→akismet_helper→reportSpam($comment_content, $options)
  • $this→akismet_helper→reportHam($comment_content, $options)

where $options can be:

Your application “home page”..

  • user_ip (required. Defaults to AK_REMOTE_IP)

IP address of the comment submitter.

  • user_agent (required. Defaults to $_SERVER['HTTP_USER_AGENT'].)

User agent information.

  • referrer (note spelling. Defaults to $_SERVER['HTTP_REFERER'].)

The content of the HTTP_REFERER header should be sent here.

  • permalink (Defaults to AK_URL.)

The permanent location of the entry the comment was submitted to.

  • comment_type (Defaults to comment)

May be blank, comment, trackback, pingback, or a made up value like “registration”.

  • comment_author or author

Submitted name with the comment

  • comment_author_email or email

Submitted email address

  • comment_author_url or author_url

Commenter URL.

 
akismet.txt · Last modified: 2008/04/14 16:13 by thijs
 

The Akelos Framework was created by Bermi Ferrer and other contributors.
Potions of the code and documentation have been ported from Ruby on Rails.

The Akelos Framework is released under the LGPL license.

"Akelos", "Akelos Framework", and the Akelos logo are trademarks of Bermi Labs All rights reserved.

Wiki driven by DokuWiki