Hi, I want to provide a comment box to encourage comments (including a name, email, subject and body field)

After posting the comment, I want to send an email verification/signup link.

Only if the user clicks the link will the comment be posted.

Kind of a double-opt-in comment system with the comment up front. This is not the same as anonymous posting.

I've written one in straight PHP before but don't know Drupal well enough yet to write it myself.

Anyone know of an existing module or code for this?

Thanks,

- Chadj

Comments

alexis’s picture

You need to understand how Drupal modules work and the hook system first but I'm sure you can get a few ideas on how comments posting is handled by looking at comment.module and intercepting some functions there.

I'd review the anonymous comment approval code and would try to add unique links, via hook_menu, to replicate the logic with emails sent.

Also, take a look at hook_form_alter, I guess that would help you to change the standard comment form if needed.

Could you share the code you've written in plain PHP? Some of us could get a few more ideas from it.

Would anybody else be interested in a module like this? Perhaps I could take a look at it in a few days.

Alexis Bellido
Ventanazul: web development and Internet business consulting shouldn't be boring

chadj’s picture

I just discovered the approval queue and it pretty much does 90% of the job exactly. I'll take your advice and start there. When I get the code done I'll post it back.

Thanks,

Chadj

samualminor’s picture

This is a great idea as I am having some problems with comments of users. Could you share it? This is what I'd like to do for I want to filter comments coming to my website.

.carey’s picture

This sounds like it would be a nice module to have.

joe4’s picture

I am also interested in this feature.

Allow anonymous comments but require a unique e-mail address. If the user adds a comment it would not post till they click the link in a e-mail that was sent.

Adoption Agency Reviews http://www.adoptionagencyratings.com

chadj’s picture

Maybe the approval queue could be modified to send a signup verification email. If the user confirms (joining) the message is posted and removed from the approval queue.

- Chadj

joe4’s picture

Does anyone want to help pay for this module with me?

------------------
Adoption Agency Reviews http://www.adoptionagencyratings.com