plugin:authimage

authimage是用來增加留言認證機制的plugin,
訪客或是註冊會員在留言之前,必須輸入圖片中隨機顯示的字母,否則會無法完成留言。

authimage原始作者的網站:http://www.gudlyf.com/index.php?p=376
authimage下載點:http://dev.wp-plugins.org/wiki/AuthImage
本站備份的authimage下載點 (3.0版):
http://blog.mashow.tw/wp-download/authimage30.rar

安裝方式可以參考壓縮檔中的readme.txt
馬修將安裝程序說明如下:
1. 上傳壓縮檔中的authimage-inc資料夾與authimage.php到路徑”wp-content/plugins/”中
2. 更名壓縮檔中的authimage-hacks.php為my-hacks.php,並上傳至根目錄下
3. 到Wordpress後台啟用my-hacks.php,設定路徑如下:
http://您的網址/wp-admin/options-misc.php

4. 到Wordpress後台啟用authimage這個plugin
5. 修改根目錄下的wp-comments-post.php:
(1)找到:

<?php
$comment_content = trim($_POST['comment']);
?>

 

在這行底下加入一行:

<?php
$comment_code = $_POST['code']; // AuthImage
?>

 

(2)找到:

<?php
if ( '' == $comment_content ) die( __('Error: please type a comment.') );
?>

 

在這兩行底下加入:

<?php
if ( !checkAICode($comment_code) ) die( __('Error: please enter the valid authorization code.') );
?>

 

6. 修改您使用的theme目錄下的wp-comments.php:
(1)找到:

<?php
if ( $user_ID )
?>

 

在這行底下加入一段程式碼:
程式碼下載

(2)找到:

<?php
<label for="url"><abbr title="Uniform Resource Identifier" />URI</label>
?>

在這行之後加入一段程式碼:
程式碼下載

4 Responses to “plugin:authimage”

  1. [更新]WordPress更新為2.1.3 Says:

    [...] 2.修改WordPress2.1.3版中的wp-comments-post.php,以便讓之前採用的authimage留言認證plugin可以繼續運作。詳細內容請參考plugin:authimage這篇文章。如果採用的是預設的theme,那麼也要記得先修改預設的theme,要不然新版的預設theme覆蓋掉原本的預設theme之後,一些plugin的效果就看不出來了。如果要使用中文語系,也記得要修改wp-config.php。 [...]

  2. wordpress不樂格 Says:

    [...] 1     2     [...]

  3. ca95 Says:

    wp-comments-post.php 修改後無法正常顯示???

  4. Kevin Says:

    請問有authimage的example webpage嗎?
    我最近再找類似的plug-in,就怕圖形顯示的文字不清楚。

我要留言: