<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WordPressで企業ウェブサイト作成・商用ホームページ制作 WordPress Go Go &#187; WordPressのプラグイン</title>
	<atom:link href="http://wpgogo.com/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpgogo.com</link>
	<description>WordPressを利用して、ブログではなくCMSとして企業サイト・企業ウェブサイト作成・商用ホームページ制作のテクニックを公開。WordPressの最新ニュースやプラグインの紹介、自作プラグインやテーマも開発中。</description>
	<lastBuildDate>Tue, 09 Mar 2010 17:43:35 +0900</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ページではなく投稿でオリジナルのテンプレートを指定するプラグイン &#8211; Single Post Template</title>
		<link>http://wpgogo.com/plugin/single_post_template.html</link>
		<comments>http://wpgogo.com/plugin/single_post_template.html#comments</comments>
		<pubDate>Mon, 25 Jan 2010 09:20:06 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[テンプレート]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[投稿]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/single_post_template.html</guid>
		<description><![CDATA[
以前、投稿ごとにデザインテンプレートを変更するプラグイン – Custom Post Templateということで紹介したプラグインだが、WordPress 2.9以降ではエラーが出て使えなくなっているようだ。公式ディ [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpgogo.com/wp-content/uploads/plugin_single_post_template_1.jpg" alt="" title="plugin_single_post_template_1" width="480" height="300" class="alignnone size-full wp-image-518" /></p>
<p>以前、<a href="http://wpgogo.com/plugin/custom-post-template.html">投稿ごとにデザインテンプレートを変更するプラグイン – Custom Post Template</a>ということで紹介したプラグインだが、<del>WordPress 2.9以降ではエラーが出て使えなくなっているようだ。<a href="http://wordpress.org/extend/plugins/custom-post-template/">公式ディレクトリのCustom Post Template</a>のCompatibility（互換性）の項目を見ていただいても明らかなとおり、Brokenなようだ。</del>（追記：バージョン1.1がリリースされ、バグは解消されたようだ。）</p>
<p><span id="more-517"></span></p>
<p>そこで代わりのプラグインを探したところ、WordPress 2.9以降でも問題なく動作する<a href="http://wordpress.org/extend/plugins/single-post-template/">Single Post Template</a>というプラグインが見つかった。投稿ごとにデザインテンプレートを変更できるのは、Custom Post Templateと同じだが、テンプレートに記述する部分が少し異なる。Single Post Templateを使用して、投稿ごとオリジナルのテンプレートを指定するには、テンプレートのトップに以下のようにコメント欄を追加しよう。</p>
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showPlainTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Single Post Template: [Descriptive Template Name]</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Description: This part is optional, but helpful for describing the Post Template</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>Descriptionの項目はあってもなくてもいい。Single Post Templateの項目がテンプレートの選択肢名として表示されるので、わかりやすい名前をつけておくとよいだろう。</p>
<p><img src="http://wpgogo.com/wp-content/uploads/plugin_single_post_template_2.jpg" alt="" title="Single Post Template" width="480" height="140" class="alignnone size-full wp-image-522 link" /></p>
<p>Custom Post Templateも今後不具合が修正される可能性もあるが、とりあえず、<a href="http://wordpress.org/extend/plugins/single-post-template/">Single Post Template</a>で投稿のカスタムテンプレートの指定を乗り切ろう。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/single_post_template.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gmailに最適！SMTPサーバを変更するプラグイン &#8211; Cimy Swift SMTP</title>
		<link>http://wpgogo.com/plugin/cimy-swift-smtp.html</link>
		<comments>http://wpgogo.com/plugin/cimy-swift-smtp.html#comments</comments>
		<pubDate>Thu, 02 Apr 2009 08:32:52 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[Cimy Swift SMTP]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[変更]]></category>
		<category><![CDATA[送信サーバ]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/cimy-swift-smtp.html</guid>
		<description><![CDATA[理由あって最近、メールサーバをGoogle AppsのGmailに移した。そこでメールを送信するのに、サーバー内部のSMTPサーバは使用せず、Gmailの外部SMTPサーバを使用する必要が出てくる。デフォルトではSMTP [...]]]></description>
			<content:encoded><![CDATA[<p>理由あって最近、メールサーバをGoogle AppsのGmailに移した。そこでメールを送信するのに、サーバー内部のSMTPサーバは使用せず、Gmailの外部SMTPサーバを使用する必要が出てくる。デフォルトではSMTPサーバを変更することはできないので、<a href="http://www.marcocimmino.net/cimy-wordpress-plugins/cimy-swift-smtp/">Cimy Swift SMTP</a>というプラグインを使用する。</p>
<p><span id="more-162"></span></p>
<p>Cimy Swift SMTPプラグインのダウンロードは<a href="http://wordpress.org/extend/plugins/cimy-swift-smtp/">WordPress.orgのプラグインディレクトリ</a>から行う。プラグインのインストールは簡単で、プラグインファイルをディレクトリごとwp-content/pluginsにアップロードし、管理画面から有効化するだけだ。当然管理メニューのプラグイン新規追加から行ってもいいだろう。</p>
<p>WordPress MUを使用している場合は、<a href="http://wpmudev.org/project/wordpress-mu-cimy-swift-smtp">wordpress mu Cimy Swift SMTP</a>からダウンロードする。解凍するとmu-pluginsというディレクトリができるので、それをそのまま上書きアップロードすればよいだろう。自動的に有効化されるはずだ。</p>
<p>日本語に翻訳するほどでもないのだが、紹介ついでに日本語リソースを作成したのでよかったらダウンロードして使用してほしい。解凍してできたファイルをcimy-swift-smtp/langsディレクトリにアップロードするだけだ。</p>
<div class="cite"><a class="downloadlink" href="http://wpgogo.com/download/8" title="{version,Version ,} downloaded 502 times" >&raquo; Cimy Swift SMTP 日本語翻訳ファイルをダウンロードする (502)</a></div>
<p>設定も簡単で、下記の入力項目に入力していくだけだ。Gmail用の設定としては、SMTPサーバを、「smtp.gmail.com」、ポートを「465 (SSL/TLS/GMAIL用)」、「TLS (Gmail用)」を選択する。</p>
<p><img src="http://wordpressgogo.com/wp-content/uploads/cimy-swift-smtp1.jpg" width="468" height="552" alt="Cimy Swift SMTP" title="Cimy Swift SMTP" class="link" /></p>
<p>設定が完了したら保存し、一番下にあるテスト接続を試してほしい。インプットボックスにメールアドレスを入力し、テスト送信ボタンを押してみよう。きちんとメールが届けば設定は完了だ。</p>
<p>独自ドメインでもGoogle AppsのGmailを無料で使用できるので大変便利なのだが、WordPressでもGmailを使用したい場合はぜひCimy Swift SMTPプラグインを使用してみてほしい。（Gmailでは、自分が送信したメールをPOPで受信することが難しい。WordPressが送信したメールも普通にはPOPで受信できないのだが、この対策についてはまた別の記事にしたい。）</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/cimy-swift-smtp.html/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>投稿ごとにデザインテンプレートを変更するプラグイン &#8211; Custom Post Template</title>
		<link>http://wpgogo.com/plugin/custom-post-template.html</link>
		<comments>http://wpgogo.com/plugin/custom-post-template.html#comments</comments>
		<pubDate>Fri, 09 Jan 2009 09:28:50 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[デザイン]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[投稿]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/custom-post-template.html</guid>
		<description><![CDATA[
今回ご紹介するのは投稿ごとにデザインテンプレートを変更することができるプラグインのCustom Post Templateだ。このプラグインを使用すると、投稿編集時に使用したいテンプレートを変更できるようになる。Wor [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wordpressgogo.com/wp-content/uploads/plugin_custom_post_template_1.jpg" width="480" height="307" alt="Custom Post Template" title="Custom Post Template" class="link" /></p>
<p>今回ご紹介するのは投稿ごとにデザインテンプレートを変更することができるプラグインの<a href="http://wordpress.org/extend/plugins/custom-post-template/">Custom Post Template</a>だ。このプラグインを使用すると、投稿編集時に使用したいテンプレートを変更できるようになる。WordPressのデフォルトの機能として、カテゴリーごとやページごとにデザインを変更することはできる。まずはこのカテゴリーとページごとのデザイン変更方法を見てみよう。</p>
<p><span id="more-148"></span></p>
<h3>カテゴリー毎のデザイン変更</h3>
<p>カテゴリーごとにデザインを変更したい場合は、WordPressのテーマでcategory-カテゴリーID.phpというファイルを作ればいい。例えば、カテゴリーIDが6だったら、category-6.phpという具合だ。詳しくは<a href="http://codex.wordpress.org/Category_Templates">Codex</a>を見てほしい。その他の方法としては、プラグインを使う方法がある。<a href="http://get-your-stuff.com/gys-themed-categories-20.html">GYS Themed Categories</a>のようなプラグインを使うと管理メニューからデザインを変更できるようになる。</p>
<h3>ページ毎のデザイン変更</h3>
<p>ページごとにデザインを変更する場合は、新しいテーマファイルを作成し、以下のような文をそのファイルのトップに書き加えるといい。Snarferという部分は好きな言葉に変えるといいだろう。テーマファイルを作成すると自動的にページ編集時にテンプレートを選択できるようになる。</p>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showPlainTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Template Name: Snarfer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>投稿毎のデザイン変更</h3>
<p>投稿ごとにデザインを変更するにはWordPressのデフォルトの機能ではできないので、プラグインのCustom Post Templateを使用しよう。プラグインのダウンロードは<a href="http://wordpress.org/extend/plugins/custom-post-template/">WordPress.orgのプラグインディレクトリ</a>から行う。プラグインのインストールは簡単で、プラグインファイルをディレクトリごとwp-content/pluginsにアップロードし、管理画面から有効化するだけだ。</p>
<p>ページ毎のデザイン変更と同様、投稿のデザインを変更できるように、新しいテーマファイルを作成し（ファイル名は何でもいい、single.phpをベースにすればいいだろう）、そのファイルのトップに以下のような文を加える。ページと異なるのはPostsが加えられている点だ。間違えないようにしたい。</p>
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showPlainTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;?php</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Template Name Posts: Snarfer</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">?&gt;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>きちんとテンプレートが作成されると、投稿の編集時に以下のように投稿のデザインテンプレートを変更できるセレクトメニューが追加されているはずだ。</p>
<p><img src="http://wordpressgogo.com/wp-content/uploads/plugin_custom_post_template_2.jpg" width="464" height="114" alt="投稿デザインを変更する" title="投稿デザインを変更する" class="link" /></p>
<p>困った時のプラグイン頼み。製作者の方に感謝したい。</p>
<p>追記：Custom Post Templateは、WordPress 2.9以降では正常に動作しないようだ。代替プラグインとして、<a href="http://wpgogo.com/plugin/single_post_template.html">ページではなく投稿でオリジナルのテンプレートを指定するプラグイン – Single Post Template</a>を見てほしい。</p>
<p>追記：バージョン1.1がリリースされ、Custom Post Templateも問題なく使えるようになったようだ。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/custom-post-template.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>検索キーワードをハイライト表示するプラグイン Search Unleashed</title>
		<link>http://wpgogo.com/plugin/search-unleashed.html</link>
		<comments>http://wpgogo.com/plugin/search-unleashed.html#comments</comments>
		<pubDate>Wed, 08 Oct 2008 20:20:43 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[Seach-Unleashed]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ハイライト]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[検索]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/search-unleashed.html</guid>
		<description><![CDATA[検索キーワードをハイライト表示することで、ユーザーが探している箇所が一目でわかるWordPressのプラグイン、Search Unleashedを紹介する。]]></description>
			<content:encoded><![CDATA[<p><img src="http://wordpressgogo.com/wp-content/uploads/search-unleashed1.jpg" width="400" height="380" alt="検索キーワードハイライト表示プラグイン" title="検索キーワードハイライト表示プラグイン" class="link" /></p>
<p>検索キーワードをハイライト表示するプラグインとして、以前に<a href="http://wordpressgogo.com/plugin/plugin_search_word_highlight.html">検索語をハイライト表示するプラグイン Search Word Highlight for Mutibyte</a>というプラグインを紹介しているが、WordPress 2.6系（2.5以降かも）では正常に動作しなくなっている。Search Word Highlight for Mutibyteをデフォルトで使う分には問題なく使えるようだが、CSSの設定変更など、オプションを更新すると動作しなくなる。</p>
<p>そこで、検索キーワードをハイライト表示するプラグインとして新たに<a href="http://urbangiraffe.com/plugins/search-unleashed/">Search Unleashed</a>というプラグインを紹介したい。Search UnleashedはWordPressの標準の検索機能を拡張し、ワイルドカード、論理演算によるフルテキストサーチ、投稿・ページ・コメント・タイトル・URL・メタデータのハイライト表示を可能にする。Search Unleashedは他のプラグインが追加したものを含めてすべてのデータを検索してくれるようだ。このプラグインの特徴は以下のとおり。</p>
<ul>
<li>ワイルドカード・論理演算によるフルテキスト検索</li>
<li>投稿、ページ、コメント、タイトル、URL、タグ、メタデータを検索</li>
<li>プラグインによって実行された後のデータを検索</li>
<li>タイトルやコメントを含めて、すべての検索をハイライト表示</li>
<li>Google、Yahoo、MSN、Altavista、Baidu、Sogouからの検索をハイライト表示</li>
<li>サーチキーワードを記録するログ機能</li>
<li>特定の投稿やページを検索結果から排除</li>
<li>WP-Cacheとの互換性</li>
<li>WordPress 2.0以降サポート</li>
<li>テーマの変更は必要なし</li>
</ul>
<h3>ダウンロード・インストール</h3>
<p><a href="http://urbangiraffe.com/plugins/search-unleashed/"><img src="http://wordpressgogo.com/wp-content/uploads/search-unleashed2.jpg" width="300" height="260" alt="Search Unleashed - Advanced WordPress searches with highlighting | Urban Giraffe" title="Search Unleashed - Advanced WordPress searches with highlighting | Urban Giraffe" class="link" /></a></p>
<p>Search Unleashedのダウンロードは<a href="http://urbangiraffe.com/plugins/search-unleashed/">プラグインページ</a>（インストールの項目のところ）か、<a href="http://wordpress.org/extend/plugins/search-unleashed/">WordPressのプラグインディレクトリ</a>から行える。インストールは簡単でダウンロードした圧縮ファイルを解凍し、search-unleashedディレクトリを/wp-content/pluginsディレクトリにアップロードし、WordPressの管理メニューより有効化するだけだ。Search Unleashedの各種設定は管理メニューの管理 - Search Unleashedより行う。</p>
<h3>日本語翻訳ファイル</h3>
<p>Search Unleashedの日本語化はまだどなたも行っていなかったようなので、日本語翻訳ファイルを作成してみたのでもしよかったら使ってみてほしい。翻訳ファイルはsearch-unleashed/localeディレクトリにアップロードする。製作者の方に連絡してみるので、今後もしかしたら日本語翻訳ファイルも同梱されるかもしれない。</p>
<div class="cite"><a class="downloadlink" href="http://wpgogo.com/download/6" title="{version,Version ,} downloaded 703 times" >&raquo; Seach Unleashed 日本語翻訳ファイルをダウンロードする (703)</a></div>
<h3>使い方</h3>
<p>Search Unleashedのオプションは管理メニューの管理 - Search Unleashedより行う。オプションページを開くと下記のようなかわいらしい猫（？）が出迎えてくれるはずだ。プラグインを初めてインストールしたときは、インデックスを作成する必要がある。一番下のボタンの「投稿を再インデックスするを」押してほしい。そのページのメニュー下の「検索インデックスに○○アイテムあります」、と表示されれば準備完了だ。
<p><img src="http://wordpressgogo.com/wp-content/uploads/search-unleashed3.jpg" width="400" height="407" alt="オプション画面" title="オプション画面" class="link" /></p>
<p>Search Unleashedのオプション項目は以下の４つ。</p>
<ul>
<li>検索インデックス - 上の画面。インデックスの構築を行う</li>
<li>ログ - 検索キーワードのログ</li>
<li>モジュール - 検索対象を選べる</li>
<li>オプション - 特定のページの除外や検索スタイルを指定</li>
</ul>
<p><img src="http://wordpressgogo.com/wp-content/uploads/search-unleashed4.jpg" width="400" height="317" alt="オプション画面" title="オプション画面" class="link" /></p>
<p>ちなみに、オプションにあるプラグインサポートにチェックを入れると、猫と寄付のリンクが消え、検索に複数候補ある場合に表示されていたサポートリンクが消える。（寄付してあげると喜んでもらえるだろう）</p>
<p>検索キーワードをハイライト表示するプラグインであるSearch Unleashedを紹介したが、Search Word Highlight for Mutibyteにお困りの方はユーザーの利便性を考えて導入してみたらどうだろうか。少し使ってみて一点気になるのは、検索エンジンから入ってきた場合、全角スペースで区切られたキーワードが分割して認識されないということである（内部検索ではマルチバイト関連のプラグインによってきちんと分割される）。この問題についてはまた考えてみようと思う。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/search-unleashed.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>サイドバーのコメント表示プラグイン Get Recent Comments</title>
		<link>http://wpgogo.com/plugin/plugin_get_recent_comments.html</link>
		<comments>http://wpgogo.com/plugin/plugin_get_recent_comments.html#comments</comments>
		<pubDate>Thu, 14 Aug 2008 02:02:58 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[get-recent-comments]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[ウィジェット]]></category>
		<category><![CDATA[コメント]]></category>
		<category><![CDATA[サイドバー]]></category>
		<category><![CDATA[トラックバック]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_get_recent_comments.html</guid>
		<description><![CDATA[Get Recent Commentsというサイドバーにコメントやトラックバックを表示するWordPressのプラグインを紹介する。Get Recent Commentsの文字化けを修正する方法も紹介。最近のコメントやトラックバックはWordPressのプラグインGet Recent Commentsで。]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.jodies.de/archiv/2004/11/13/recent-comments/"><img src="http://wordpressgogo.com/wp-content/uploads/plugin_get_recent_comments1.jpg" width="250" height="188" alt="WordPress Plugin: Get Recent Comments at Bitte keine heiße Asche einwerfen" title="WordPress Plugin: Get Recent Comments at Bitte keine heiße Asche einwerfen" class="link" /><br />WordPress Plugin: Get Recent Comments at Bitte keine heiße Asche einwerfen</a></p>
<p>サイドバーにウィジェット（Widget）でコメントを表示するプラグイン（plugin）として、古くから存在している<strong>Get Recent Comments</strong>を紹介したい。WordPressのデフォルトでもウィジェットに最近のコメントを表示することはできる。しかし、コメントとトラックバックを分けて表示することはできないし、最近のコメントを最大でも15件までしか表示できない。</p>
<p>Get Recent Commentsというこのプラグインを使用するとコメントとトラックバックを分けて表示できるし、表示項目を自由に変更もできるようになる。大変便利なコメント表示プラグインなのでブログではぜひ使用したいところだが、デフォルトでは文字化けが発生したり、ウィジェットの更新時にタイトルがおかしくなる、などの問題がある。ここではGet Recent Commentsの修正方法とともに導入の仕方を見ていきたい。</p>
<p><span id="more-116"></span></p>
<p><strong>ダウンロード</strong><br />
まずはGet Recent Commentsを入手しよう。<a href="http://wordpress.org/extend/plugins/get-recent-comments/">ダウンロードはWordPressのプラグインディレクトリ</a>から行える。最新バージョンは2.0.2でWordPress 2.3以上を使用している場合はこの最新バージョンを使用すればいい。ダウンロードが済んだら、圧縮ファイルを解凍してget-recent-commentsディレクトリにある、get-recent-comments.phpを編集しよう。編集箇所は以下の2点だ。</p>
<p><strong>文字化けの修正</strong><br />
デフォルトのコードのままだと、Get Recent Commentsはマルチバイトの文字をきちんとカウントできないためにコメントの文字数によっては文字化けしてしまう。これを回避する方法が1487行目あたりにある下記のkjgrc_excerptという関数を変更する（参照：<a href="http://fish1091.com/wordpress/archives/378">Recent Commentsの修正 - Binsan's Cafe</a>）。どこを変更しているかというと、if (strlen($text) > $length) {の後に分岐を加えている。mb_strimwidthという関数があれば、マルチバイトの文字数でコメントを丸めて文字化けなく表示してくれるようになる、というものだ。（文字化けがこれだけでは直らないかもしれない。<a href="http://wordpressgogo.com/plugin/plugin_get_recent_comments.html">Get Recent Comments を日本語対応</a>も参照してほしい）</p>
<div class="igBar"><span id="lphp-7"><a href="#" onclick="javascript:showPlainTxt('php-7'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-7">
<div class="php">
<ol start="1487">
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> kjgrc_excerpt <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#0000FF;">$chars_per_comment</span>,<span style="color:#0000FF;">$chars_per_word</span>,<span style="color:#0000FF;">$tag</span>,<span style="color:#0000FF;">$output</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$length</span> = <a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/str_replace"><span style="color:#000066;">str_replace</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$tag</span>,<span style="color:#FF0000;">""</span>,<a href="http://www.php.net/strip_tags"><span style="color:#000066;">strip_tags</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$output</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$length</span> = <span style="color:#0000FF;">$chars_per_comment</span> - <span style="color:#0000FF;">$length</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$length</span> = <span style="color:#0000FF;">$length</span> -<span style="color:#CC66CC;color:#800000;">2</span>; <span style="color:#FF9933; font-style:italic;">// we will add three dots at the end</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$length</span> &lt;<span style="color:#CC66CC;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#0000FF;">$length</span> = <span style="color:#CC66CC;color:#800000;">0</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt; <span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/function_exists"><span style="color:#000066;">function_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'mb_strimwidth'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <a href="http://www.php.net/mb_strimwidth"><span style="color:#000066;">mb_strimwidth</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>, <span style="color:#CC66CC;color:#800000;">0</span>, <span style="color:#0000FF;">$chars_per_comment</span>, <span style="color:#FF0000;">'...'</span>, <span style="color:#FF0000;">'utf-8'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#CC66CC;color:#800000;">0</span>,<span style="color:#0000FF;">$length</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#CC66CC;color:#800000;">0</span>,<a href="http://www.php.net/strrpos"><span style="color:#000066;">strrpos</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#FF0000;">' '</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">// last word exceeds max word length:</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#40;</span><a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span><span style="color:#006600; font-weight:bold;">&#41;</span> - <a href="http://www.php.net/strrpos"><span style="color:#000066;">strrpos</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#FF0000;">' '</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>&gt; <span style="color:#0000FF;">$chars_per_word</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <a href="http://www.php.net/substr"><span style="color:#000066;">substr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span>,<span style="color:#CC66CC;color:#800000;">0</span>,<a href="http://www.php.net/strlen"><span style="color:#000066;">strlen</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$text</span><span style="color:#006600; font-weight:bold;">&#41;</span>-<span style="color:#CC66CC;color:#800000;">3</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$text</span> = <span style="color:#0000FF;">$text</span> . <span style="color:#FF0000;">"..."</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#008000; font-style:italic;">#$text = &quot;[EXCERPT]: '$text'&quot;;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> <span style="color:#FF0000;">"$text"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>ウィジェットの更新時、%BEG_OF_TITLE%Recent Comments%END_OF_TITLE%となる不具合</strong><br />
上記の文字化けの問題に加えて、キャッシュを使用している（デフォルトの設定）と、ウィジェットの更新時にコメントのタイトルが、%BEG_OF_TITLE%Recent Comments%END_OF_TITLE%のように表示されてしまうという不具合がある。これはキャッシュを使用しないように設定するか、Get Recent Commentsの設定を更新するとタイトルが正常に表示されるようになる。</p>
<p>Get Recent Commentsの設定にあるMiscellaneous Optionsにてキャッシュを使用しないように設定すればウィジェットの更新時にタイトルがおかしくなることはなくなるが、キャッシュは利用したいところだ。そこで、なんとかする方法を下記に示す。691行目あたりにあるkjgrc_use_cacheという関数に1行加えてある。ウィジェットの更新時にはキャッシュを使用しないという処理を加えている。</p>
<div class="igBar"><span id="lphp-8"><a href="#" onclick="javascript:showPlainTxt('php-8'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-8">
<div class="php">
<ol start="691">
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> kjgrc_use_cache<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/strstr"><span style="color:#000066;">strstr</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'REQUEST_URI'</span><span style="color:#006600; font-weight:bold;">&#93;</span>, <span style="color:#FF0000;">'wp-admin/widgets.php'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#616100;">return</span> <span style="color:#CC66CC;color:#800000;">0</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; add_option<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'kjgrc_use_cache'</span>,<span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">return</span> get_option<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"kjgrc_use_cache"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p><strong>使用方法</strong><br />
上記2点の修正が済んだら、wp-content/pluginsディレクトリにファイルをアップロードして有効化しよう。サイドバーに最近のコメントやトラックバックをウィジェットで表示する場合は、管理メニューのテーマにあるウィジェットを表示し、Get Recent CommentsまたはGet Recent Trackbacksを追加しよう。タイトルは自由に変更してほしい。以上でサイドバーにコメントがきちんと表示されるようになるはずだ。</p>
<p><strong>設定項目</strong><br />
管理メニューの設定にあるRecent Commentsで各種設定を行うことができる（余談だが、Lighter Menusという管理メニューをドロップダウン形式で表示するプラグインを使用し、サブメニューを表示しないように設定していると設定項目のリンクが表示されないので注意したい）。コメントやトラックバックの設定では、表示数、コメント文字数を決めたり、マクロで表示形式を自由に設定できたりする。またコメントを表示しないカテゴリを指定したり、アバターの設定ができる。詳細なヘルプがついているので参照するとよいだろう。なお、サイドバーにウィジェットを使用しない場合には、ヘルプにあるコードを参考に直接sidebar.phpに書けばよいだろう。</p>
<p><img src="http://wordpressgogo.com/wp-content/uploads/plugin_get_recent_comments2.jpg" width="500" height="375" alt="Get Recent Comments 設定画面" title="Get Recent Comments 設定画面" class="link" /></p>
<p>今回は、最近のコメントやトラックバックをサイドバーに表示するのに最適なプラグインであるGet Recent Commentsというプラグインを紹介した。2点ほど修正が必要だが、大変便利なプラグインなのでブログの運営にはかかせないプラグインだろう。是非参考にしてほしい。</p>
<p>追記：最新版の2.0.6ではマルチバイト対応がなされているので、上記の修正を加える必要はないだろう。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_get_recent_comments.html/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>高機能アクセス解析プラグインWP-SlimStat-Ex v2.0リリース</title>
		<link>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_20.html</link>
		<comments>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_20.html#comments</comments>
		<pubDate>Sat, 02 Aug 2008 13:41:34 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-slimstat-ex]]></category>
		<category><![CDATA[アクセス解析]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[解析]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_wp_slimstat_ex_20.html</guid>
		<description><![CDATA[082NeT  &#187; Blog Archive   &#187; WP-SlimStat-Ex v2.0
Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Exという記事で紹介した高機能 [...]]]></description>
			<content:encoded><![CDATA[<div class="cite"><a href="http://082net.com/2008/864/wp-slimstat-ex-v20/">082NeT  &raquo; Blog Archive   &raquo; WP-SlimStat-Ex v2.0</a></div>
<p><a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex.html">Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Ex</a>という記事で紹介した高機能アクセス解析プラグインのWP-SlimStat-Exだが、WordPress 2.5以降で新規インストールでつまずくということで、<a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html">WP-SlimStat-ExプラグインをWordPress 2.5で新規インストールする方法</a>、<a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25_2.html">WP-SlimStat-ExプラグインをWordPress 2.5で新規インストールする方法その２</a>で対策を講じてきたわけだが、ようやく新バージョンのWP-SlimStat-Ex 2.0がリリースした。<a href="http://082net.com/2008/864/wp-slimstat-ex-v20/">ダウンロードはこちらから</a>。このバージョンをインストールするにはWordPress 2.5以上が必要となるので注意してほしい。</p>
<p><span id="more-113"></span></p>
<p><strong>WP-SlimStat-Ex v2.0の変更点は以下のとおり。</strong></p>
<ul>
<li>より多くのウェブブラウザ・ボットのサポート</li>
<li>PHP 5.0.0以上でCurlをサポートしている場合、curlのマルチコネクションでGeoSlimStat PinのGeo-IPリモートクエリーをスピードアップ</li>
<li>whoisデータべースを選択できるオプションの追加</li>
<li><a href="http://www.maxmind.com/">MaxMind</a>によるローカルGeoIPデータベースのサポート</li>
<li>view statsのパーミッション設定のサポート</li>
<li>SlimStatリソーステーブルの修正</li>
<li>wp-shortstatとwp-slimstatからのアップグレートのサポート廃止</li>
</ul>
<p><strong>WP-SlimStat-Ex v2.0の更新方法は以下のとおり</strong></p>
<ol>
<li>プラグインを停止 &gt; 古いプラグインを削除 &gt; 新しいプラグインをアップロード &gt; プラグインをアクティベート</li>
<li>WordPressの管理画面に現れるupgradeのリンクに従う</li>
<li>もしexternal trackingを使用している場合は、external.phpを削除し新しく作成する</li>
</ol>
<p>実際に更新作業を行ってみたが問題なくアップグレードを行うことができた。アクセス解析としてWP-SlimStat-Exをお使いの方は最新バージョンをぜひ試してみてほしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_20.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WP-SlimStat-ExプラグインをWordPress 2.5で新規インストールする方法その２</title>
		<link>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25_2.html</link>
		<comments>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25_2.html#comments</comments>
		<pubDate>Wed, 04 Jun 2008 11:45:42 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-slimstat-ex]]></category>
		<category><![CDATA[アクセス解析]]></category>
		<category><![CDATA[インストール]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25_2.html</guid>
		<description><![CDATA[Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Exという記事でアクセス解析のプラグインであるWp-SlimStat-Exというプラグインを紹介したが、最新バージョンの1.606ではWordPre [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex.html">Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Ex</a>という記事でアクセス解析のプラグインであるWp-SlimStat-Exというプラグインを紹介したが、最新バージョンの1.606ではWordPress 2.5以降で新規インストールに失敗するため、<a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html">WP-SlimStat-ExプラグインをWordPress 2.5で新規インストールする方法</a>として記事を書いた。しかしながら複雑な方法だったため、敬遠されていた方も多いと思うが、作者の082netさんが、<a href="http://082net.com/2007/818/wp-slimstat-ex-v1_6/#comment-7003">プラグインのページ</a>にてWP-SlimStat-Exの修正箇所をコメント欄に記入されている。</p>
<p>それによると、wp-slimstat-ex-config.phpのファイルの最後に1行コードを加えればよいだけのようだ。</p>
<div class="igBar"><span id="lcode-10"><a href="#" onclick="javascript:showPlainTxt('code-10'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-10">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">if<span style="color:#006600; font-weight:bold;">&#40;</span>!isset<span style="color:#006600; font-weight:bold;">&#40;</span>$SlimCfg<span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $SlimCfg =&amp; SlimCfg::<span style="">get_instance</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; </div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; $GLOBALS<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'SlimCfg'</span><span style="color:#006600; font-weight:bold;">&#93;</span> =&amp; $SlimCfg;<span style="color:#FF9933; font-style:italic;">// この行を加える </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>加えてコメント欄に、この不具合を修正したバージョンをできるだけ早くリリースするとおっしゃっているので近いうちに公開されるのを期待したいと思うが、インストールでお困りの方はぜひこの方法を試してみてほしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25_2.html/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ページナビゲーションプラグイン WP-PageNavi</title>
		<link>http://wpgogo.com/plugin/plugin_wp_pagenavi.html</link>
		<comments>http://wpgogo.com/plugin/plugin_wp_pagenavi.html#comments</comments>
		<pubDate>Wed, 04 Jun 2008 11:01:08 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp-pagenavi]]></category>
		<category><![CDATA[ページナビ]]></category>
		<category><![CDATA[ページナビゲーション]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_wp_pagenavi.html</guid>
		<description><![CDATA[WP-PageNavi 2.30
ページナビゲーションは、ページ数が多くなってくると必須の機能だ。デフォルトだと、Older EntriesやNewer Entriesという形で画面遷移を促すわけだが、あまり使い勝手がい [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lesterchan.net/wordpress/readme/wp-pagenavi.html"><img src="http://wordpressgogo.com/wp-content/uploads/plugin_wp_pagenavi.jpg" width="250" height="249" alt="ページナビゲーションプラグイン WP-PageNavi" title="ページナビゲーションプラグイン WP-PageNavi" class="link" /><br />WP-PageNavi 2.30</a></p>
<p>ページナビゲーションは、ページ数が多くなってくると必須の機能だ。デフォルトだと、Older EntriesやNewer Entriesという形で画面遷移を促すわけだが、あまり使い勝手がいいとはいえない。やはり、GoogleやYahoo!などの検索結果で馴染みのあるページナビゲーションを使用したい。そこで紹介するのが、WP-PageNaviというプラグインだ。</p>
<p><img src="http://wordpressgogo.com/wp-content/uploads/plugin_wp_pagenavi2.jpg" width="269" height="26" alt="ページナビゲーションサンプル" title="ページナビゲーションサンプル" class="link" /><br />
ページナビゲーションの例</p>
<p><span id="more-98"></span></p>
<p>ダウンロードは<a href="http://lesterchan.net/wordpress/readme/wp-pagenavi.html">WP-PageNavi 2.30</a>より行う。2008年6月4日現在の最新バージョンはバージョン2.3である。インストールは簡単で、圧縮ファイルを解凍し、出てきたフォルダをpluginsディレクトリにアップロードし、有効化するだけである。日本語化して使用されたい方もいるかもしれないが、<a href="http://wp.mmrt-jp.net/plugin-japanization-project/wp-pagenavi/">MMRT daily life</a>のMasayanさんがバージョン2.20用の日本語翻訳ファイルを公開されている。バージョン違いでも大体は同じじゃないか、と思うのだが実際に試してないのでやってみてほしい。</p>
<p>使い方だが、ページナビゲーションを使用したいテーマファイル（index.phpやarchive.phpなど）に以下のコードを追加しよう。</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showPlainTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php if<span style="color:#006600; font-weight:bold;">&#40;</span>function_exists<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'wp_pagenavi'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span> wp_pagenavi<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#006600; font-weight:bold;">&#125;</span> ?&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>ページナビゲーションの設定は、管理メニューの設定にあるPageNaviから行う。表示する文字やドロップダウンリスト、ページ数などを表示できる。ページナビゲーションのデザインについてはpagenavi/pagenavi-css.cssにて行う必要がある。テーマディレクトリにpagenavi-css.cssが存在すればこちらが優先されるようだ。テーマディレクトリに置いておけばバージョンアップにも対応しやすいので便利だ。</p>
<p>ページナビゲーションを使用することでユーザービリティは確実に向上すると思う。まだご利用になられていない方はぜひ使用してみてほしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_wp_pagenavi.html/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>パーマリンクのURLの末尾に/（スラッシュ）をつけるプラグイン Nice Trailingslashit</title>
		<link>http://wpgogo.com/plugin/plugin_nice_trailingslashit.html</link>
		<comments>http://wpgogo.com/plugin/plugin_nice_trailingslashit.html#comments</comments>
		<pubDate>Fri, 09 May 2008 11:57:28 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[slash]]></category>
		<category><![CDATA[URI]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[スラッシュ]]></category>
		<category><![CDATA[パーマリンク]]></category>
		<category><![CDATA[プラグイン]]></category>
		<category><![CDATA[最後]]></category>
		<category><![CDATA[末尾]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_nice_trailingslashit.html</guid>
		<description><![CDATA[
WordPress插件：Nice Trailingslashit &#124; 猫言猫语
皆さんはパーマリンクの設定をどのようにされているだろうか。WordPressでパーマリンクの設定をするには、「設定」－「パーマリンク設定」 [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wuwx.cn/project/nice-trailingslashit/"><img src="http://wordpressgogo.com/wp-content/uploads/plugin_nice_trailingslashit1.jpg" width="250" height="197" alt="WordPress插件：Nice Trailingslashit | 猫言猫语" title="WordPress插件：Nice Trailingslashit | 猫言猫语" class="link" /><br />
WordPress插件：Nice Trailingslashit | 猫言猫语</a></p>
<p>皆さんはパーマリンクの設定をどのようにされているだろうか。WordPressでパーマリンクの設定をするには、「設定」－「パーマリンク設定」から行う。このWordPress Go Goの場合だと、パーマリンクの設定は、「/%category%/%postname%.html」にしている。しかしながら、以前から気になる点があったのが、カテゴリ、アーカイブ、ページなどのURLの末尾に/（スラッシュ）がつかないのだ。例えば以下のような感じ。</p>
<ol>
<li>http://wordpressgogo.com/plugin （カテゴリ）</li>
<li>http://wordpressgogo.com/sitemap （ページ）</li>
<li>http://wordpressgogo.com/feed （フィード）</li>
</ol>
<p>URLの最後に/（スラッシュ）があるのとないのとで、どちらがSEO（検索エンジン対策）的に適している、ということは言えないのだが、カテゴリの最後は気分的に/（スラッシュ）で終わっていたい、と思う人は多いはずだ。「/%category%/%postname%/」のようにすれば、すべてのURLに/（スラッシュ）が挿入されるのだが、投稿ページは.htmlがいい、という場合もあるはずだ。ということで、パーマリンクの末尾に/（スラッシュ）を自動的に挿入してくれるプラグインを紹介したい。</p>
<p><span id="more-96"></span></p>
<p>Nice Trailingslashitというプラグインで、中国の方が開発をしているようだ。このNice Trailingslashitというプラグインを導入すると、.htmlのような拡張子がついていないURLの末尾に自動的に/（スラッシュ）を挿入してくれる。ダウンロードは作者の<a href="http://www.wuwx.cn/project/nice-trailingslashit/">WordPress插件：Nice Trailingslashit | 猫言猫语</a>のページから行うか、WordPress公式サイトの<a href="http://wordpress.org/extend/plugins/nice-trailingslashit/">WordPress &#8250; Nice Trailingslashit &laquo; WordPress Plugins</a>から行ってほしい。</p>
<p>インストールは簡単で、ダウンロードしたファイルを展開し、pluginsフォルダにアップロードし、有効化するだけである。特に設定メニューなどはない。自動的にカテゴリやページのURLに/（スラッシュ）がついているのを確認してほしい。上の例だと下記のように変わる。</p>
<ol>
<li>http://wordpressgogo.com/plugin/ （カテゴリ）</li>
<li>http://wordpressgogo.com/sitemap/ （ページ）</li>
<li>http://wordpressgogo.com/feed/ （フィード）</li>
</ol>
<p>このプラグインは、<a href="http://wordpressgogo.com/plugin/plugin_top_level_categories.html">URLにcategoryを表示させないプラグイン Top Level Categories Plugin</a>で紹介した、 Top Level Categories とも併用可能で企業サイト・商用ホームページのURLとしてふさわしいアドレスで運用できる。余談だが、このTop Level Categoriesには問題があって、「/%category%/%postname%/」などの/（スラッシュ）で終わるアドレスの場合、ページナビゲーションがうまく動かないようだ。「/%category%/%postname%/」といったパーマリンクもよく設定するのでこれは大いに問題なのだが、解決策がないわけではない。またいつか記事にしたいと思う。</p>
<p>Nice Trailingslashitは非常に簡単に導入できるプラグインなので、サイト構築にあたって、パーマリンクを「/%category%/%postname%.html」などと設定する方は使ってみてほしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_nice_trailingslashit.html/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>WP-SlimStat-ExプラグインをWordPress 2.5で新規インストールする方法</title>
		<link>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html</link>
		<comments>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html#comments</comments>
		<pubDate>Mon, 05 May 2008 19:16:37 +0900</pubDate>
		<dc:creator>Wordpress Go Go</dc:creator>
				<category><![CDATA[WordPressのプラグイン]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[WordPress-2.5]]></category>
		<category><![CDATA[wp-slimstat-ex]]></category>
		<category><![CDATA[アクセス解析]]></category>
		<category><![CDATA[インストール]]></category>
		<category><![CDATA[プラグイン]]></category>

		<guid isPermaLink="false">http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html</guid>
		<description><![CDATA[Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Exという記事でアクセス解析のプラグインであるWp-SlimStat-Exというプラグインを紹介したが、最新バージョンのWP-SlimStat-Ex [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wordpressgogo.com/plugin/plugin_wp_slimstat_ex.html">Ajaxを使用した高機能アクセス解析プラグイン WP-SlimStat-Ex</a>という記事でアクセス解析のプラグインであるWp-SlimStat-Exというプラグインを紹介したが、最新バージョンのWP-SlimStat-Ex 1.606だと、WordPress 2.5以降で新規にこのプラグインをインストールしようとすると原因不明のエラーが出てプラグインのアクティベート（有効化）ができないようだ。すでにプラグインの有効化がされている状態でWordPress 2.3からWordPress 2.5へバージョンアップしたような場合は問題なく動作し続けている。プラグインの有効化の部分で、WordPress 2.5以降うまく動作しない不具合があるということだ。</p>
<p>さて、このプラグインの有効化ができないWP-SlimStat-ExをなんとかWordPress 2.5にインストールしたい。方法としては2つある。（ここで紹介する方法は色々と面倒なのであくまでも自己責任で行っていただきたい。）1つはこのプラグインの作者の<a href="http://082net.com/2007/818/wp-slimstat-ex-v1_6/">WP-SlimStat-Ex v1.6のページ</a>でコメント欄にHot devilさんが書き込んでいる方法だ。プラグインを有効化させる方法の日本語訳を下記に書いておく。</p>
<p><span id="more-95"></span></p>
<p><strong>WP-SlimStat-Ex プラグイン有効化手順（WP-SlimStat-Ex 1.606、WordPress 2.5以降）</strong></p>
<ol>
<li>WP-SlimStatをダウンロードする。（WP-SlimStat-EXではない）</li>
<li>wp-content/pluginsディレクトリにWP-SlimStatをアップロードする。</li>
<li>wp-slimstat-exをすでにアップロードしてある場合はwp-slimstat-exのディレクトリ名を変更しておく。wp-slimstat-eyとか・・・。</li>
<li>wp-slimstatのディレクトリ名をwp-slimstat-exに名前を変更、同様にwp-slimstat内にあるwp-slimstat.phpをwp-slimstat-ex.phpに変更。</li>
<li>WP-SlimStatを有効化する。</li>
<li>wp-slimstat-exのディレクトリ名をwp-slimstatに戻し、WP-SlimStat-EXをアップロードする。（すでにアップロードしてあり名前を変更していた場合は元に戻す。）</li>
<li>WP-SlimStat-EXがエラーなしに有効化されているのが確認できる。</li>
</ol>
<p>なんか分かりにくいかもしれないが、早い話、WP-SlimStatのディレクトリ名、ファイル名を変更して、WP-SlimStat-EXを有効化したように偽装するということである。こうして有効化したWP-SlimStat-EXはデータベースのアップデートが必要になるので実行してほしい。環境によってはこのアップデートがうまくいかないことがある。その場合の対処方法を思いついたので一応書いておく。</p>
<p>WordPress 2.3の環境を用意し、WP-SlimStat-EXを有効化する。phpMyAdminなどのツールを使って、wp_slimex_dt、wp_slimex_feed、wp_slimex_pins、wp_slimex_resource、wp_slimex_stats、wp_slim_countriesの6つのテーブルをエクスポートする。このエクスポートしたテーブルをWordPress 2.5のデータベースにインポートする。WP-SlimStat-EXは上記のやり方で有効化すると、アップデートの必要なくWP-SlimStat-EXを動作させることができるだろう。</p>
<p><strong>WP-SlimStat-Ex 1.61！？</strong><br />
さて、1つ目のやり方は正直面倒だ。有効化だけならまだしも、アップデートに失敗して、テーブルの移行が必要になるとなかなか難しいかもしれない。そこで、見つけたのが、WP-SlimStat-EXの作者の方のSVNのトラックページだ（<a href="http://trac.082net.com/browser/wp-slimstat-ex">/wp-slimstat-ex - 082NeT - Trac</a>）。どうやらWordPress 2.5用にバグを修正したWP-SlimStat-EX　1.61を開発中のようで、trunkにあるファイルを落として使用してみたがあっさりとプラグインの有効化に成功した。恐らく近いうちに公開していただけるのではないかと思う。</p>
<p><a href="http://082net.com/2007/818/wp-slimstat-ex-v1_6/">WP-SlimStat-EXのダウンロード</a>が現在できなくなっているようだが、WordPress 2.5でうまく動作しないことを懸念して、このプラグインの作者の方はダウンロードを停止しているのかもしれない。すでにこのプラグインファイルをダウンロード済みでWP-SlimStat-Exのインストールにお困りの方はこの記事で紹介した方法を試してみてほしい。待てる人は、WordPress 2.5で動く新バージョンのWP-SlimStat-Exが早く公開されるのを期待しよう。</p>
<p>ちなみに、WP-SlimStat-Exの1.606を日本語化されている方がいたので紹介。<a href="http://yonyon-blog.net/youmei/2008/04/10/wp-slimstat-ex%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6%e6%97%a5%e6%9c%ac%e8%aa%9e%e5%8c%96%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f/">WP-SlimStat-Exを導入して日本語化してみた - サイト管理者のよんよん日記</a>。実際に使ってみてはないが、日本語化が必要な方は参考にしてみてほしい。</p>
]]></content:encoded>
			<wfw:commentRss>http://wpgogo.com/plugin/plugin_wp_slimstat_ex_install_to_wp25.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
