Dashboard > blojsom > ... > Available Plugins > Trackback Keyword Plugin
  blojsom Log In   View a printable version of the current page.  
  Trackback Keyword Plugin
Added by Cliffano Subagio, last edited by Cliffano Subagio on Mar 06, 2006
Labels: 
(None)

Availability

The Trackback Keyword plugin can be downloaded from the blojsom plugins download page.

Overview

Trackback Keyword plugin checks the content of trackback URL for the existence of at least one of the specified keywords which will determine whether the trackback is a spam or not. A trackback spam will then be deleted or moderated.

Changelog

v0.1 (07-03-2006): Initial release. Requires Blojsom 2.25 or later.

Build

Trackback Keyword Plugin uses Ant to build the source.

ant jar-pkg

 

Installation

Place trackbackkeywordplugin-version.jar in WEB-INF/lib directory.

In your global /WEB-INF/plugin.properties file, add the following line:

trackbackkeyword=com.mbledug.blojsom.plugin.trackback.TrackbackKeywordPlugin

 

Enable trackbackkeyword by adding this line to the individual blog's blog.properties file.

trackbackkeyword-enabled=true

 

Add plugin-trackbackkeyword init param to Blojsom servlet.

<servlet>
  <servlet-name>blojsom</servlet-name>
  <servlet-class>org.blojsom.servlet.BlojsomServlet</servlet-class>
  ...
  <init-param>
    <param-name>plugin-trackbackkeyword</param-name>
    <param-value>trackbackkeyword.properties</param-value>
  </init-param>
  ...
</servlet>

 

Place the trackbackkeyword.properties file in the respective /WEB-INF/blog-id directory. It should contain the following properties:

keywords=yourdomain,yourfirstname,yoursurname,otherkeyword1,otherkeyword2
action-spamsuspect=moderate

Configure the keywords property values (usually trackback page has a link back to your blog, or a mention of your name, your blog name, etc), and action-spamsuspect property value can either be moderate or delete which will determine whether the suspected trackback spam will be moderated or deleted.
 

Usage

Make sure the template that displays your trackback entries checks for the existence and value of BLOJSOM_TRACKBACK_MODERATION_PLUGIN_APPROVED

#foreach ($entryTrackback in $entry.getTrackbacks())
#if (!$entryTrackback.getMetaData().get('BLOJSOM_TRACKBACK_MODERATION_PLUGIN_APPROVED') || $entryTrackback.getMetaData().get('BLOJSOM_TRACKBACK_MODERATION_PLUGIN_APPROVED') == 'true')
...
#end
#end

 

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators