WordPress.org

Support

Support » Plugins and Hacks » Suggestion for two reCAPTCHA field adjustments

Suggestion for two reCAPTCHA field adjustments

  • I’m using Form Manager 1.6.40 on WordPress 3.5.1 multisite. We’ve been using this plugin for about six months now and have been very pleased with it. Thanks!

    I noticed a couple of details with the reCAPTCHA that I was hoping you could look into and possibly adjust in a future version of the plugin.

    1. I noticed the textarea associated with the reCAPTCHA fields includes the rows and cols attributes/values twice. This seems to be part of the plugin’s code and not something that can be adjusted in the form setup.

    2. We’re required to load all pages containing forms over SSL. The iframe source for the reCAPTCHA is coded as http://www.google.com/recaptcha/api/noscript?k=somekeyno, which causes IE to throw those annoying messages about mixed secure and insecure content; Chrome doesn’t display the reCAPTCHA at all. Is is possible to change the source to //www.google.com/recaptcha/api/noscript?k=somekeyno, which should resolve those issues?

    http://wordpress.org/extend/plugins/wordpress-form-manager/

Viewing 6 replies - 1 through 6 (of 6 total)
  • I’ve had to go ahead and implement these revisions to the function recaptcha_get_html() in recaptchalib.php. I hope you might consider including them in an update before too long.

    define("RECAPTCHA_API_SERVER", "//www.google.com/recaptcha/api");

    function recaptcha_get_html ($pubkey, $error = null, $use_ssl = false)
    {
    	if ($pubkey == null || $pubkey == '') {
    		die ("To use reCAPTCHA you must get an API key from <a href='https://www.google.com/recaptcha/admin/create'>https://www.google.com/recaptcha/admin/create</a>");
    	}
    
    	$server = RECAPTCHA_API_SERVER;
    
            $errorpart = "";
            if ($error) {
               $errorpart = "&error=" . $error;
            }
            return '<script type="text/javascript" src="'. $server . '/challenge?k=' . $pubkey . $errorpart . '"></script>
    
    	<noscript>
      		<iframe src="'. $server . '/noscript?k=' . $pubkey . $errorpart . '" height="300" width="500" frameborder="0"></iframe><br/>
      		<textarea name="recaptcha_challenge_field"></textarea>
      		<input type="hidden" name="recaptcha_response_field" value="manual_challenge"/>
    	</noscript>';
    }
    Plugin Author hoffcamp

    @hoffcamp

    Thanks for posting this! I’ll have this in the next update.

    Thank you! And thanks again for your great work on this plugin.

    Is there any chance you could include a fix in your next release? The most recent update to Form Manager wiped out the plugin code change necessary to support reCAPTCHA over SSL. The disappearance of the reCAPTCHAs disabled a couple dozen forms on our main multisite installation. Other users seem to be having similar problems.

    Plugin Author hoffcamp

    @hoffcamp

    I just tested & posted the changes you requested… sorry to take an eternity on this.

    You’re awesome! Thanks so much.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Suggestion for two reCAPTCHA field adjustments’ is closed to new replies.