|
Nov
23
|
|
|
Categories: WP/WP Plugins
| Tags: WP插件
| Views: 1,291
|
之前写了一篇 非插件防垃圾评论, 用的是简单的数学等式。但是需要对主题中comments.php以及wp-comment-post.php进行修改,不太方便。于是便动手写了一个插件,不仅可以采用数学等式验证,更可以使用图片验证码。
Add an verification code when user posting a comment to keep robots away. You can use an image verification code or a math equation instead.
Robots may post lots of spam comments into your database. You can add a verification code image or a math equation to avoid this.
Features:
- You can choose a verification code image or a math equation as you wish
- You don’t need to edit any source code of WP, you just need to active the plugin
configuration panel
a verification code image
a verification math equation
the error message when invalid code was entered
Change Log:
1.0.0 Finish the basic functions
Download/Install:
http://wordpress.org/extend/plugins/verification-code-for-comments/
这篇文章来自 迷途知返(PWWANG.COM), 转载请注明出处。 版权说明


good!
Since the last upgrade, the “Verification Code Inputbox Style:” is empty by default for all new installations and I have to copy the below script into the box.
%verification% (required)
@Vinaay:I’ve re-tested the plugin before I delete the plugin options in the database. That is, I have committed a new installation, and the “Verification Code Inputbox Style:” gives a default string like this: “<p><input type=’text’ name=’%inputname%’ id=’%inputname%’ />
<label for=’%inputname%’> %verification% <small>(required)</small></label></p>” but not empty. You may use the default string I gave to run the plugin.
@Vinaay:and you must notice that the apostrophe in my comment is converted from English to Chinese form by WP. So you need to change them back
I have faced this issue in a few installations. I had even tried deactivating > deleting > re-installation and continued to get an empty box.
This time, though, it worked. Perhaps you sent me some magic.
I merely took the same steps as before but I also opened verification-code-for-comments.php and saw that the default text is available in line 142 & 143 before activating the plugin.
Mysteriously (for me), its okay now.
@Vinaay:Great that it’s okay now. I am quite sure that I have not sent you any magic. Thanks for focusing on this plugin. Any questions, keep contacting me.