Changeset 885 for trunk/reCaptcha
- Timestamp:
- 07/24/08 06:50:13 (1 month ago)
- Files:
-
- trunk/reCaptcha/README (modified) (3 diffs)
- trunk/reCaptcha/lib/reCaptcha.pm (modified) (1 diff)
- trunk/reCaptcha/php/init.reCaptcha.php (modified) (1 diff)
- trunk/reCaptcha/reCaptcha.pl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/reCaptcha/README
r578 r885 6 6 5. Go to Blog Settings - Comment. 7 7 6. Choose reCaptcha as the blog's captcha provider and Save. 8 7. Edit Comment Form template, so it renders MTCaptchaFields unconditionally. In practice, this means replacing these lines 8 9 MT 4.0x/4.1x users follow the step 7 and 8 and skip the step 9. 10 MT 4.2 users skip the step 7 and 8 and go to step 9. 11 12 7. [MT 4.0x/4.1x users only] Edit Comment Form template, so it renders MTCaptchaFields unconditionally. In practice, this means replacing these lines 9 13 <MTIfNonEmpty tag="MTCaptchaFields"> 10 14 <MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted> … … 18 22 </div> 19 23 </MTIfNonEmpty> 20 8. Edit Javascipt index template, to remove these lines of code which calls delayShowCaptcha:24 8. [MT 4.0x/4.1x users only] Edit Javascipt index template, to remove these lines of code which calls delayShowCaptcha: 21 25 <MTIfNonEmpty tag="MTCaptchaFields"> 22 26 captcha_timer = setInterval('delayShowCaptcha()', 1000); … … 24 28 25 29 If your install does not have these lines in JavaScript index template, these lines should be in GlobalJavaScript, which is a global system template. 26 9. Rebuild index and individual entry archives.27 30 31 9. [MT 4.2 users only] Edit Comments template module so it renders MTCaptchaFields by default. In practice, this means you replace the line below 32 <div id="comments-open-captcha"></div> 33 to this 34 <div id="comments-open-captcha"><$MTCaptchaFields$></div> 35 36 10. Rebuild index and individual entry archives. 37 trunk/reCaptcha/lib/reCaptcha.pm
r882 r885 41 41 </div> 42 42 <script type="text/javascript"> 43 var div = document.getElementById("recaptcha_script"); 44 if (commenter_name) { 45 div.style.display = "none"; 46 } else { 47 div.style.display = "block"; 43 if ( typeof(mtCaptchaVisible) != "undefined" ) 44 mtCaptchaVisible = true; 45 else if ( typeof(commenter_name) != "undefined" ) { 46 var div = document.getElementById("recaptcha_script"); 47 if (commenter_name) 48 div.style.display = "none"; 49 else 50 div.style.display = "block"; 48 51 } 49 52 </script> trunk/reCaptcha/php/init.reCaptcha.php
r884 r885 41 41 </div> 42 42 <script type=\"text/javascript\"> 43 var div = document.getElementById(\"recaptcha_script\"); 44 if (commenter_name) { 45 div.style.display = \"none\"; 46 } else { 47 div.style.display = \"block\"; 43 if ( typeof(mtCaptchaVisible) != \"undefined\" ) 44 mtCaptchaVisible = true; 45 else if ( typeof(commenter_name) != \"undefined\" ) { 46 var div = document.getElementById(\"recaptcha_script\"); 47 if (commenter_name) 48 div.style.display = \"none\"; 49 else 50 div.style.display = \"block\"; 48 51 } 49 52 </script> trunk/reCaptcha/reCaptcha.pl
r883 r885 34 34 ['recaptcha_privatekey', { Scope => 'blog' }], 35 35 ]), 36 version => '0.2 1',36 version => '0.22', 37 37 }); 38 38
