<?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>Hirobee's Trail [Memorandum] &#187; Plugin</title>
	<atom:link href="http://hirobee.jp/tags/plugin/feed/" rel="self" type="application/rss+xml" />
	<link>http://hirobee.jp</link>
	<description>日々の戯れ言</description>
	<lastBuildDate>Thu, 27 Aug 2009 15:06:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WP-Amazon</title>
		<link>http://hirobee.jp/archives/2005/06/wp-amazon/</link>
		<comments>http://hirobee.jp/archives/2005/06/wp-amazon/#comments</comments>
		<pubDate>Fri, 17 Jun 2005 17:58:39 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=56</guid>
		<description><![CDATA[Amazonの商品へのリンクが簡単につけられるプラグインのWP-Amazonを入れてみました。
インストールと設定は、Standing Tall ≫ WP のプラグイン：WP-Amazonを参考にしました。
説明では、バ [...]]]></description>
			<content:encoded><![CDATA[<p>Amazonの商品へのリンクが簡単につけられるプラグインのWP-Amazonを入れてみました。<br />
インストールと設定は、<a href="http://tekapo.com/st/2005/03/18/wp-amazon/">Standing Tall ≫ WP のプラグイン：WP-Amazon</a>を参考にしました。<br />
説明では、バージョンが1.2.3ですが、現在は、1.2.7にアップデートしています。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/06/wp-amazon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>トラックバックスパム</title>
		<link>http://hirobee.jp/archives/2005/06/trackback-spam/</link>
		<comments>http://hirobee.jp/archives/2005/06/trackback-spam/#comments</comments>
		<pubDate>Thu, 16 Jun 2005 13:12:38 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=52</guid>
		<description><![CDATA[今朝になって突然送られてくるようになりました。 :evil_wp:
コメントやトラックバックは、承認(Moderation)しないと表示されないようにしているのでWeblogには出てこないですが、結構な数が来る(今も止ま [...]]]></description>
			<content:encoded><![CDATA[<p>今朝になって突然送られてくるようになりました。 :evil_wp:</p>
<p>コメントやトラックバックは、承認(Moderation)しないと表示されないようにしているのでWeblogには出てこないですが、結構な数が来る(今も止まってない)ので削除するのが非常に面倒です。<br />
また、コメントやトラックバックが来るとメールが届くように設定しているのでこれも非常に鬱陶しいです。</p>
<p>コメントスパムについては、Trencaspammersというコメント投稿時にランダムな数字の入力が必要になるプラグインでほぼ完全に防ぐことができましたが、トラックバックスパムは相手から強制的に送られてくるのでやっかいです。</p>
<p>対策としては、以前書いたスパム対策の後で見つけた<a href="http://wp.somy.jp/spam-block-jp/">SOMY SpamBlock JP スパム対策プラグイン</a>を使えば条件に合わないもの(指定した回数のひらがなかカタカナが含まれるどうか)は問答無用で削除できるので(英語圏の人がここを見ていることはまずないだろうから)、これでやることにしました。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/06/trackback-spam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP Comment Quicktags Plus</title>
		<link>http://hirobee.jp/archives/2005/06/wp-comment-quicktags-plus/</link>
		<comments>http://hirobee.jp/archives/2005/06/wp-comment-quicktags-plus/#comments</comments>
		<pubDate>Fri, 03 Jun 2005 15:51:30 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=47</guid>
		<description><![CDATA[コメント入力フォームの上にQuicktagのボタンを表示させるプラグインです。
aoiro_blog ≫ Blog Archive ≫ WP Comment Quicktags Plus
で紹介されていました。
プラグイ [...]]]></description>
			<content:encoded><![CDATA[<p>コメント入力フォームの上にQuicktagのボタンを表示させるプラグインです。<br />
<a href="http://aoiro.s58.xrea.com/archives/94">aoiro_blog ≫ Blog Archive ≫ WP Comment Quicktags Plus</a><br />
で紹介されていました。</p>
<p>プラグインは、<br />
<a href="http://weblogtoolscollection.com/pluginblog/2005/04/30/wp-comment-quicktags-plus-update-13/">Wordpress Plugin Competition Blog ≫ WP Comment Quicktags Plus Update 1.3</a><br />
からダウンロードできます。</p>
<p>プラグインを有効化し、comments.phpの90行目あたりに<br />
<code>&lt;?php if(function_exists(wp_comment_quicktags_plus)) { wp_comment_quicktags_plus(); } ?&gt;</code><br />
を挿入、readme.txtにボタンのCSSがあるのでstyle.cssに追加すれば、個別エントリのページでコメントフォームの上にボタンが表示されます。</p>
<p>readme.txtのCSSで表示されるボタンは個人的にあまり好みではなかったので削除しました。<br />
あと、並び順の変更と、codeボタンのフォントを変更しています。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/06/wp-comment-quicktags-plus/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 1.5.1.2 Security Update</title>
		<link>http://hirobee.jp/archives/2005/05/wordpress-1512-security-update/</link>
		<comments>http://hirobee.jp/archives/2005/05/wordpress-1512-security-update/#comments</comments>
		<pubDate>Sat, 28 May 2005 14:08:10 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Plugin]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=42</guid>
		<description><![CDATA[先日アップデートがあったばかりですが、Security Updateとして1.5.1.2がUpされていました。
前回同様、変更点をMEに反映させてみました。
]]></description>
			<content:encoded><![CDATA[<p>先日アップデートがあったばかりですが、<a href="http://wordpress.org/development/2005/05/security-update/">Security Updateとして1.5.1.2がUp</a>されていました。</p>
<p>前回同様、変更点をMEに反映させてみました。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/05/wordpress-1512-security-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Commented entry list 1.1</title>
		<link>http://hirobee.jp/archives/2005/05/commented-entry-list-11/</link>
		<comments>http://hirobee.jp/archives/2005/05/commented-entry-list-11/#comments</comments>
		<pubDate>Tue, 24 May 2005 13:43:41 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=41</guid>
		<description><![CDATA[Commented entry list Pluginをちょっとだけバージョンアップしました。

時刻 or 日付のところに個別エントリページのコメント自体へのリンクを出力するようにした。
ちささんのコメントを参考に、コ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hirobee.jp/archives/2005/04/commented-entry-list-plugin/">Commented entry list Plugin</a>をちょっとだけバージョンアップしました。</p>
<ol>
<li>時刻 or 日付のところに個別エントリページのコメント自体へのリンクを出力するようにした。</li>
<li><a href="http://chisa.sensitiveness.net/">ちささん</a>の<a href="http://hirobee.jp/archives/2005/04/commented-entry-list-plugin/#comment-31">コメント</a>を参考に、コメント、Trackback,Pingbackが0件の場合にエラーが出ないように修正。</li>
</ol>
<p><del datetime="2005-05-31T11:43:32+00:00">アーカイブをダウンロード : <a href="http://hirobee.jp/files/commented-entry-list_1.1.zip">commented-entry-list_1.1.zip</a></del></p>
<p><small>May 31, 2005 @ 20:49 追記</small><br />
matopcさんからGet Recently Commented Pluginの仕様に<a href="http://hirobee.jp/archives/2005/04/get-recently-commented/#comment-32">コメント</a>をいただきました。<br />
このプラグインも同じ処理をしていましたのでGet Recently Commented Pluginと同様に、コメントする際にWebsiteのURIを入力しなかった場合、メールアドレスをリンクとして出力しないように修正しました。</p>
<p>アーカイブをダウンロード : <a href="http://hirobee.jp/files/commented-entry-list_1.2.zip">commented-entry-list_1.2.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/05/commented-entry-list-11/feed/</wfw:commentRss>
		<slash:comments>63</slash:comments>
		</item>
		<item>
		<title>Commented entry list Plugin</title>
		<link>http://hirobee.jp/archives/2005/04/commented-entry-list-plugin/</link>
		<comments>http://hirobee.jp/archives/2005/04/commented-entry-list-plugin/#comments</comments>
		<pubDate>Sat, 30 Apr 2005 07:02:00 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=34</guid>
		<description><![CDATA[Calrozさんからリクエストがあったので、Get Recently Commentedプラグインを、最近のコメントと最近のトラックバックに分けて表示できるようにしてみました。
MovableTypeを使っているサイトで [...]]]></description>
			<content:encoded><![CDATA[<p>Calrozさんからリクエストがあったので、Get Recently Commentedプラグインを、最近のコメントと最近のトラックバックに分けて表示できるようにしてみました。<br />
MovableTypeを使っているサイトで使われていることが多いタイプの表示方法ですが、WordPressでは個別エントリのページでコメントとトラックバックが分けて表示されないので、どうだろうとおもっていたら、<a href="http://tekapo.com/st/2005/04/29/separating-trackbacks-comments/">Standing Tall ≫ Blog Archive ≫ WP のヒント：コメントとトラックバックを分ける</a>で、個別エントリページでコメントとトラックバックを分ける方法を見つけました。<br />
アーカイブに入っているcomments.phpを使っているテーマのものと入れ替えてください。<br />
プラグインのPermalinkはこのcomments.phpを前提に書いていますので、オリジナルのcomments.phpを使う場合は、<br />
59行目の<br />
<code>$permalink = get_permalink($comment-&gt;ID)."#trackbacks";</code><br />
を<br />
<code>$permalink = get_permalink($comment-&gt;ID)."#comments";</code><br />
に修正してください。</p>
<p>アーカイブをダウンロード : <a href="http://hirobee.jp/files/commented-entry-list.zip">commented-entry-list.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/04/commented-entry-list-plugin/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Get Recently Commented</title>
		<link>http://hirobee.jp/archives/2005/04/get-recently-commented/</link>
		<comments>http://hirobee.jp/archives/2005/04/get-recently-commented/#comments</comments>
		<pubDate>Sat, 09 Apr 2005 11:43:08 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=24</guid>
		<description><![CDATA[matopcさんよりご希望があったので、ソースをアップロードします。
繰り返しになりますが、Recently Commented 完結編で書いたようにオリジナルのソースである、tkzyさんのtkzy::blog ≫ また [...]]]></description>
			<content:encoded><![CDATA[<p>matopcさんよりご希望があったので、ソースをアップロードします。</p>
<p>繰り返しになりますが、<a href="http://hirobee.jp/archives/2005/03/recently-commented-final/">Recently Commented 完結編</a>で書いたようにオリジナルのソースである、<a href="http://tkzy.net/">tkzyさん</a>の<a href="http://tkzy.net/?p=68">tkzy::blog ≫ また修正 ≫ tkzy_get_recent_comments.php</a>と<a href="http://www.sssg.org/blogs/naganuma/">ながぬまさん</a>の<a href="http://www.sssg.org/blogs/naganuma/index.php?p=659">りょ！ ≫ 最近のコメント ≫ 20050208_recent-comments.php</a> を元にいくつかの変更を加えて作成したものです。</p>
<p>変更した点は</p>
<ol>
<li>プラグインを呼び出す名前の変更<br />
get_recent_comments -&gt; get_recently_commented(11行目)</li>
<li>コメントした人の名前（またはTrackBack元のサイト名）へのリンクを出力するためのデータ取得(13行目)</li>
<li>permalink出力の変更(25行目)</li>
<li>日付・時刻表示を、コメントがあった当日は時刻表示、それ以降は日付表示するように変更(32,33行目)</li>
<li>コメントした人の名前（またはTrackBack元のサイト名）へのリンクを出力するため、function tkzy_get_comment_author_linkを使用(44?75行目)</li>
</ol>
<p>使用方法:<br />
表示させたいところに<br />
&lt;?php get_recently_commented(); ?&gt;<br />
を挿入。()内に数値分を入れれば、その数だけ表示します。デフォルトは10です。</p>
<p>カスタマイズ:<br />
33行目の&#8217;H:i&#8217;、35行目の&#8217;m/d&#8217;を修正すると、コメントがあった時刻・日付の書式が変更できます。<br />
38行目のtkzy_get_comment_author_link($comment,20)の20を変更すると、コメントした人の名前（またはTrackBack元のサイト名）へのリンクに表示する文字数を変更できます。数値分を超えると&#8230;で表示されます。</p>
<p><del datetime="2005-05-29T09:24:53+00:00">このWeblogの右側にあるRecently Commented:はこのプラグインを使用していて、特に不具合は出ていませんが、</del>プラグインを使用して不具合などがあった場合は、このエントリのコメントとして書き込んでください。</p>
<p><small>May 29, 2005 @ 18:35 追記</small><br />
matopcさんから<a href="http://hirobee.jp/archives/2005/04/get-recently-commented/#comment-32">コメント</a>をいただきました。<br />
コメントする際にWebsiteのURIを入力しなかった場合、メールアドレスがリンクとして出力していましたが、これを出力しないように修正しました。</p>
<p>アーカイブをダウンロード : <a href="http://hirobee.jp/files/get-recently-commented.zip">get_recently_commented.zip</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/04/get-recently-commented/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Customizable Post Listings</title>
		<link>http://hirobee.jp/archives/2005/04/customizable-post-listings/</link>
		<comments>http://hirobee.jp/archives/2005/04/customizable-post-listings/#comments</comments>
		<pubDate>Tue, 05 Apr 2005 14:21:15 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=22</guid>
		<description><![CDATA[書き忘れや、間違いがあったりするので、エントリを編集したり追記した際に、そのエントリをリストするプラグインを入れてみました。
Customizable Post Listings
このプラグイン自体は、Recent Po [...]]]></description>
			<content:encoded><![CDATA[<p>書き忘れや、間違いがあったりするので、エントリを編集したり追記した際に、そのエントリをリストするプラグインを入れてみました。<br />
<a href="http://www.coffee2code.com/archives/2004/08/27/plugin-customizable-post-listings/">Customizable Post Listings</a><br />
このプラグイン自体は、Recent Posts, Recently Commented Posts, Recently Modified Posts, Random Posts, などいろんな表示をさせることができますが、アップデートの表示だけに使っています。<br />
日付表示の書式(時刻も表示)とインデントを入れる(&amp;nbsp;を入れて調整)ために、コードを修正しました。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/04/customizable-post-listings/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wpPaginate</title>
		<link>http://hirobee.jp/archives/2005/04/wppaginate/</link>
		<comments>http://hirobee.jp/archives/2005/04/wppaginate/#comments</comments>
		<pubDate>Tue, 05 Apr 2005 02:20:01 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=21</guid>
		<description><![CDATA[ページの一番下に、≪ Previous Entries というリンクがありますが、これだと1ページずつしか移動できません。
aoiro_blog ≫ WordPressプラグイン wpPaginate
で、ページナビゲー [...]]]></description>
			<content:encoded><![CDATA[<p>ページの一番下に、≪ Previous Entries というリンクがありますが、これだと1ページずつしか移動できません。<br />
<a href="http://aoiro.s58.xrea.com/archives/31">aoiro_blog ≫ WordPressプラグイン wpPaginate</a><br />
で、ページナビゲーションを表示するプラグインが紹介されていたので、使ってみることにしました。</p>
<p><a href="http://www.scriptygoddess.com/archives/2005/01/23/wppaginate-for-wp-15/">scriptygoddess: WordPress Plugins: wpPaginate (for WP 1.5)</a><br />
からソースをダウンロードし、プラグインとして有効化、</p>
<p>/wp-content/(テーマのパス)/index.phpの30行目と31行目の間にタグ(print_pg_navigation)を挿入</p>
<blockquote><p><code>&lt;div class="navigation"&gt;<br />
&lt;div class="alignleft"&gt;&lt;?php posts_nav_link('','','&amp;laquo; Previous Entries') ?&gt;&lt;/div&gt;<br />
&lt;div class="alignright"&gt;&lt;?php posts_nav_link('','Next Entries &amp;raquo;','') ?&gt;&lt;/div&gt;<br />
&lt;?php print_pg_navigation('&lt;div&gt;','&lt;/div&gt;'); ?&gt;<br />
&lt;/div&gt;</code></p></blockquote>
<p>これで、現在の、≪ Previous Entries と Next Entries ≫ も残しつつ、その間にページナビゲーションを表示させることができるようになりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/04/wppaginate/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WP Grins</title>
		<link>http://hirobee.jp/archives/2005/03/wp-grins/</link>
		<comments>http://hirobee.jp/archives/2005/03/wp-grins/#comments</comments>
		<pubDate>Thu, 31 Mar 2005 14:16:35 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=19</guid>
		<description><![CDATA[WordPressに、フェイスアイコン(/wp-images/smilies に入っている)が出せる機能がありますが、どうやって出せばいいのかよくわかりませんでした。
いろいろ探してみたところ、WP Grinsというプラ [...]]]></description>
			<content:encoded><![CDATA[<p>WordPressに、フェイスアイコン(/wp-images/smilies に入っている)が出せる機能がありますが、どうやって出せばいいのかよくわかりませんでした。<br />
いろいろ探してみたところ、WP Grinsというプラグインがあったので入れてみました。</p>
<p> <img src='http://hirobee.jp/wordpress/wp-includes/images/smilies/icon_eek.gif' alt='8O' class='wp-smiley' /> 8) <img src='http://hirobee.jp/wordpress/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' />  <img src='http://hirobee.jp/wordpress/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  :cry_wp: :twisted_wp: :mrgreen_wp:</p>
<p>おぉ、かんたんにフェイスアイコンが出せるようになった。 <img src='http://hirobee.jp/wordpress/wp-includes/images/smilies/icon_eek.gif' alt='8O' class='wp-smiley' /> </p>
<p>このプラグインは<a href="http://www.alexking.org/software/wordpress/">alexking.org</a>にあります。<br />
使い方はアーカイブのREADME.txtに書かれているので省略しますが、WordPress 1.5では、quicktags.phpというファイルがなくなっているので、/wp-admin/の3つファイルにタグを書く必要があります。<br />
また、/wp-content/(テーマのパス)/comments.phpにタグを書いておけば、コメントフォームのところでも使えるようになります。</p>
<p>こんな感じになります。<br />
<a href="http://hirobee.jp/images/WP_Grins.png" class="lightview" rel="gallery[19]" title="WP Grins"><img src="http://hirobee.jp/images/thumb-WP_Grins.png" alt="WP Grins" width="200" height="113" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/03/wp-grins/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Recently Commented 完結編</title>
		<link>http://hirobee.jp/archives/2005/03/recently-commented-final/</link>
		<comments>http://hirobee.jp/archives/2005/03/recently-commented-final/#comments</comments>
		<pubDate>Fri, 25 Mar 2005 07:55:44 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=18</guid>
		<description><![CDATA[Recently Commented part2で、並び順を替えるために参考にしたと書いたりょ！ ≫ 最近のコメントにある20050208_recent-comments.phpは、よく読んでみるとtkzy_get_re [...]]]></description>
			<content:encoded><![CDATA[<p>Recently Commented part2で、並び順を替えるために参考にしたと書いた<a href="http://www.sssg.org/blogs/naganuma/index.php?p=659">りょ！ ≫ 最近のコメント</a>にある20050208_recent-comments.phpは、よく読んでみるとtkzy_get_recent_commentsを元にソースを書き換えられていたみたいです。</p>
<p>20050208_recent-comments.phpを使わせてもらおうかと思ったのですが、こちらはtkzy_get_recent_comments.phpにあったコメントした人の名前（またはtrackback元のサイト名）へのリンクがなくなっていました。</p>
<p>そこで、コメントがついたエントリのソートをして表示させる部分に20050208_recent-comments.phpを使い、コメントした人の名前（またはtrackback元のサイト名）へのリンクを付けるために、tkzy_get_recent_comments.phpにあるtkzy_get_comment_author_link関数を使った、両者の良いとこ取りのプラグインをつくってみました。<br />
あと、permalinkと日付@時間の修正も入れてあります。</p>
<p>これで、現在のサイドバーのRecently Commentedを表示させられるようになりました。</p>
<p>tkzy_get_recent_comments.phpを作成された<a href="http://tkzy.net/">tkzyさん</a>、20050208_recent-comments.phpを作成された<a href="http://www.sssg.org/blogs/naganuma">ながぬまさん</a>、ありがとうございました。</p>
<p><small>March 28, 2005 @ 10:37 追記</small><br />
追加(太字斜体)・変更したところを書いておくことにします。</p>
<p>ベースは20050208_recent-comments.phpを使用します(行数は追加・変更前の数になります)<br />
4行目に追加 &#8211; 長いので途中は省略しています(&#8230;の部分)</p>
<blockquote><p><code>$comments = $wpdb-&gt;get_results("SELECT … comment_author, <strong><em>comment_author_url, comment_author_email, </em></strong>comment_date ...</code></p></blockquote>
<p>16行目を変更</p>
<blockquote><p><code>$permalink = get_permalink($comment-&gt;ID)."#comments";</code></p></blockquote>
<p>22行目から24行目を変更<br />
コメントがあった当日は時刻表示、それ以降は日付表示</p>
<blockquote><p><code>$comment_date = $comment-&gt;comment_date;<br />
if ( mysql2date('Y m d', $comment_date) == gmdate('Y m d', current_time(timestamp)) ) {<br />
$comment_date = mysql2date('H:i', $comment_date);<br />
} else {<br />
$comment_date = mysql2date('m/d', $comment_date);<br />
}<br />
$output .= "\t\t&lt;li&gt;&lt;span class="comment_date"&gt;$comment_date &lt;/span&amp;gt".<br />
"&lt;span class="comment_author"&gt;".tkzy_get_comment_author_link($comment,20)."&lt;/span&gt;&lt;/li&gt;\n";</code></p></blockquote>
<p>29行目と30行目の間に、tkzy_get_recent_comments.phpの後半部分<br />
<code>function tkzy_get_comment_author_link($my_comment,$abbr=0) {</code><br />
以降（42行目から73行目)を挿入する。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/03/recently-commented-final/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recently Commented part2</title>
		<link>http://hirobee.jp/archives/2005/03/recently-commented-part2/</link>
		<comments>http://hirobee.jp/archives/2005/03/recently-commented-part2/#comments</comments>
		<pubDate>Mon, 21 Mar 2005 19:00:43 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=17</guid>
		<description><![CDATA[tkzy_get_recent_commentsで表示される順番が、

エントリがポストされた日時 -&#62; コメントされた日時(同じ日にコメントがあった場合、コメントされた時間が遅くてもポストされた日付が新しいものが [...]]]></description>
			<content:encoded><![CDATA[<p>tkzy_get_recent_commentsで表示される順番が、</p>
<ul>
<li>エントリがポストされた日時 -&gt; コメントされた日時(同じ日にコメントがあった場合、コメントされた時間が遅くてもポストされた日付が新しいものが上)に並んでしまう</li>
</ul>
<p>という微妙に気になる状態だったのでので修正してみました。<br />
それと、承認前のコメントが表示されてしまうところも修正しました。</p>
<p>tkzy_get_recent_comments.phpは<a href="http://tkzy.net/?p=68">tkzy::blog ≫ また修正</a>にあるものです。<br />
ソースに書かれている順に以下のように修正しました。</p>
<ol>
<li>承認前のコメントが表示されないようにするために、5行目に太字斜体部分を追加する。<br />
<blockquote><p><code>$comments = $wpdb-&gt;get_results("SELECT ID, post_title, post_date, omment_ID,<br />
comment_author,comment_author_url, comment_author_email, comment_date FROM $tableposts, $tablecomments WHERE $tableposts.ID=$tablecomments.comment_post_ID <em><strong>AND $tablecomments.comment_approved='1'</strong></em> ORDER BY $tablecomments.comment_date DESC LIMIT $limit");</code></p></blockquote>
</li>
<li>並び順の変更するために、9行目の$aと$bを入れ替える。<br />
<blockquote><p><code>return mysql2date('U',$b-&gt;comment_date)<br />
- mysql2date('U',$a-&gt;comemnt_date);</code></p></blockquote>
</li>
</ol>
<p>今回の修正は、<del datetime="2005-03-25T15:42:22-09:00">りょ！ ≫ 最近のコメント</del>と<a href="http://blog.i-know.jp/archives/2005/01/08/wp_get_recent_comments/">I know. 開発日誌、≫ WordPress 最近のコメント</a>を参考にしました。ありがとうございました。</p>
<p><small>March 22, 2005 @ 22:56 追記</small><br />
<a href="http://plasticdreams.org/archives/2005/03/21/803/hack-the-tkzy-get-recent-comments/">:: plasticdreams :: ≫ hack the tkzy get recent comments</a>をみて、Pluginにしてみました。<br />
Plugin Name:(Pluginの名前)、Plugin URI:(配布元のURI)、Description:(説明)、Author:(作者名)、Author URI:(作者のURI)を1行目の&lt;?phpの次の行から、/* */で囲んでコメントとして書いて、/wp-content/pluginにコピーし、管理ページでPluginをActivateすれば完了。<br />
こうすれば、<a href="http://hirobee.jp/?p=13">Recently Commented</a>で書いた1行目のrequire_onceは必要なくなります。</p>
<p><small>March 25, 2005 @ 15:36 追記</small><br />
「2. 並び順の変更」を修正しました。<br />
9行目のcomment_date2箇所をpost_dateに修正</p>
<blockquote><p><code>return mysql2date('U',$a-&gt;post_date)<br />
- mysql2date('U',$b-&gt;post_date);</code></p></blockquote>
<p>11行目のpost_date2箇所をcomment_dateに修正</p>
<blockquote><p><code>return mysql2date('U',$b-&gt;comment_date)<br />
- mysql2date('U',$a-&gt;comment_date);</code></p></blockquote>
<p>この修正をすると、コメントがつくとそのエントリが単独で並んでしまい、tkzy_get_recent_commentsの本来の動作と変わってしまうためです。</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/03/recently-commented-part2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recently Commented</title>
		<link>http://hirobee.jp/archives/2005/03/recently-commented/</link>
		<comments>http://hirobee.jp/archives/2005/03/recently-commented/#comments</comments>
		<pubDate>Sat, 19 Mar 2005 13:40:15 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=13</guid>
		<description><![CDATA[tkzy_get_recent_commentsを使って最近のコメントをサイドバーに表示させてみました。
WordPressが1.5になって、サイトのデザインがThemeになっているので、設定方法がtkzy::blogに [...]]]></description>
			<content:encoded><![CDATA[<p>tkzy_get_recent_commentsを使って最近のコメントをサイドバーに表示させてみました。</p>
<p>WordPressが1.5になって、サイトのデザインがThemeになっているので、設定方法が<a href="http://tkzy.net/">tkzy::blog</a>にある説明とは少し違っています。</p>
<ol>
<li><a href="http://tkzy.net/?p=68">tkzy::blog ≫ また修正</a>から<a href="http://tkzy.net/code/tkzy_get_recent_comments.phps">tkzy_get_recent_comments.php</a>をコピー(ダウンロードではなく、開いてから内容をコピー)しエディタなどに貼り付けてtkzy_get_recent_comments.phpとして保存。</li>
<li>tkzy_get_recent_comments.phpを/wp-content/themes/(使っているテーマのパス)にアップロード。</li>
<li>/wp-content/themes/(使っているテーマのパス)/sidebar.phpの1行目に、<br />
<blockquote><p><code>&lt;?php<br />
require_once('tkzy_get_recent_comments.php');<br />
?&gt;</code></p></blockquote>
<p>最近のコメントを表示させたいところに、</p>
<blockquote><p><code>&lt;li&gt;&lt;h2&gt;Recently Commented&lt;/h2&gt;&lt;/li&gt;<br />
&lt;ul&gt;<br />
&lt;?php tkzy_get_recent_comments(10); ?&gt;<br />
&lt;/ul&gt;<br />
</code></p></blockquote>
</li>
</ol>
<p>以上でこのサイトの右のサイドバーのようになります。<br />
ちなみに、日付@時間となっているのは、<a href="http://4160.com/">4160.com</a>を見て、tkzy_get_recent_comments.phpの32行目と34行目を書き換えました。オリジナルでは、コメントがポストされてから24時間は時刻表示で、それを過ぎると日付表示になる様です。</p>
<p>また、4160.comのYOさんによると、エントリへのリンクがおかしいらしく、tkzy_get_recent_comments.phpの24行目を<br />
<code>$permalink = get_permalink($comment-&gt;ID)."#comments";</code><br />
と書き換えました。</p>
<p><del datetime="2005-03-25T21:14:06-09:00">あと、コメントが何もない状態ではエラーが出てしまったので、最初のエントリにダミーのコメントを入れておきました。</del></p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/03/recently-commented/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>spam対策</title>
		<link>http://hirobee.jp/archives/2005/02/spam-block/</link>
		<comments>http://hirobee.jp/archives/2005/02/spam-block/#comments</comments>
		<pubDate>Tue, 22 Feb 2005 14:01:18 +0000</pubDate>
		<dc:creator>Hirobee</dc:creator>
				<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://hirobee.jp/?p=5</guid>
		<description><![CDATA[タイトルにiPod Suffleと入れただけでコメントスパムがついたので、対策をしておくことにする。

コメントにリンクが1つでも含まれたら保留する。
ある特定の単語がコメントに含まれていたら保留する。
Trencasp [...]]]></description>
			<content:encoded><![CDATA[<p>タイトルにiPod Suffleと入れただけでコメントスパムがついたので、対策をしておくことにする。</p>
<ol>
<li>コメントにリンクが1つでも含まれたら保留する。</li>
<li>ある特定の単語がコメントに含まれていたら保留する。</li>
<li>Trencaspammers 1.0rc Pluginを入れる。</li>
<li>.htaccessでIPレベルでアクセスを排除する。</li>
</ol>
<p><span id="more-5"></span><br />
1.コメントにリンクが1つでも含まれたら保留する。</p>
<blockquote><p>管理ページのOption-Discussion-Comment ModerationのはじめのBoxに1を入力する。</p></blockquote>
<p>2.ある特定の単語がコメントに含まれていたら保留する。</p>
<blockquote><p>管理ページのOption-Discussion-Comment Moderationの下のBoxに<a href="http://codex.wordpress.org/Spam_Words"></a>にある単語リストをコピーする。</p></blockquote>
<p>3.Trencaspammers 1.0rc Pluginを入れる。</p>
<blockquote><p><a href="http://coffelius.arabandalucia.com/archivos/2004/11/07/trencaspammers-plugin-para-evitar-el-spam-wordpress/">Coffelius ≫ Trencaspammers, plugin para evitar el spam wordpress</a>からアーカイブをダウンロードする。ただし、これは1.2.2用なので、1.5にあわせて修正が必要になる。</p>
<ol>
<li>trencaspammers.phpの13行目<code>$site_key=</code>の数字8桁を修正し、/wp-content/plugin/に保存する。</li>
<li>アーカイブのwp-comments.phpから、77-88行目を<br />
/wp-content/themes/(使っているテーマのパス)/comments.phpの94行目あたりにコピーする。</li>
<li>アーカイブのwp-comments-post.phpから、44-50行目を<br />
/wp-comments-post.phpの39行目あたりにコピーする。</li>
<li>PluginをActivateする。</li>
</ol>
</blockquote>
<p>4. .htaccessでIPレベルでアクセスを排除する。</p>
<blockquote><p><a href="http://nakoruru.jp/index.php?p=87">ここ</a>から.htaccessをコピーする。</p></blockquote>
<p><small>March 20, 2005 @ 20:53 追記</small><br />
1.のリンクの数は、デフォルトの2に戻しました。</p>
<p><small>March 21, 2005 @ 06:38 追記</small><br />
comments.phpのパスの書き方を修正。<br />
/wp-content/themes/default -&gt; /wp-content/themes/(使っているテーマのパス)</p>
<p><small>April 5, 2005 @ 23:39 修正</small><br />
Trencaspammers 1.0rc Plugin のリンクを作者さんのサイトに修正</p>
]]></content:encoded>
			<wfw:commentRss>http://hirobee.jp/archives/2005/02/spam-block/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
