Archive for the ‘技術文檔’ Category

WordPress Plugins 更新提示的依據

Monday, July 13th, 2009 20:32 -- by 貓小豆

簡單判斷,未查看代碼,未嚴格驗證。

一是「Plugin Name」,一是「Version」。

FCITX輸入法配置

Sunday, May 24th, 2009 18:05 -- by 貓小豆

基于網上較為流傳的配置方案,適當作些修改,權為備份。FCITX 3.6.0-rc。

(more...)

Ubuntu下Firefox的一些配置記錄

Sunday, May 24th, 2009 17:49 -- by 貓小豆

以前寫過一篇「Ubuntu中隱藏Firefox“書籤工具列”」;上次安裝Ubuntu 9.04,又整理出來一些內容,記在下面。

(more...)

WordPress Plugin - WordPress Hidden Words

Sunday, March 1st, 2009 22:54 -- by 貓小豆

昨天晚上(準確地說是今天淩晨)偷空兒寫成的一個插件,使用<hide>和</hide>標簽。作用是面向普通讀者隱藏文章中的指定内容,面向擁有文章編輯權限的讀者顯示初始文字。

Plugin Name: WordPress Hidden Words
Plugin URI: http://luckyfield.cn/?p=976
Description: This plugin helps to hide the specified words in your content.
Author: 貓小豆
Version: 1.0
Author URI: http://luckyfield.cn/

Download
WordPress Hidden Words 1.0

Shows Author Description On WordPress Sidebar

Sunday, February 22nd, 2009 23:06 -- by 貓小豆


需要修改主題Sidebar部分相關文件。核心代碼如下。

  1. < ?php
  2.     if(is_string(get_the_author_description())) { 
  3.         the_author_description();
  4.     } 
  5. ?>

我當前使用的代碼如下。

  1. < ?php if(is_string(get_the_author_description())) { ?>
  2.     <li>
  3.         <h2>Profile</h2>
  4.         <p>< ?php the_author_description(); ?></p>
  5.     </li>
  6. < ?php } ?>

(more...)