Add reCAPTCHA in MovableType 4.1

| 1 Comment | 1 TrackBack

reCAPTCHA is better than MT native captcha image. reCAPTCHA is not only the a program that can tell whether its user is a human or a computer, but also let users help to recognize the scanned document. More details about the theory of reCAPTCHA.

MovableType 4.1 has an native CAPTCHA tool. It also has an extra plugin of reCAPTCHA.
Let me show you how to install and enable it.

1) Register an account at reCAPTCHA.

2) Add domain, all sub-domain will works under it.

3) Get public key and private key.

4) Copy the reCaptcha folder from /your MT folder/extras/examples/plugins/ to /your MT folder/plugins/ directory

5) Choose reCaptcha as the blog's captcha provider
Blog name > preferences > blog settings > comment

6) Save public key and private key into settings.
Blog name > preferences > plugins

7) Edit Comment Form template, so it renders MTCaptchaFields unconditionally. In practice, this means replacing these lines
<MTIfNonEmpty tag="MTCaptchaFields">
<MTIfCommentsAccepted><MTIfRegistrationAllowed><MTElse><$MTCaptchaFields$></MTIfRegistrationAllowed></MTIfCommentsAccepted>
<div id="comments-open-captcha">
</div>
</MTIfNonEmpty>
to these lines:
<MTIfNonEmpty tag="MTCaptchaFields">
<div id="comments-open-captcha">
<$MTCaptchaFields$>
</div>
</MTIfNonEmpty>

8) Edit Javascipt index template, to remove these lines of code which calls delayShowCaptcha:
<MTIfNonEmpty tag="MTCaptchaFields">
captcha_timer = setInterval('delayShowCaptcha()', 1000);
</MTIfNonEmpty>

9) Rebuild index and individual entry archive and page archive.


Related Articles

1 TrackBack

TrackBack URL: http://www.yinfor.com/mtcgi/mt-t-1010.cgi/2093

reCAPTCHA導入 from BOB'S YOUR UNCLE BLOG(仮) on April 4, 2008 4:19 AM

コメントは欲しいけどスパムが怖い......。 ってことで、reCAPTCHA... Read More

1 Comment

Thanks for the directions. Worked like a champ!

Leave a comment

About this Entry

This page contains a single entry by David Yin published on March 10, 2008 4:14 PM.

Google SSL certificate is expired was the previous entry in this blog.

Zenphoto One-Click! is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

OpenID accepted here Learn more about OpenID
Powered by Movable Type 4.21-en

Online Tools