diff options
author | Starla Insigna <hatkirby@fourisland.com> | 2010-03-12 21:46:15 -0500 |
---|---|---|
committer | Starla Insigna <hatkirby@fourisland.com> | 2010-03-12 21:46:15 -0500 |
commit | 3b2e04f16a595893e8736a9b816bad81ecc8bf6a (patch) | |
tree | 61449c358aa11efb776f8415a261bf712217c80e /theme | |
parent | 78570eed305682021c1791b1f44ca9235cfcb9ac (diff) | |
download | fourisland-3b2e04f16a595893e8736a9b816bad81ecc8bf6a.tar.gz fourisland-3b2e04f16a595893e8736a9b816bad81ecc8bf6a.tar.bz2 fourisland-3b2e04f16a595893e8736a9b816bad81ecc8bf6a.zip |
Added working CAPTCHA
After a little digging, it turned out that the reason that reCAPTCHA always failed was because the reCAPTCHA server was blocked to the server. This should've been obvious as the reCAPTCHA always worked on the development server.
Diffstat (limited to 'theme')
-rwxr-xr-x | theme/comments.tpl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/theme/comments.tpl b/theme/comments.tpl index 9c86009..caf2eb6 100755 --- a/theme/comments.tpl +++ b/theme/comments.tpl | |||
@@ -73,8 +73,7 @@ function postComment() | |||
73 | username: jQuery("#newComment input:text[name=username]").val(), | 73 | username: jQuery("#newComment input:text[name=username]").val(), |
74 | email: jQuery("#newComment input:text[name=email]").val(), | 74 | email: jQuery("#newComment input:text[name=email]").val(), |
75 | website: jQuery("#newComment input:text[name=website]").val(), | 75 | website: jQuery("#newComment input:text[name=website]").val(), |
76 | recaptcha_challenge_field: jQuery("#newComment input[name=recaptcha_challenge_field]").val(), | 76 | code: jQuery("#newComment input:text[name=code]").val() |
77 | recaptcha_response_field: jQuery("#newComment input[name=recaptcha_response_field]").val() | ||
78 | }), | 77 | }), |
79 | dataType: "text", | 78 | dataType: "text", |
80 | success: function(msg) { | 79 | success: function(msg) { |
@@ -110,7 +109,9 @@ function postComment() | |||
110 | <p> | 109 | <p> |
111 | Name: <input type="text" name="username" /><br /> | 110 | Name: <input type="text" name="username" /><br /> |
112 | Email: <input type="text" name="email" /><br /> | 111 | Email: <input type="text" name="email" /><br /> |
113 | Website (Optional): <input type="text" name="website" /> | 112 | Website (Optional): <input type="text" name="website" /><br /> |
113 | Security Image: <img src="/includes/securimage/securimage_show.php" alt="CAPTCHA Image" /><br /> | ||
114 | Security Code: <input type="text" name="code" /> | ||
114 | </p> | 115 | </p> |
115 | <!--END NOLOG--> | 116 | <!--END NOLOG--> |
116 | <button type="button" onclick="postComment();">Post</button> | 117 | <button type="button" onclick="postComment();">Post</button> |