<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>《WordPress 侧边栏带头像的最新评论》的评论</title>
	<atom:link href="http://wange.im/recent-comment-with-avatar-in-wordpress.html/feed" rel="self" type="application/rss+xml" />
	<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html</link>
	<description>My Life, My Studio...</description>
	<lastBuildDate>Tue, 07 Feb 2012 07:56:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>作者：WordPress 非插件侧栏带头像最新评论 &#124; 我要进步</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-131959</link>
		<dc:creator>WordPress 非插件侧栏带头像最新评论 &#124; 我要进步</dc:creator>
		<pubDate>Sat, 14 Jan 2012 13:14:32 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-131959</guid>
		<description>[...] WordPress 非插件侧栏带头像最新评论：在主题模板的侧边栏模板sidebar.php适当位置添加以下代码其中的“板凳”换成自己的博主作者名，主要是为了限制输出博主的最新评论。然后保存文件即可。来源提醒：其中的CSS样式需要自己定义。 [...]</description>
		<content:encoded><![CDATA[<p>[...] WordPress 非插件侧栏带头像最新评论：在主题模板的侧边栏模板sidebar.php适当位置添加以下代码其中的“板凳”换成自己的博主作者名，主要是为了限制输出博主的最新评论。然后保存文件即可。来源提醒：其中的CSS样式需要自己定义。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：飞天猫</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-128780</link>
		<dc:creator>飞天猫</dc:creator>
		<pubDate>Mon, 10 Oct 2011 16:17:25 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-128780</guid>
		<description>我也刚试了这个代码,只显示默认的头像,别人也有的头像没有显示,请问怎么设置呢?</description>
		<content:encoded><![CDATA[<p>我也刚试了这个代码,只显示默认的头像,别人也有的头像没有显示,请问怎么设置呢?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：toptpe</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-128619</link>
		<dc:creator>toptpe</dc:creator>
		<pubDate>Tue, 04 Oct 2011 10:09:36 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-128619</guid>
		<description>感谢万大侠啊，不过就是我在每个头像之前还有2个实心句号，一个大，一个小，感觉只要留个小的就可以了，这是怎么回事情呢！请教了！</description>
		<content:encoded><![CDATA[<p>感谢万大侠啊，不过就是我在每个头像之前还有2个实心句号，一个大，一个小，感觉只要留个小的就可以了，这是怎么回事情呢！请教了！</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：河河</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-128071</link>
		<dc:creator>河河</dc:creator>
		<pubDate>Thu, 15 Sep 2011 07:34:25 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-128071</guid>
		<description>我在哪呢，我试试好多地方都不行</description>
		<content:encoded><![CDATA[<p>我在哪呢，我试试好多地方都不行</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ageng</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-127840</link>
		<dc:creator>ageng</dc:creator>
		<pubDate>Thu, 08 Sep 2011 04:14:50 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-127840</guid>
		<description>怎么我弄过后,头像都是一样的?</description>
		<content:encoded><![CDATA[<p>怎么我弄过后,头像都是一样的?</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ageng</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-127655</link>
		<dc:creator>ageng</dc:creator>
		<pubDate>Mon, 05 Sep 2011 02:58:20 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-127655</guid>
		<description>正需要呢,谢谢分享,我拿过去试试 :razz: !</description>
		<content:encoded><![CDATA[<p>正需要呢,谢谢分享,我拿过去试试 <img src='http://wange.im/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  !</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：ttway</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-126040</link>
		<dc:creator>ttway</dc:creator>
		<pubDate>Thu, 25 Aug 2011 14:36:50 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-126040</guid>
		<description>lai kan kan</description>
		<content:encoded><![CDATA[<p>lai kan kan</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Jin Qiang</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-125787</link>
		<dc:creator>Jin Qiang</dc:creator>
		<pubDate>Mon, 22 Aug 2011 17:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-125787</guid>
		<description>头像缓存版代码里，少一个图片后缀名 &quot;.jpg&quot;，否则调用不出来的</description>
		<content:encoded><![CDATA[<p>头像缓存版代码里，少一个图片后缀名 ".jpg"，否则调用不出来的</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：Wordpress侧栏无插件显示最新评论&#124;空中楼阁</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-122906</link>
		<dc:creator>Wordpress侧栏无插件显示最新评论&#124;空中楼阁</dc:creator>
		<pubDate>Sat, 23 Jul 2011 08:19:54 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-122906</guid>
		<description>[...] 在wordpress下有很多优秀的评论插件可以实现侧栏评论显示，但是要为这个单独装一个插件感觉有点小提大做。而且在之前修改这个主题时，博客侧栏是完全由后台小工具widget选择输出的。我们都知道wordpress本身是具有最新评论显示的，但是它的样式是：某某在某某文章发表评论，明显没直接显示评论内容来的更有意义。所以第一想到的是到 default-widgets.php文件里修改评论样式，经过确认是可以把样式修改成 某某：评论内容，不过最后一个东西没办法搞定，无法屏蔽自己的留言，这样造成有时整个评论都是显示自己的内容。不过最后在万戈这里找到另外一种方法，直接在侧栏里加代码(不从小工具里选，要增加额外代码)，效果如右边，这样已经是在无插件下最好的效果了。 代码如下：  &lt;?php global $wpdb; $sql = &#8221;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved,comment_author_email, comment_type,comment_author_url, SUBSTRING(comment_content,1,25) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = &#8217;1&#8242; AND comment_type = &#8221; AND comment_author != &#8216;mumu&#8217; AND post_password = &#8221; ORDER BY comment_date_gmt DESC LIMIT10&#8243;; $comments = $wpdb-&gt;get_results($sql); $output = $pre_HTML; foreach ($comments as $comment) { $output .=&#8221;n&lt;li&gt;&#8221;.get_avatar(get_comment_author_email(&#8216;comment_author_email&#8217;), 18). &#8221; &lt;a href=&#8221;&quot; . get_permalink($comment-&gt;ID) . &#8221;#comment-&#8221; .$comment-&gt;comment_ID . &#8221;&#8221; title=&#8221;&quot; . $comment-&gt;post_title . &#8221; 上的评论&#8221;&gt;&#8221;. strip_tags($comment-&gt;comment_author) .&#8221;： &#8220;.strip_tags($comment-&gt;com_excerpt) .&#8221;&lt;/a&gt;&lt;/li&gt;&#8221;; } $output .= $post_HTML; $output = convert_smilies($output); echo $output; ?&gt; [...]</description>
		<content:encoded><![CDATA[<p>[...] 在wordpress下有很多优秀的评论插件可以实现侧栏评论显示，但是要为这个单独装一个插件感觉有点小提大做。而且在之前修改这个主题时，博客侧栏是完全由后台小工具widget选择输出的。我们都知道wordpress本身是具有最新评论显示的，但是它的样式是：某某在某某文章发表评论，明显没直接显示评论内容来的更有意义。所以第一想到的是到 default-widgets.php文件里修改评论样式，经过确认是可以把样式修改成 某某：评论内容，不过最后一个东西没办法搞定，无法屏蔽自己的留言，这样造成有时整个评论都是显示自己的内容。不过最后在万戈这里找到另外一种方法，直接在侧栏里加代码(不从小工具里选，要增加额外代码)，效果如右边，这样已经是在无插件下最好的效果了。 代码如下：  &lt;?php global $wpdb; $sql = &#8221;SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved,comment_author_email, comment_type,comment_author_url, SUBSTRING(comment_content,1,25) AS com_excerpt FROM $wpdb-&gt;comments LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID = $wpdb-&gt;posts.ID) WHERE comment_approved = &#8217;1&#8242; AND comment_type = &#8221; AND comment_author != &#8216;mumu&#8217; AND post_password = &#8221; ORDER BY comment_date_gmt DESC LIMIT10&#8243;; $comments = $wpdb-&gt;get_results($sql); $output = $pre_HTML; foreach ($comments as $comment) { $output .=&#8221;n&lt;li&gt;&#8221;.get_avatar(get_comment_author_email(&#8216;comment_author_email&#8217;), 18). &#8221; &lt;a href=&#8221;&quot; . get_permalink($comment-&gt;ID) . &#8221;#comment-&#8221; .$comment-&gt;comment_ID . &#8221;&#8221; title=&#8221;&quot; . $comment-&gt;post_title . &#8221; 上的评论&#8221;&gt;&#8221;. strip_tags($comment-&gt;comment_author) .&#8221;： &#8220;.strip_tags($comment-&gt;com_excerpt) .&#8221;&lt;/a&gt;&lt;/li&gt;&#8221;; } $output .= $post_HTML; $output = convert_smilies($output); echo $output; ?&gt; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>作者：延迪博客</title>
		<link>http://wange.im/recent-comment-with-avatar-in-wordpress.html/comment-page-1#comment-119719</link>
		<dc:creator>延迪博客</dc:creator>
		<pubDate>Mon, 27 Jun 2011 18:05:58 +0000</pubDate>
		<guid isPermaLink="false">http://wange.im/?p=2406#comment-119719</guid>
		<description>我用了这些代码，感觉没反应！先用插件了</description>
		<content:encoded><![CDATA[<p>我用了这些代码，感觉没反应！先用插件了</p>
]]></content:encoded>
	</item>
</channel>
</rss>

