• Resolved Robert

    (@kinderrwindstreamnet)


    Hi,
    I really like this plugin for the WordPress Comment form because it retains the form content without submitting, spamming or trashing the comment if the No CAPTCHA fails, giving the user the opportunity to retry. It also works with comment moderation.

    Feature Requests:
    It would be more user friendly if the reCAPTCHA were rendered above the Submit Comment button with some vertical space in between so it’s obvious to the user the reCAPTCHA must be validated first.

    Second request is to display a brief in-line error message upon a failed reCAPTCHA attempt instead displaying the error on a new page, which requires pressing the back button in the web browser.

    Thanks!

    https://wordpress.org/plugins/wp-recaptcha-integration/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor podpirate

    (@podpirate)

    Thanks a lot!
    Your first Request makes total sense. I’ll include it in the next release.
    The second one wouldn’t be easy to fulfill. Showing a blank error message is the way WordPress handles incorrect form input like a missing name or email, and I can see no easy way to redirect back to a filled out comment form without taking the risk, that things might brake on certain themes.
    A different aproach would be to disable the submit button by default and re-enable it when the no-captcha is verified. I will check if this is possible.

    Plugin Contributor podpirate

    (@podpirate)

    v1.0.2 is up including the changes denoted above.
    “Disable Submit Button” is part of the plugn options and disabled be default.
    Cheers!
    j.

    Thread Starter Robert

    (@kinderrwindstreamnet)

    Showing a blank error message is the way WordPress handles incorrect form input like a missing name or email

    Right – the problem is how wp_die() operates because it displays an error on a new page. A jQuery AJAX input form event handler can intercept the Submit button action before it gets to WordPress, however some browsers may not have Javascript enabled.

    The WP Inline Comment Errors plugin is interesting because it’s a pure PHP solution that uses add_filter('wp_die_handler', "MyCustomCommentErrorHandler") to stay on the page, retain the user inputs and display user-friendly error messages. The result is an AJAX like solution.

    The plugin even has a hook for a user provided CAPTCHA. See the /examples/get-error-from-math-captcha.php file in the plugin directory.

    Using the add_filter(‘wp_die_handler’, ..) technique appears to be the ideal solution.

    Thanks

    Plugin Contributor podpirate

    (@podpirate)

    Yep, inline comment errors is interesting. Hope the developer is getting back to work on it some day, I’ve seen many PHP notices during testing. I managed to make it work with the recaptcha just by passing a WP_Error() to wp_die() instead of a string.
    It won’t do do any harm, so I’ll include it in the next release.

    BTW: There is no non-js fallback for the new google no-captcha. Firefox has hidden the disable js functionality deeply in the about:config page. Looks like non-js users will become extinct soon…

    Hi – Sorry to resurrect an old thread, but I was looking to see if it was possible to move the reCaptcha field.

    I’m using it for BuddyPress new registrations (which is helping greatly against spam users – thank you!). The problem is, my “new user” profile form is generated like this:

    1. Basic username/password fields, followed by…
    2. The reCaptcha field, followed by…
    3. Extended Profile fields (which take a LONG time to fill out)

    By the time the user gets to the bottom and submits the whole thing, they get an error message saying that the reCaptcha has timed out. If it could be moved so it’s right above the “Complete Sign Up” button, then it wouldn’t time out.

    Any chance this could be made possible in an update?? (Or is there a quick fix I can use to move it for now?)
    Thanks!!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Move reCAPTCHA above Submit Comment button’ is closed to new replies.