You can add your cusom filters by
onBeforeSetOutputRow method in customFunctions class (JoCo/includes/customactions.php)
If you want specify spams by a word of CSS class in each row, you should add a placeholder in tpls/indv.tpl.html and tpls/indv.tpl.compressed.html (like [+spam+]). add Akismet checks to onBeforeSetOutputRow method, it has two parameters, first parameter is comment db-row array and second is each comment tpl. you can add a new element to row array like this:
$row['spam'] = "This is spam!";
and JoCo replaces the placeholder. You can also use str_replace function directly for raplacing placeholder.
You can add a Spam view to JoCo easily by this method. A link that give you list of spams.
For this, you can add link to tpls/module.tpl.html and tpls/module.tpl/compressed.html like this:
<a href="index.php?a=112&id=[+mKey+]&spam=1">Spams</a>
and in onBeforeSetOutputRow method use IF statement like below:
if( $_GET['spam'] == 1 && Akismet does NOT recognizes it as a spam )
$tpl = "";
JoCo use contents of $tpl as final comment tpl. So if you use $tpl like above, nothing in this row will appear and output only contains spam comments.
JoCo snippet is same as module, in snippet you must create link like this:
<a href="[~[+mKey+]~]&spam=1">Spams</a>
or
<a href="[+pageUrl+]spam=1">Spams</a> [+pageUrl+] inserts normal or friendly page url with "?" or "&"
anyway It is possible to add a new method in customactions.php for Akismat and call it in onBeforeSetOutputRow and check comments IF API_KEY exist and add another method such as onBeforeCheckRow that reject comment in before processes on row to optimize speed.
What do you think?
--------------------------------------------
EDIT: You can use
onBeforeCheckRow in >= 0.9.1 version. It runs right before parse comment so in example above:
if( $_GET['spam'] == 1 )
{
if(Akismet recognizes it as a spam )
return false; // This comment is spam and will reject
else
return true; // others will print
}
It can reverse for just-spams view ...