Closed (won't fix)
Project:
Spam
Version:
5.x-3.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Feb 2007 at 01:59 UTC
Updated:
7 Jun 2011 at 13:57 UTC
By implementing this module as a regular input format, it would work with any module that allowed filtering of content thus taking advantage the spam module's powerful array of methods to determine whether content is spam. As to whether an input format filter could prevent posting I am not sure but it would let us at least remove the offending content and notify the admin.
I know the module supports filters but they are not input formats as far as I understand it. This would be a superior implementation, at least for some cases and would stop all the hassle of manually adapting modules to work with the spam module.
Comments
Comment #1
mcurry commentedInteresting idea! I'd like to take a crack at this, but not sure when I can get to it.
Has anyone else looked at what it would take to implement this?
Comment #2
solipsist commentedNo idea, I haven't got any responses. Perhaps my idea is totally unfeasible, if so, tell me.
Comment #3
jeremy commentedI intend a rewrite of the module soon, making it more modular instead of one monolithic module. At that time, I will look into this feature request further and see if it's possible. I've not played much with input filters so I'm currently not sure whether or not it's possible.
Comment #4
pieterdcA Drupal input format is a set of input filters.
Drupal input filters filter content when it gets shown.
(I read this in the Pro Drupal Development book and found a simular explanation on Lullabot.)
Which means that, as far as I know, you can't use an input format or filter to determine it's spam probability.
But the spam module could indeed remove the 'offending content' using an input format or filter, I think.
Comment #5
solipsist commentedPieter: Yeah I learnt that later, after I posted this. Still, an input format could work but the content would have to pass through it once. The filter could use block it all out and report the nid as containing spam. I can think of at least one way of doing it.
Comment #6
jeremy commentedThis feature is planned in an upcoming version of the module. All form input will then be able to be run through the spam filter.
Comment #7
solipsist commentedNice! Looking forward to that... no messing with modifying modules then to have them interface with the spam module. :)
Comment #8
jeremy commentedAssigning to the 5.x-3.x development branch, where it does tap into the form api. Support still needs to be added for various content types, but it no longer takes hacking the core module and utilize a simpler API.
Comment #9
jeremy commentedI would like to see this feature implemented, but it is not necessary to get us to a beta release. Marking as postponed for now, to revisit after we have a beta release, or when someone submits a patch.
Comment #10
killes@www.drop.org commentedThis would be difficult to do as the current filter system is not context aware.