Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Is there any way to whitelist a member if they have a post count over a specified number? With my thousands of members, some of them are getting marked as spam. My members post thousands of times and I can trust them after 25 posts, for example. Any ideas? Maybe with a flag or maybe even a batch process that i can run every week or so?
Comment | File | Size | Author |
---|---|---|---|
#11 | antispam_helper-7.x-1.0-beta1.zip | 2.83 KB | NitroPye |
#4 | antispam_helper-6.x-1.0-beta1.tar_.gz | 1.89 KB | pixture |
Comments
Comment #1
pixture CreditAttribution: pixture commentedHere's the same issue. (actually this issue is not for AntiSpam module but for Akismet module). Since AntiSpam is a successor of Akismet module, the same method should work.
Whitelist - do not check for spam if user is on whitelist
http://drupal.org/node/125671
Only the thing administer person needs to monitor the number of comments/nodes posted by authenticated users. You can create this list using the Views module. Then if the number of comments/nodes reaches the threshold number, you need to change the user's role from regular authenticated user to trusted authenticated user who can post comment/nodes without spam check.
Comment #2
z33k3r CreditAttribution: z33k3r commentedRight, that is a hands on approach. Since it is not built in, does anybody know of a recipe to create this process automation?
Comment #3
pixture CreditAttribution: pixture commentedYou can create a small module that does this user role updating during cron run using hook_cron(). All it needs to do is get the list of the users who has posted more than certain number of posts (node? comment?) and then change their role to the one that has permission to post node/comment without being checked by AntiSpam module. This is not that difficult to develop.
Comment #4
pixture CreditAttribution: pixture commentedAntiSpam Helper Module
Attached is a small AntiSpam Helper module created to do the work requested in this issue thread.
Currently it has only one helper function, which automatically upgrade the role of the user who has posted certain number of published nodes/comments to the specified trusted user role. If you create a new user role who can post nodes/comments without spam checking, you can use this helper module to automatically upgrade trustful users to the new role which does not require spam checking.
The role to be upgraded to, and the threshold number can be configured from the AntiSpam Helper module's settings page.
In the future, I will add more functions and release it as a seperate module, but for the time being I just release it as beta here at AntiSpam project page.
Comment #5
z33k3r CreditAttribution: z33k3r commentedWow! Awesome. I will have to give this ago and try-er-out tonight!
Comment #6
pixture CreditAttribution: pixture commentedPlease note that it will keep the current user role and add a new role (which is specified by the settings page).
Currently, it runs at hook_cron() but no more than once a day. Since it checks all users it may take some time if the number of users is a lot.
Let me know if you find any problems.
Comment #7
Michael-IDA CreditAttribution: Michael-IDA commentedpixture,
Any chance of updating this for D7?
Thanks,
Sam
Comment #8
JordanMagnuson CreditAttribution: JordanMagnuson commentedThis looks great! +1 for a D7 version, and an "official" module release.
Comment #9
rrswebsite CreditAttribution: rrswebsite commentedI triple that on a D7 version.
Comment #10
Everett Zufelt CreditAttribution: Everett Zufelt commentedComment #11
NitroPye CreditAttribution: NitroPye commentedDid a quick port of the module to D7. Works on our medium sized forum (3k users).
I think this should either be rolled into or turned into an official module. We wouldn't be able to use AntiSpam without it.
Comment #12
NitroPye CreditAttribution: NitroPye commentedIf I made a patch to get this helper into antispam itself could it be accepted and rolled in?
Comment #13
cfinke CreditAttribution: cfinke commentedFor what it's worth, in other implementations that I've seen where a user gets whitelisted after they get over X number of non-spam posts, spammers will post a couple dozen nonsense or innocuous comments just to hit that threshold, then they start posting blatant spam that doesn't get checked at all because they've already been whitelisted.
Comment #14
apaderno