This is for recaptcha-wordpress-2.6.zip
Actually, I think I submitted the same code for the 2.5 version, but
that never got implemented.
Anyhow, here goes:
--- recaptcha.php.orig 2007-10-25 23:47:51.000000000 +0200
+++ recaptcha.php 2007-10-25 23:49:22.000000000 +0200
@@ -54,14 +54,17 @@
}
</script>
<noscript>
- <style type='text/css'>#submit {display:none;}</
style>
<input name="submit" type="submit" id="submit-alt"
tabindex="6" value="Submit Comment"/>
</noscript>
COMMENT_FORM;
echo $recaptcha_js_opts .
recaptcha_wp_get_html($_GET['rerror']) . $comment_string;
}
+function recaptcha_wp_head () {
+ echo "<style type='text/css'>#submit {display:none;}</style>";
+}
+add_action('wp_head', 'recaptcha_wp_head');
add_action( 'comment_form', 'recaptcha_comment_form' );
--- recaptchalib.php.orig 2007-10-25 23:47:58.000000000 +0200
+++ recaptchalib.php 2007-10-25 23:50:56.000000000 +0200
@@ -124,9 +124,9 @@
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>
+ <iframe src="'. $server . '/noscript?k=' . $pubkey .
$errorpart . '" height="300" width="500" frameborder="0"></iframe><br/
>
<textarea name="recaptcha_challenge_field" rows="3"
cols="40"></textarea>
- <input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
+ <input type="hidden" name="recaptcha_response_field"
value="manual_challenge"/>
</noscript>';
}
On Dec 11 2007, 7:33pm, "reCAPTCHA Support" < supp...@recaptcha.net>
<script type="text/javascript" src="http://eightflat.org/tracesofmartinsstate/wp-content/plugins/wp-dokuwiki/lib/exe/js.php " />Try adding a </script> as is required in HTML.
Ok, I just downloaded the latest version from here
http://recaptcha.googlecode.com/files/recaptcha-wordpress-2.7.zip and
installed it, deactivated/activated the plugin, but the problem
persists.
I also noted that the 2.7 version of the plugin claims to be version
2.6 (the header of recaptcha.php in the 2.7 zip file still says "26").
A quick check that the new code is in fact in place and working on my
page is that it now produces invalid xhtml:
http://validator.w3.org/check?uri=http%3A%2F%2Feightflat.org%2Ftracesofmartinsstate%2F2005%2F07%2F11%2Fsilva-atlas-gps-pinouts
On Jan 12, 10:25pm, "reCAPTCHA Support" <supp...@recaptcha.net>
wrote:
> About your blog, does it work if you use the non-modified version of the
> code? If it shows the bug with the unmodified version we'll be happy to take
> a look at it.
The problem is still here, with the unmodified code (recaptcha.php and
recaptchalib.php).
I'll be happy to provide more info if needed.
Thanks for the great work so far :)
best regards,
MartinG