|
CommentDefensio
Comment Defensio plugin for Mephisto
IntroductionThis plugin adds Defensio spam filtering to the comments posted against your Mephisto blog. DetailsThis plugin provides Defensio support to comments in Mephisto. It uses the Defensio module from Rick Olsen's Viking This is the first version of this plugin - as such it gets the job done, but not necessarily in the best way for eternity. The plugin hooks into the comments model and functions in the same way as the Akismet code - basically it adds a switch between the two depending on which is configured. If you have Akismet configured on your blog then this plugin will use Defensio only if configured, otherwise it will fall back to Akismet. If you have no Akismet installed and don't configure this plugin then it will have no spam protection. The behaviour is unchanged from Akismet - i.e. approving a comment will mark it as ham and unapproving a comment will mark it as spam. I have ideas about how to replace the whole spam filter bit with the Viking style abstraction, along with displaying the statistics within Mephisto, but this does the job for now! RequirementsMephisto Edge (the latest stable 0.7.3 release does not have support for Mephisto plugins) Users of the latest 0.8.0 trunk may need to add: require 'mephisto' To the top of the mephisto_init.rb initializer. Install and UsageThe source code is available on our Google Code repository: http://thewebfellas-on-mephisto.googlecode.com/svn/mephisto_comment_defensio/trunk/ Install the plugin and use the install procedure if necessary to add the additional table field: script/runner 'Mephisto::Plugins::CommentDefensio.install' Don't forget to specify your environment if necessary (-e switch) Configure your API key through the Mephisto plugin administration page in Mephisto. If you are one of the few (if any!) that downloaded it when first released (v0.1) then I have updated it to also store the spaminess level in preperation for future features. Before updating your code to v0.2 then make sure you add the spam_spaminess column to the "contents" and "content_versions" tables in your database. |
Sign in to add a comment
I tried to install in on my edge mephisto version but I kept getting:
I guess I'm doing something wrong ?
/var/www/rails/zeroaccess/lib/mephisto/plugin.rb:14: undefined method `expiring_attr_reader' for #<Class:0xb77aef4c> (NoMethodError?)
Hello
Looks like 'expiring_attr_reader' is a different plugin.
What method did you use to install? Was it a fresh install of Mephisto or a pre-existing version? Did you add just the Defensio plugin or more than that at the same time?
I'll move your comment over as an 'issue' so we can work it through - so please respond over in the Issues tab..
Thanks