<?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>阿德日志 &#187; 插件</title>
	<atom:link href="http://blog.shidelai.cn/tag/%e6%8f%92%e4%bb%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.shidelai.cn</link>
	<description>WordPress, Blog, linux, 杂文</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:00:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>这个插件能为你的WordPress提供iphone, itouch主题</title>
		<link>http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html</link>
		<comments>http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html#comments</comments>
		<pubDate>Mon, 19 Jul 2010 02:53:04 +0000</pubDate>
		<dc:creator>阿德</dc:creator>
				<category><![CDATA[新品发布]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://blog.shidelai.cn/?p=1326</guid>
		<description><![CDATA[WPtouch iPhone Theme 在插件安装界面搜索WPtouch iPhone Theme即可，安装好不用设置就可以用了，设置界面里内容很多，可以根据需要定制。总体上来说做的很专业很强大。 [相关文章] WordPress运行原理... ]]></description>
			<content:encoded><![CDATA[<p><a class="tt-flickr tt-flickr-Medium" title="WPtouch iPhone Theme for WordPress" href="http://www.flickr.com/photos/delai/4806736833/"><img class="aligncenter" src="http://76.13.18.79/4143/4806736833_56436404b1.jpg" alt="WPtouch iPhone Theme for WordPress" width="320" height="480" /></a></p>
<p><strong><a href="http://bravenewcode.com/products/wptouch" target="_blank">WPtouch iPhone Theme</a></strong></p>
<p>在插件安装界面搜索WPtouch iPhone Theme即可，安装好不用设置就可以用了，设置界面里内容很多，可以根据需要定制。总体上来说做的很专业很强大。</p>

	<b>[相关文章]</b>
	<ul class="st-related-posts">
	<li><a href="http://blog.shidelai.cn/2008/07/plugins.html" title="WordPress运行原理学习笔记之二：插件机制初探 (2008-07-15)">WordPress运行原理学习笔记之二：插件机制初探</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/essay-photo.html" title="flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片 (2008-06-14)">flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html" title="flickrRSS高阶使用三部曲之一：显示flickr上的图片 (2008-06-13)">flickrRSS高阶使用三部曲之一：显示flickr上的图片</a> (5)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/wordpress-seo.html" title="抛弃All in One SEO Pack，WordPerss的SEO优化小结 (2008-06-29)">抛弃All in One SEO Pack，WordPerss的SEO优化小结</a> (3)</li>
	<li><a href="http://blog.shidelai.cn/2008/12/wordpress-upgrade.html" title="升级WordPress2.7要注意的地方 (2008-12-12)">升级WordPress2.7要注意的地方</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress运行原理学习笔记之二：插件机制初探</title>
		<link>http://blog.shidelai.cn/2008/07/plugins.html</link>
		<comments>http://blog.shidelai.cn/2008/07/plugins.html#comments</comments>
		<pubDate>Tue, 15 Jul 2008 12:18:21 +0000</pubDate>
		<dc:creator>阿德</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[加载]]></category>
		<category><![CDATA[原理]]></category>
		<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[显示]]></category>
		<category><![CDATA[机制]]></category>
		<category><![CDATA[运行]]></category>

		<guid isPermaLink="false">http://www.soulward.cn/?p=234</guid>
		<description><![CDATA[Wordpress的插件机制使得开发者可以方便地向系统添加自己需要的功能，而这是使得Wordpress得以在全世界流行的重要原因。一个 WordPress插件是一个程序,或者是用PHP脚本语言写出的一个或一些函数... ]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a title="Permanent Link to WordPress运行原理学习笔记之一：主题机制初探" rel="bookmark" href="../2008/07/theme.html">WordPress运行原理学习笔记之一：主题机制初探</a></p>
<p style="text-align: center;"><a title="Permanent Link to WordPress运行原理学习笔记之二：插件机制初探" rel="bookmark" href="../2008/07/plugins.html">WordPress运行原理学习笔记之二：插件机制初探</a></p>
<p><a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>的插件机制使得开发者可以方便地向系统添加自己需要的功能，而这是使得<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>得以在全世界流行的重要原因。一个 <a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>插件是一个程序,或者是用PHP脚本语言写出的一个或一些函数的集合，用来往<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> Webblog 里增加一些特定的特征和服务，它们可以通过<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>的 Plugin Application Program Interface (API) 提供的接入点和函数无缝的集成到Webblog里.</p>
<p>插件机制的实现主要依靠wp-includes目录下的plugin.php文件，该文件中包含了与插件机制相关的几个函数。在 <a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>内核运行时设立了一些标记(tag)，当遇到这些标记时，wordpess会自动调用挂载到 (hook to)这个标记上的所有函数，该功能是通过数组来实现的，其过程可以直观的表示为下图：</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-235 aligncenter" title="plugins" src="http://blog.shidelai.cn/wp-content/uploads//2008/07/plugins.png" alt="" width="385" height="224" /></p>
<p><strong><span style="color: #ff0000;">插件hook原理</span></strong></p>
<p>用户可以通过plugin API方便的将自定义的功能添加到系统相应的位置。需要指出的是：<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>定义了两种类型的插件API，行为(actions)和过滤器 (filters)：<!--inline-more--></p>
<p>Actions: Actions are the hooks that the <a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> core launches at specific points during execution, or when specific events occur. Your plugin can specify that one or more of its PHP functions are executed at these points, using the Action API.</p>
<p>Actions 是由<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>内核在执行过程中的特定的点或者特定的事件发生时调用的. 使用这些Action API,你的plugin可以指定在这些点去执行一个或者多个PHP函数.</p>
<p>Filters: Filters are the hooks that <a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions is executed to modify specific types of text at these times, using the Filter API.</p>
<p>Filters是一种hooks,由<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>调用,针对于各种形式的文本,让它们在进入数据或发送到浏览器之前得到调整. 使用Filter API,你的插件可以指定在某个时间执行一个或者多个PHP函数来修改特定类型的文本.</p>
<h4><strong>一、一个最简单的插件的开发过程</strong></h4>
<p>下面以<a href="http://blog.shidelai.cn" target="_blank">阿德</a>弄的一个a_simple_song插件(其实跟自带的那个插件是一样的，只是修改了歌词而已)为例简述整个过程三个步骤：编写插件要执行的代码，添加add_action()，进入后台激活它。<br />
该插件的功能是：在<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>后台左上角随机显示《一首简单的歌》这首歌的歌词。<br />
<strong>1．</strong>在<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>目录/wp-content/plugins/下新建一个文件：a_simple_song。<br />
<strong>2．</strong>用文本编辑工具打开它，输入&lt;?php    ?&gt;，接下来的工作就是在这里面填写相应PHP代码。<br />
<strong>3．</strong>首先按一定的格式编写本插件的一些信息，<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>读取它用于在后台显示，方便用户查看：</p>
<blockquote><p>/*<br />
Plugin Name: 一首简单的歌<br />
Plugin URI: http://blog.shidelai.cn/#<br />
Description: 这个插件会在后台随机显示《一首简单的歌》的歌词。<br />
Author: 施德来<br />
Version: 1.0<br />
Author URI: http://blog.shidelai.cn<br />
*/</p></blockquote>
<p><strong>4．</strong>编写要执行的操作：<br />
$lyrics = &#8220;一首简单的歌    //定义了一个字符串数组用于存储歌词<br />
这世界很复杂<br />
&#8230;&#8230;&#8230;<br />
你是我最珍贵的财富&#8221;;<br />
$lyrics = explode(&#8220;\n&#8221;, $lyrics);<br />
//explode()是PHP内置函数，功能就是分割字符串成字符数组<br />
$chosen = wptexturize( $lyrics[ mt_rand(0, count($lyrics) - 1) ] );<br />
/*<br />
给chosen赋一条随机的歌词<br />
wptexturize()在wp-includes\functions-formatting.php定义，功能：把某些特殊符号给自动转换化成标准码格式。<br />
mt_rand()函数返回它2个参数之间的随机值<br />
count()返回数组大小<br />
*/<br />
function a_simple_song() {<br />
global $chosen;<br />
echo &#8220;&lt;p id=&#8217;dolly&#8217;&gt;$chosen&lt;/p&gt;&#8221;;<br />
}<br />
//dolly样式表由后面定义。<br />
//显示歌词<br />
<strong>5．</strong>添加add_action()，将a_simple_song函数hook到main_foot tag的队列中<br />
add_action(&#8216;admin_footer&#8217;, &#8216;a_simple_song&#8217;);<br />
//admin_footer.php被调用时执行这个函数<br />
add_action(&#8216;admin_head&#8217;, &#8216;dolly_css&#8217;);<br />
//admin_head.php被调用时执行dolly_css()<br />
具体经过请参考下面的从源码解读a_simple_song插件的调用过程。</p>
<p>这样，保存为.php文件方到plugins文件夹下面，再到后台激活就可以了。效果如图</p>
<p><a href="http://blog.shidelai.cn/wp-content/uploads//2008/07/123.png"><img class="alignnone size-medium wp-image-237" title="123" src="http://blog.shidelai.cn/wp-content/uploads//2008/07/123-300x172.png" alt="" width="300" height="172" /></a></p>
<h4><strong>二、<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>对所有可用的插件的读取</strong></h4>
<p>在文件/<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>/wp-admin/plugins.php中，函数<br />
&lt;?php function get_plugins() ?&gt;<br />
用来从文件系统得到所有的插件。原理很简单，就是读取&#8217;wp-content/plugins&#8217;目录下的所有PHP文件。这个函数允许一级的子文件夹，也就是说在&#8217;wp-content/plugins&#8217;下面的PHP文件，以及所以在此目录下的一级子文件夹内部的PHP文件被列作插件的候选，用下面的函数去进一步提取插件信息。这样的好处是方便用户利用文件夹来对插件进行管理和组织。</p>
<blockquote><p>foreach($plugins as $plugin_file =&gt; $plugin_data) {<br />
&#8230;..<br />
$plugin_data['Title']       = wp_kses($plugin_data['Title'], $plugins_allowedtags);<br />
$plugin_data['Version']     = wp_kses($plugin_data['Version'], $plugins_allowedtags);<br />
$plugin_data['Description'] = wp_kses($plugin_data['Description'], $plugins_allowedtags);<br />
$plugin_data['Author']      = wp_kses($plugin_data['Author'], $plugins_allowedtags);<br />
$author = ( empty($plugin_data['Author']) ) ? &#8221; :  &#8216; &lt;cite&gt;&#8217; . sprintf( __(&#8216;By %s&#8217;), $plugin_data['Author'] ) . &#8216;.&lt;/cite&gt;&#8217;;<br />
&#8230;.<br />
}</p></blockquote>
<p>用于从插件的头部注释中获取插件的版本、名称、作者，等信息。</p>
<h4><strong>三、Active &amp; Deactive Plugin（插件的激活与注销）</strong></h4>
<p>Active（Deactive）插件的操作都在Plugins.php中，比如我要ple_Deactive &#8220;a_simsong&#8221;这个插件，最后的URL其实是这个样子：</p>
<p>http://localhost/<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>/wp-admin/plugins.php?action=deactivate&amp;plugin=a_simple_song.php&amp;_wpnonce=242c8cc3e5</p>
<p>其中，&#8221;Action&#8221;表示动作，值为&#8221;active&#8221;或者&#8221;deactivate&#8221;，而&#8221;Plugin&#8221;表示动作的对象插件，此处为&#8221;a_simple_song.php&#8221;。得到动作指令后，首先从数据库中取出当前已经激活的插件。</p>
<p>$active = get_option(&#8216;active_plugins&#8217;);</p>
<p>然后根据动作，重新生成已激活插件数组，和theme一样存入数据库，并重新加载此页。加载的时候就需要考虑这些已经激活的插件是怎么工作的了。</p>
<h4><strong>四、插件的加载过程</strong></h4>
<p><a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>中的每页都会包含&#8221;wp-config.php&#8221;文件，而在&#8221;wp-config.php&#8221;的最后有这样一句：</p>
<blockquote><p>&lt;?php require_once(ABSPATH.&#8217;wp-settings.php&#8217;); ?&gt;</p></blockquote>
<p>在&#8221;wp-settings.php&#8221;文件中，可以找到以下与插件相关的代码片断：</p>
<blockquote><p>if ( get_option(&#8216;active_plugins&#8217;) ) {<br />
$current_plugins = get_option(&#8216;active_plugins&#8217;);<br />
if ( is_array($current_plugins) ) {<br />
foreach ($current_plugins as $plugin) {<br />
if (&#8221; != $plugin &amp;&amp; file_exists(ABSPATH . PLUGINDIR . &#8216;/&#8217; . $plugin))<br />
include_once(ABSPATH . PLUGINDIR . &#8216;/&#8217; . $plugin);<br />
}<br />
}<br />
}</p></blockquote>
<p>可见，这段代码会取出系统中所有Actived的插件，并Include进来。所以在每页加载的时候，都会首先Include这些插件代码。这也就是为什么在主题模板里面可以直接调用插件的函数。</p>
<h4><strong>五、<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>通过插件机制注册系统事件</strong></h4>
<p><a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>中的很多功能也都是通过这种插件结构来实现的，<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>默认注册的系统事件保存在default-filter.php中。比如：<br />
&lt;?php add_filter(&#8216;the_content&#8217;, &#8216;convert_smilies&#8217;); ?&gt;<br />
用来将正文（content）中的笑脸符号转换为图像。<br />
add_filter(&#8216;comment_text&#8217;, &#8216;wptexturize&#8217;);<br />
用来将从数据库提取的正文中的特殊符号转化成标准格式的。</p>
<h4><strong>六、从源码解读a_simple_song插件的调用过程</strong></h4>
<p>在每一个<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">wordpress</a>/wp-admin/下面的文件（也就是后台显示需要的文件）的前面都有</p>
<blockquote><p>&lt;?php require_once(&#8216;admin-header.php&#8217;); ?&gt;</p></blockquote>
<p>而在&#8221;admin-head.php&#8221;中将会执行扩展点&#8221;admin_head&#8221;的所有扩展：</p>
<blockquote><p>&lt;?php  do_action(&#8216;admin_head&#8217;, &#8221;); ?&gt;</p></blockquote>
<p>这样，就会执行所有hook到admin_head上的函数<br />
Admin Page的Footer部分同样如此，</p>
<blockquote><p>&lt;?php do_action(&#8216;admin_footer&#8217;, &#8221;); ?&gt;</p></blockquote>
<p>这样，就会执行所有挂接到admin_footer的函数</p>
<p>a_simple_song里面有这么2行代码：</p>
<blockquote><p>add_action(&#8216;admin_footer&#8217;, &#8216;a_simple_song&#8217;);<br />
add_action(&#8216;admin_head&#8217;, &#8216;dolly_css&#8217;);</p></blockquote>
<p>将控制形式和内容2个函数挂到不同的tag上，控制文字显示位置和样式的dolly_css是先被调用，然后admin_foot.php被调用一次，a_simplesong()也就被调用一次，来显示歌词。</p>

	<b>[相关文章]</b>
	<ul class="st-related-posts">
	<li><a href="http://blog.shidelai.cn/2008/07/theme.html" title="WordPress运行原理学习笔记之一：主题机制初探 (2008-07-15)">WordPress运行原理学习笔记之一：主题机制初探</a> (2)</li>
	<li><a href="http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html" title="这个插件能为你的WordPress提供iphone, itouch主题 (2010-07-19)">这个插件能为你的WordPress提供iphone, itouch主题</a> (1)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/essay-photo.html" title="flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片 (2008-06-14)">flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html" title="flickrRSS高阶使用三部曲之一：显示flickr上的图片 (2008-06-13)">flickrRSS高阶使用三部曲之一：显示flickr上的图片</a> (5)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/wordpress-seo.html" title="抛弃All in One SEO Pack，WordPerss的SEO优化小结 (2008-06-29)">抛弃All in One SEO Pack，WordPerss的SEO优化小结</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.shidelai.cn/2008/07/plugins.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</title>
		<link>http://blog.shidelai.cn/2008/06/essay-photo.html</link>
		<comments>http://blog.shidelai.cn/2008/06/essay-photo.html#comments</comments>
		<pubDate>Sat, 14 Jun 2008 06:55:56 +0000</pubDate>
		<dc:creator>阿德</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[内容]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[文章相关]]></category>

		<guid isPermaLink="false">http://www.soulward.cn/?p=214</guid>
		<description><![CDATA[在WordPress插件：显示flickr上的图片－flickrRSS使用详解中我介绍了flickrRSS插件的简单应用，也列举了如何在留言框下面显示flickr上最新发布的标签为：hangzhou的图片。但阿德总感觉这样太单调了，... ]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html/" target="_blank">WordPress插件：显示flickr上的图片－flickrRSS使用详解</a>中我介绍了<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>插件的简单应用，也列举了如何在留言框下面显示<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上最新发布的标签为：hangzhou的图片。但阿德总感觉这样太单调了，可不可以在这个位置显示与这篇文章内容相关的图片呢？如果可以岂不是太爽了？答案当然是肯定的！要不就不会有这篇博文了，呵呵。<img onclick="grin(':cool:');" src="../wp-includes/images/smilies/icon_cool.gif" alt=":cool:" width="22" height="22" /></p>
<h2>方法</h2>
<p>1. 在打开主题文件夹下的single.php，在</p>
<blockquote><p>&lt;div class=&#8221;post&#8221; id=&#8221;post-&lt;?php the_ID(); ?&gt;&#8221;&gt;</p>
<p>&#8230;&#8230;&#8230;.</p>
<p>&lt;/div&gt;&lt;!&#8211;/post &#8211;&gt;</p></blockquote>
<p>之间添加如下代码：<br />
<!--inline-more--></p>
<blockquote><p>&lt;?php<br />
$tags = explode(&#8220;, &#8220;, get_the_tag_list(&#8221;,&#8217;, &#8216;,&#8221;));<br />
$first_tag=preg_replace(&#8216;|&lt;a\s.*?&gt;(.*?)&lt;/a&gt;|i&#8217;,   &#8216;\1&#8242;,   $tags[0]);<br />
?&gt;</p></blockquote>
<p>2. 将<a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html/" target="_blank">flickrRSS使用详解</a>里面提到的</p>
<blockquote><p>&lt;div id=&#8221;related-pic&#8221;&gt;<br />
&lt;?php get_flickrRSS(8, &#8220;community&#8221;, &#8220;$first_tag&#8221;, &#8220;square&#8221;, &#8220;&amp;nbsp;&#8221;, &#8220;&amp;nbsp;&#8221;); ?&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>修改为：</p>
<blockquote><p>&lt;div id=&#8221;related-pic&#8221;&gt;<br />
&lt;?php get_flickrRSS(8, &#8220;community&#8221;, &#8220;$first_tag&#8221;, &#8220;square&#8221;, &#8220;&amp;nbsp;&#8221;, &#8220;&amp;nbsp;&#8221;); ?&gt;<br />
&lt;/div&gt;</p>
<p>这段代码在新的flickr5.0版本中不适用了，具体解决方法看这里<a title="Permanent Link to flickrRSS高阶应用三部曲之新版本flickrRss 5.0补录" rel="bookmark" href="../2009/03/flickrrss-50.html">flickrRSS高阶应用三部曲之新版本flickrRss 5.0补录</a></p></blockquote>
<p>另外你可以参考<a title="Permanent Link to 不同浏览器里图片大小不同的解决方法" rel="bookmark" href="../2008/12/photo-css-max.html">不同浏览器里图片大小不同的解决方法</a></p>
<p><strong>原理</strong>就是显示<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上标签与文章第一个标签相同的图片，但是<span style="color: #ff0000;"><strong>注意：文章的第一个标签并不是你在编辑时候输入的第一个标签，而是按照字母排序的第一个标签。</strong></span></p>
<p>当然你也可以再这设置个$second_tag让它显示包含头2个标签的图片。不过我发现这样会很少有符合条件的图片，很多情况下一张都没有（主要是因为<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上的标签英文居多，我们博客的标签中文居多）。</p>
<h2>Advanced</h2>
<p>发挥你的想象力，get_flickrRSS()真的是很好很强大阿，它一共可以设置7个参数，下面的参数介绍你或许用得着。</p>
<ol>
<li><code>$num_items</code> &#8211; how many photos you want to appear   显示多少图片</li>
<li><code>$type</code> &#8211; specify <em>user, set, favorite, group or community</em> photosream    设置是在用户的所有图片，还是用户的收藏，还是。。。。中搜索</li>
<li><code>$tags</code> &#8211; a comma separated list of tags (with no spaces)  标签</li>
<li><code>$imagesize</code> &#8211; <em>square, thumbnail, medium or large  图片大小<br />
</em></li>
<li><code>$before_image</code> &#8211; html appearing before each photo  插入每张图片之前的html代码</li>
<li><code>$after_image</code> &#8211; html appearing after each photo   插入每张图片之后的html代码</li>
<li><code>$id_number</code> &#8211; specify a user id (or group name)   在特定的用户或者组中搜索</li>
<li><code>$set_id</code> &#8211; specify the set id (found in set url)</li>
</ol>

	<b>[相关文章]</b>
	<ul class="st-related-posts">
	<li><a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html" title="flickrRSS高阶使用三部曲之一：显示flickr上的图片 (2008-06-13)">flickrRSS高阶使用三部曲之一：显示flickr上的图片</a> (5)</li>
	<li><a href="http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html" title="这个插件能为你的WordPress提供iphone, itouch主题 (2010-07-19)">这个插件能为你的WordPress提供iphone, itouch主题</a> (1)</li>
	<li><a href="http://blog.shidelai.cn/2008/07/plugins.html" title="WordPress运行原理学习笔记之二：插件机制初探 (2008-07-15)">WordPress运行原理学习笔记之二：插件机制初探</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2008/07/gravatars2-flickrrss.html" title="flickrRSS高阶使用三部曲之三：配合Gravatar2让flickr的图片作为WordPress留言的随机头像 (2008-07-4)">flickrRSS高阶使用三部曲之三：配合Gravatar2让flickr的图片作为WordPress留言的随机头像</a> (2)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/wordpress-seo.html" title="抛弃All in One SEO Pack，WordPerss的SEO优化小结 (2008-06-29)">抛弃All in One SEO Pack，WordPerss的SEO优化小结</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.shidelai.cn/2008/06/essay-photo.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>flickrRSS高阶使用三部曲之一：显示flickr上的图片</title>
		<link>http://blog.shidelai.cn/2008/06/how-to-flickrrss.html</link>
		<comments>http://blog.shidelai.cn/2008/06/how-to-flickrrss.html#comments</comments>
		<pubDate>Fri, 13 Jun 2008 07:30:32 +0000</pubDate>
		<dc:creator>阿德</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[flickrRSS]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.soulward.cn/?p=209</guid>
		<description><![CDATA[通过flickrRSS你不仅仅是可以显示你自己flickr帐号上的图片，你也可以在WordPress博客中任何你想要的位置显示你所设定的flickr上的图片。比如：本网页留言框下面显示的是flickr上Tag为杭州的最新... ]]></description>
			<content:encoded><![CDATA[<p>通过<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>你不仅仅是可以显示你自己<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>帐号上的图片，你也可以在<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>博客中任何你想要的位置显示你所设定的<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上的图片。比如：本网页留言框下面显示的是<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上Tag为杭州的最新上传的图片，侧边栏上“养眼美图”部分就是<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>的<span class="current">Widget</span>，通过后台添加即可。</p>
<h2>下载＆安装</h2>
<p><strong><a href="http://eightface.com/mint/pepper/orderedlist/downloads/download.php?file=http%3A//eightface.com/files/wordpress/flickrRSS.zip">flickrRSS 4.0</a></strong> — for WP 2.5<br />
<strong><a href="http://eightface.com/mint/pepper/orderedlist/downloads/download.php?file=http%3A//eightface.com/files/wordpress/flickrRSS.old.zip">flickrRSS 3.5</a></strong> — for WP 2.3</p>
<p>解压缩后复制到plugins目录下即可，然后后台激活。</p>
<blockquote><p>注意：由于<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>是国外网站，速度会比较慢，如果需要将图片在本地缓存，你需要新建一个可写的目录用于缓存图片。这样，图片第一次被浏览时候会下载到改目录下，下次就直接从该目录读取图片了。</p></blockquote>
<p>比如在wp-content目录下新建一个文件夹命名为<strong>cache</strong>。</p>
<h2>设置</h2>
<p><!--inline-more--><br />
进入setting（设置）下的<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>设置页面，这里设置的是默认情况下<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>输出的内容（<code>用于侧边栏的Widget和&lt;?php get_flickrRSS(); ?&gt;）</code>以及缓存文件夹的路径。</p>
<p>1. 点击<strong>ID Number</strong>后面的 <a href="http://idgettr.com/">idGettr</a> 输入一个Photostream Address（形如：http://www.<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>.com/photos/delai，就是每个<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>用户主页的网址，你可以找个自己比较喜欢的用户的主页地址）。将获得的ID填入ID Number后面的文本框。</p>
<p>2. <strong>Display</strong>设置的是显示该用户的哪些图片，以什么方式显示，如图片大小，显示多少张等等。</p>
<p>在侧边栏中添加<a href="http://blog.shidelai.cn/tag/flickrrss" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickrRSS">flickrRSS</a>的Wigdet，应该可以显示图片了。</p>
<p>3. 如果要使用本地缓存功能，勾上Enable the image cache，然后设置下路径：</p>
<blockquote><p>URL： http://blog.shidelai.cn/wp-content/cache/</p>
<p>Full Path：/home/yourname/domains/soulward.cn/public_html/wp-content/cache</p></blockquote>
<p>你可以参照一下我的进行设置，如果你装过Gravatar2的话那么打开它的设置面板就可以很容易知道Full Path里面该填什么了。</p>
<h2>使用</h2>
<p>前面提到，出了能在侧边栏显示图片之外，我们还可以在主题中插入代码使得可以在博客的任意位置显示符合各种要求设定的<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>图片。阿德只简单地在留言框下面显示最新上传的<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上Tag为&#8217;hangzhou&#8217;的图片，并且点击图片后是在新窗口打开对应的<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>页面，而不是默认地在本地窗口打开，咱不能让<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>抢了生意不是？。</p>
<p>方法：</p>
<blockquote><p>1. 在single.php中最后一个&lt;/div&gt;前面添加</p>
<p>&lt;ul&gt;<br />
&lt;div class=&#8221;flickrtag&#8221;&gt;<br />
&lt;li&gt;&lt;h3 class=&#8221;sidebartitle&#8221;&gt;<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">Flickr</a>上的杭州&lt;/h3&gt;<br />
&lt;?php get_flickrRSS(9, &#8220;community&#8221;, &#8220;hangzhou&#8221;,&#8221;square&#8221;); ?&gt;<br />
&lt;/li&gt;<br />
&lt;/div&gt;<br />
&lt;ul&gt;</p>
<p>如有疑问可以参看下我的<a href="http://blog.shidelai.cn/wp-content/uploads/2008/06/singlephp.zip">single.php</a>源码</p>
<p>2. 在style.css中添加</p>
<p>.flickrtag a:active{<br />
text:expression(target=&#8221;_blank&#8221;);<br />
}</p>
<p>测试下吧，呵呵</p></blockquote>
<p>当然，你可以发挥自己的想象力，比如最新上传的tag为艳照门的图片阿什么的。关于get_flickrRSS函数的参数和使用例子<a href="http://eightface.com/wordpress/flickrrss/">作者的网站</a>上以及有了，可以参考一下。</p>

	<b>[相关文章]</b>
	<ul class="st-related-posts">
	<li><a href="http://blog.shidelai.cn/2008/06/essay-photo.html" title="flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片 (2008-06-14)">flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html" title="这个插件能为你的WordPress提供iphone, itouch主题 (2010-07-19)">这个插件能为你的WordPress提供iphone, itouch主题</a> (1)</li>
	<li><a href="http://blog.shidelai.cn/about" title="关于本站 (2008-05-6)">关于本站</a> (41)</li>
	<li><a href="http://blog.shidelai.cn/2008/07/plugins.html" title="WordPress运行原理学习笔记之二：插件机制初探 (2008-07-15)">WordPress运行原理学习笔记之二：插件机制初探</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2008/07/gravatars2-flickrrss.html" title="flickrRSS高阶使用三部曲之三：配合Gravatar2让flickr的图片作为WordPress留言的随机头像 (2008-07-4)">flickrRSS高阶使用三部曲之三：配合Gravatar2让flickr的图片作为WordPress留言的随机头像</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.shidelai.cn/2008/06/how-to-flickrrss.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>关于本站</title>
		<link>http://blog.shidelai.cn/about</link>
		<comments>http://blog.shidelai.cn/about#comments</comments>
		<pubDate>Tue, 06 May 2008 13:29:50 +0000</pubDate>
		<dc:creator>阿德</dc:creator>
				<category><![CDATA[未分类日志]]></category>
		<category><![CDATA[Collapsible More Link]]></category>
		<category><![CDATA[Favicon Manager]]></category>
		<category><![CDATA[Feedsky Feed 插件]]></category>
		<category><![CDATA[Flickr Photo Gallery]]></category>
		<category><![CDATA[flickrRSS]]></category>
		<category><![CDATA[Google XML Sitemaps]]></category>
		<category><![CDATA[Gravatars2]]></category>
		<category><![CDATA[Readers_Post]]></category>
		<category><![CDATA[Simple Tags]]></category>
		<category><![CDATA[Subscribe To Comments]]></category>
		<category><![CDATA[Wordpress Thread Comment]]></category>
		<category><![CDATA[WP Grins]]></category>
		<category><![CDATA[中文 WordPress 工具箱]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?page_id=6</guid>
		<description><![CDATA[基本情况 本站是我的个人博客，于2008年5月创建，目前使用的是wordpress博客系统和Dreamhost主机，关注时事、生活、IT。 自我介绍 施德来，男，浙江温州瑞安人氏，目前是浙江大学计算机学院研... ]]></description>
			<content:encoded><![CDATA[<h3><strong>基本情况</strong></h3>
<p>本站是我的个人博客，于2008年5月创建，目前使用的是<a href="http://www.meyu.cn/" target="_blank">wordpress</a>博客系统和Dreamhost主机，关注时事、生活、IT。</p>
<h3><strong>自我介绍</strong></h3>
<p><a href="http://blog.shidelai.cn" target="_blank">施德来</a>，男，浙江温州瑞安人氏，目前是浙江大学计算机学院研二学生。</p>
<p>E-mail：<a href="http://blog.shidelai.cn/wp-content/uploads//2008/07/qq.png"><img class="alignnone size-full wp-image-240" title="qq" src="http://blog.shidelai.cn/wp-content/uploads//2008/07/qq.png" alt="" width="126" height="21" /></a></p>
<p>G-Talk：<a href="http://blog.shidelai.cn/wp-content/uploads//2008/07/gmail.png"><img class="alignnone size-full wp-image-238" title="gmail" src="http://blog.shidelai.cn/wp-content/uploads//2008/07/gmail.png" alt="" width="169" height="21" /></a></p>
<p>MSN：<a href="http://blog.shidelai.cn/wp-content/uploads//2008/07/hotmail.png"><img class="alignnone size-full wp-image-239" title="hotmail" src="http://blog.shidelai.cn/wp-content/uploads//2008/07/hotmail.png" alt="" width="132" height="21" /></a></p>
<p>QQ：84378265<a href="http://sighttp.qq.com/cgi-bin/check?sigkey=508269103b5a33e9f277f188d6c7b2d66e262fe4e55b63b618d6e004d531fdd9"><img src="http://wpa.qq.com/pa?p=1:84378265:1" alt="" /></a></p>
<p>My Google Profile：<span>http://www.google.com/profiles/</span><span>shidelai</span></p>
<p>My <a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">Flickr</a> photostream：<a href="http://www.flickr.com/photos/delai">http://www.flickr.com/photos/delai</a></p>
<h3><strong>友情链接</strong></h3>
<p>本博客渴望与任何合法的网站交换友情链接，请在网站上做好友情链接后在本页面留意或者发E-mail与我联系。</p>
<p>我的链接样式：</p>
<p>名称：阿德日志</p>
<p>网址：http://www.soulward.cn</p>
<p>描述：施德来的个人博客，关注时事、IT、生活、Linux、<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>。</p>
<h3><strong>版权声明</strong></h3>
<p>无特别说明，本站内容全部为原创，遵循<a href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/" target="_blank">署名-非商业性使用-相同方式共享 2.5的创作共用协议</a>，转载文章请注明 : <a href="../" target="_blank">阿德日志</a>(htpp://www.soulward.cn)。</p>
<h3><strong>本站所使用的插件</strong></h3>
<p>1．<a title="Visit plugin homepage" href="http://yanfeng.org/blog/wordpress/kit">中文 WordPress 工具箱</a></p>
<p>解决官方 <a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a> 没有照顾到的中文相关问题。使用这个插件，你可以显示随机文章，最新留言（最新引用），留言最多文章，发表评论最多的网友。</p>
<p>2．<a title="Visit plugin homepage" href="http://www.chroder.com/archives/2005/12/28/wordpress-plugin-inline-collapsible-more-link/">Collapsible More Link</a></p>
<p>由于首页，搜索结果页面等都是显示多篇文章，特别是这定显示全文而不是显示摘要的时候，如果文章太长将会影响到用户体验。使用这个插件可以在编辑日志时在<br />
相应HTML代码中添加<br />
&lt;!&#8212;inline-more&#8212;&gt;，使得文章在这个位置以下的部分如图所示，会被一个文字链接代替，点击它可以显示全文。</p>
<p>3．<a title="Visit plugin homepage" href="http://rpc.feedsky.com/plugins">Feedsky Feed 插件</a></p>
<p>该插件是Feedsky为<a href="http://blog.shidelai.cn/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with wordpress">WordPress</a>用户专门提供的功能性辅助插件，用以快速直接的使用Feedsky的相关服务。最重要的功能就是博客每次更新之后会让feedsky立即提取博客rss的更新。如果是使用Feedsky管理feed的话，这个插件就很有用了。</p>
<p>4．<a title="Visit plugin homepage" href="http://www.digitalramble.com/favicon-manager-wordpress-plugin/">Favicon Manager</a><br />
设置网站小图表。</p>
<p>5．<a title="Visit plugin homepage" href="http://www.tantannoodles.com/toolkit/photo-album/">Flickr Photo Gallery</a><br />
可以很方便地在博客里制作基于<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>的相册，同时也有侧栏widget显示图片的功能。</p>
<p>6．<a title="Visit plugin homepage" href="http://www.aufzynden.de/post-readers-wp-plugin/">Readers_Post</a><br />
提供一些函数，用于显示文章点击量，评论数等信息。如：single.php中的</p>
<p>&lt;?php if(function_exists(&#8216;readers&#8217;)) { readers(点击量：,次｜); } ?&gt;<br />
&lt;!&#8211; 如果使用了 Readers_Post 插件，这里会输出文章的浏览量 &#8211;&gt;</p>
<p>7．<a title="Visit plugin homepage" href="http://wordpress.org/extend/plugins/simple-tags">Simple Tags</a><br />
实现了对Tag的智能化管理，并有在每篇文章后面显示相关文章链接的功能。</p>
<p>8．<a title="Visit plugin homepage" href="http://alexking.org/projects/wordpress">WP Grins</a><br />
使可以在留言框里面使用表情。</p>
<p>9．<a title="Visit plugin homepage" href="http://eightface.com/wordpress/flickrrss/">flickrRSS</a></p>
<p>显示<a href="http://blog.shidelai.cn/tag/flickr" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with flickr">flickr</a>上的图片具体可以看：</p>
<p><a title="Permanent link to flickrRSS高阶使用三部曲之一：显示flickr上的图片" rel="bookmark" href="../2008/06/how-to-flickrrss.html">flickrRSS高阶使用三部曲之一：显示flickr上的图片</a></p>
<p><a title="Permanent link to flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片" rel="bookmark" href="../2008/06/essay-photo.html">flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</a></p>
<p>10 . <a title="Visit plugin homepage" href="http://zenpax.com/gravatars2/">Gravatars2</a></p>
<p>在留言框中显示头像：</p>
<p><a title="Permanent link to flickrRSS高阶使用三部曲之三：让flickr的图片作为WordPress留言的随机头像" rel="bookmark" href="../2008/07/gravatars2-flickrrss.html">flickrRSS高阶使用三部曲之三：配合Gravatar2让flickr的图片作为WordPress留言的随机头像</a></p>
<p>11 . <a title="Visit plugin homepage" href="http://www.arnebrachhold.de/redir/sitemap-home/">Google XML Sitemaps</a></p>
<p>网站SEO必备。</p>
<p>12 . <a title="Visit plugin homepage" href="http://txfx.net/code/wordpress/subscribe-to-comments/">Subscribe To Comments</a></p>
<p>如果有人填写了邮箱地址留了言，并勾选了这个插件的“有新的回复请邮件通知我”，那么下次有新的评论系统会自动发email给指定的邮箱。</p>
<p>13 . <a title="Visit plugin homepage" href="http://blog.2i2j.com/plugins/wordpress-thread-comment">WordPress Thread Comment</a></p>
<p>许用户回复某个特定的评论并集中显示相似评论, 可以自由选择是否使用ajax。</p>
<p>14 . <a href="http://www.garinungkadol.com/downloads/post-avatar/">Post Avatar</a></p>
<p>在文章编辑页面添加一个选择图片的选项，可以从服务器特定的文件夹中选择一张图片，作为文章的开题图片，如http://www.soulward.cn/2008/11/zju-career.html。这个插件很适用于文章经常设计某些主题的博客。</p>

	<b>[相关文章]</b>
	<ul class="st-related-posts">
	<li><a href="http://blog.shidelai.cn/2008/06/how-to-flickrrss.html" title="flickrRSS高阶使用三部曲之一：显示flickr上的图片 (2008-06-13)">flickrRSS高阶使用三部曲之一：显示flickr上的图片</a> (5)</li>
	<li><a href="http://blog.shidelai.cn/2010/07/wptouch-iphone-theme.html" title="这个插件能为你的WordPress提供iphone, itouch主题 (2010-07-19)">这个插件能为你的WordPress提供iphone, itouch主题</a> (1)</li>
	<li><a href="http://blog.shidelai.cn/2008/07/plugins.html" title="WordPress运行原理学习笔记之二：插件机制初探 (2008-07-15)">WordPress运行原理学习笔记之二：插件机制初探</a> (7)</li>
	<li><a href="http://blog.shidelai.cn/2009/03/flickrrss-50.html" title="flickrRSS高阶应用三部曲之新版本flickrRss 5.0补录 (2009-03-25)">flickrRSS高阶应用三部曲之新版本flickrRss 5.0补录</a> (12)</li>
	<li><a href="http://blog.shidelai.cn/2008/06/essay-photo.html" title="flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片 (2008-06-14)">flickrRSS高阶使用三部曲之二：在WordPress博客中显示与文章内容相关的Flickr图片</a> (7)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://blog.shidelai.cn/about/feed</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
	</channel>
</rss>
