[WP] User Online Plugin

ricky 在留言板問了 User Online 的外掛,這是使用 WordPress 1.5 User Online,以下為簡易的安裝說明:

Step 0.
於 GameZ 的 programming 頁面 下載檔案: WordPress 1.5 User Online;

Step 1.
修改 wp-settings.php,尋找 Table names 底下的這一行:

$wpdb->postmeta = $table_prefix . 'postmeta';

在其下一行加入:

$wpdb->useronline = $table_prefix . 'useronline';

Step 2.
放置壓縮檔裡的檔案:

useronline-install.php 放入 wp-admin 資料夾
wp-useronline.php 放入 WordPress 安裝根目錄下
useronline.php 放入 wp-content/plugins 資料夾

並在控制台啟用這個 plugin

Step 3.
於瀏覽器中瀏覽 http://你的blog網址/wp-admin/useronline-install.php
執行後看到空白的頁面表示新的 table 已在資料庫中建立

Step 4.
於 header.php 或 sidebar.php 中加入

<a href="wp-useronline.php"><?php get_useronline(); ?>

即大功告成,可將 useronline-install.php 刪除或更名。

Bookmark to del.icio.usBookmark to furlBookmark to Blinklist

3 Responses to “[WP] User Online Plugin”


  1. 呵呵,谢谢咯,好详细哦:)

  2. 是啊是啊~~真的很详细哦!~

  3. 請問一下,我安裝到Step 3.時,總是出現…
    Fatal error: [] operator not supported for strings in /home/httpd/httpdocs/wp-admin/useronline-install.php on line 14

    怎麼會這樣呢?你知道那段英文是什麼意思嗎?幫幫我好嗎?
    謝謝您~