====== Bunny’s Technorati Tags プラグインカスタマイズ ====== [[http://dev.wp-plugins.org/wiki/BunnysTechnoratiTags|Bunny’s Technorati Tags]] を使用して、ブログに [[wp>Technorati]] タグを表示。ついでに日本語の対応。 ===== カスタマイズ方法 ===== - まず [[http://dev.wp-plugins.org/wiki/BunnysTechnoratiTags|Bunny’s Technorati Tags]] をダウンロードしてインストール。 - プラグインがインストールできたら、記事投稿ページに入力欄がでてくるので、そこにタグを入力する。 - syle.cssに以下を追加。画像はimagesフォルダの中に最初から入ってる。 .technorati_tags .technorati_tags { background:url(images/technorati_logo_small.gif) transparent left center no-repeat; padding-left:13px; } 表示はこれでOK。\\ ===== 日本語対応 ===== タグのリンク先を [[http://www.technorati.jp/|Technorati Japan]] に変更し、日本語タグに対応させる方法。 - bunny-tags.php の118行目と164行目に「technorati.com」ってなってる箇所があるので、そこを「technorati.jp」に変更。 - 同じく bunny-tags.php の118行目にある ''urlencode(urldecode($tag))'' の所を以下のように変更。 urlencode(mb_convert_encoding(urldecode($tag), "UTF-8")) ちなみに **2** の変更は [[http://wordpress.xwd.jp/|WordPress]] の文字コードが [[wp>EUC-JP]] の場合のみ必要。 == {{tag>wordpress scratch plugin}}