Hi all,

I set up a drupal6 installation so that comments need to be approved before they're published on the website. This was a breeze.

Our client is now asking if it is possible to have a whitelist for bypassing the approval queue.
These would still be anonymous comments, as we don't want to require people going through the registration process to post feedback.
Comments would be automatically approved if a previous comment from the same username/email address was already approved.

Is there a module that does this? And if not, what would be the most drupalish way to implement such a thing?
I've read that comments would be represented as nodes in drupal7, is this something that would be easier to do on a D7 install?

Thanks in advance.

Comments

Drave Robber’s picture

To my knowledge, there isn't, although moderation modules are constantly somewhat in a flux.

Some people say this could be accomplished using Rules (I haven't checked personally).

This is one of those Wordpress features people keep asking for to be implemented in Drupal, but is your client aware that it can be bloody well exploited?

Olmo INXCO’s picture

Yes, our client is aware that this is not something bulletproof.

Since this is not a high profile website and email adresses are kept secret, we believe it will provide enough security.

I will investigate further to see how rules can be used for this and report back. Seeing how this is a D6 installation i would of course like to avoid having to write a significant amount of code... especially given the fact that this code will probably not be very easy to port to D7 (re: comments becoming nodes).

Thank you for your reply.

Olmo INXCO’s picture

We've decided to hold out until D7 before investigating this further. D7 will have comments as nodes, which would make this a lot easier to implement as a module.

Drave Robber’s picture

I started to code something like this for D6, and it seems not to be that hard at all.

If I arrive at something that works (won't happen today or tomorrow though, as I'm already in two projects), are you ready to serve as an alpha tester?

Olmo INXCO’s picture

Sorry for taking so long to respond, I have yet to set up drupal.org so it mails me replies ;-)

I am definitely willing to help test/maintain this code, just let me know how I can help!

Drave Robber’s picture

Good, I'll dig it up to see where I left it... as soon as I fix permissions on my test site – otherwise I'll be unable to test anything.

Drave Robber’s picture

A bare-bones version of this functionality has been uploaded – see Comment whitelist in my sandbox.

Works as described for me; if it does work for you, then there's a question – what administrative interface would this need? (list / manually add / manually delete / something else)

So far, the only potentially configurable option I see is whether whitelist entries should be deleted on comment deletion (because comments sometimes are deleted for reasons other than spam).

Drave Robber’s picture

Comment whitelist is now a full project, and the first -dev release was made yesterday. :)