Hi, I'm trying to use this module in a big site which needs to have page caching enabled for all the pages, but most of the pages need to have comments. I can't put the comment's form box in another page by design. Is there a way to open the captcha form in a separate page once a user submit the comment so we can have the page caching enabled for all the other users just viewing the page and not commenting?
Thanks!

Comments

soxofaan’s picture

Title: Captcha in a separate page? » Show CAPTCHA after first submit

if I understood you correctly, this is the workflow you want:

  • visitor gets cached page, enters a comment in a form (without CAPTCHA) on that same page and hits submit/preview
  • visitors gets comment form again (and a preview of comment?), now with a CAPTCHA to fill in.

This is not possible out of the box.
With a custom module it should be possible to achieve this workflow though.

But before we take that route: have you already considered Mollom? It provides a workflow that is pretty close to what you want.

mburak’s picture

I'll try Mollom first.

Thanks!

udijw’s picture

Thanks for the Mollom idea.
To note, Mollom charges for big sites so it is not an optimal solution.

I was thinking that one way to implement this is to change the comment preview form id and then ask for CAPTCHA only on the preview form Id.

I don't even know if this is possible though, and would appreciate some pointers on how to try and attack this.

udi

soxofaan’s picture

change the comment preview form id and then ask for CAPTCHA only on the preview form Id.

Having to solve a CAPTCHA only on first preview/post is actually a built-in feature that was broken until yesterday #714414: regression: preview on comments do not respect persistence
update to the latest CVS or dev snapshot and it should be fixed

Apart from that, the workflow where you get a CAPTCHA after preview or in a second phase is technically possible too with custom coding. Some pointers:
#743056: Document how to add a CAPTCHA programmatically
#536274: Show Captcha After X Unsuccessful Attempts
However, I remember this to be a bad idea in Drupal 5: http://drupal.org/node/116050#comment-620663 . I don't know if this is still the case in Drupal 6.

udijw’s picture

@ soxofaan thanks for the pointers and for the explanation on the inners of how preview works.
I should have realized that spam bots don't actually use previews :)

udi

wundo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)