产品详细信息
商品详情
Typecho插件_评论框验证码插件
评论框验证码插件,防止垃圾评论
●使用说明
1. 在[GeeTest官网](http://my.geetest.com/)页面申请Captcha Key(即ID)和Private Key(即Key);
2. 把插件文件夹上传到usr/plugins/目录下;
2. 进入后台,点击“激活”,并配置Key;
3. 在模板中加入显示验证码的代码,找到对应模板目录下的comments.php文件,然后在提交按钮前加入如下代码(这只是个方法,不是必须与下面代码一模一样,可以根据自己的需要做稍微的改动):
```
<?php
if(!$this->user->hasLogin()) {
GeeTest_Plugin::output();
}
?>
<div style="clear: both;margin: 15px 0;zoom: 1;">
<button id="submit-button" type="submit" class="submit"><?php _e('提交评论'); ?></button>
</div>
```
为方便大家,特提供如下key:
```
Public Key: 6d1d522f9af8576c4287bde5d1963047
Private Key: 88aa2a14010d795a3d27d9f24fec4ba6
```