<?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>Comments on: 让WordPress的最近评论Widget直接显示评论内容</title>
	<atom:link href="http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/feed" rel="self" type="application/rss+xml" />
	<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html</link>
	<description>简单地生活，简单的生活</description>
	<lastBuildDate>Sat, 06 Mar 2010 02:36:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: 湘湘</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5873</link>
		<dc:creator>湘湘</dc:creator>
		<pubDate>Sun, 25 Oct 2009 17:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5873</guid>
		<description>我正在为这个东东烦脑,哎,我是菜鸟,看起来很复杂,不知道能否把它弄好</description>
		<content:encoded><![CDATA[<p>我正在为这个东东烦脑,哎,我是菜鸟,看起来很复杂,不知道能否把它弄好</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 中国挪动</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5869</link>
		<dc:creator>中国挪动</dc:creator>
		<pubDate>Thu, 01 Oct 2009 19:07:57 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5869</guid>
		<description>能不能这样显示
XX在XX主题写下XXXXXX</description>
		<content:encoded><![CDATA[<p>能不能这样显示<br />
XX在XX主题写下XXXXXX</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Wyatt</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5868</link>
		<dc:creator>Wyatt</dc:creator>
		<pubDate>Sun, 20 Sep 2009 14:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5868</guid>
		<description>请问，你边栏的“最新评论”用的是什么插件啊？</description>
		<content:encoded><![CDATA[<p>请问，你边栏的“最新评论”用的是什么插件啊？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 江湖传闻</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5796</link>
		<dc:creator>江湖传闻</dc:creator>
		<pubDate>Wed, 25 Feb 2009 09:20:27 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5796</guid>
		<description>先评论，再说，呵呵，比较喜欢这个主题，跟我的有些神似，但是布局更漂亮，呵呵</description>
		<content:encoded><![CDATA[<p>先评论，再说，呵呵，比较喜欢这个主题，跟我的有些神似，但是布局更漂亮，呵呵</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 花渐渐的博客 &#187; Blog Archive &#187; WordPress最近评论Widget直接显示评论内容</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5743</link>
		<dc:creator>花渐渐的博客 &#187; Blog Archive &#187; WordPress最近评论Widget直接显示评论内容</dc:creator>
		<pubDate>Wed, 10 Dec 2008 16:31:17 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5743</guid>
		<description>[...] 那就用这个链接，这位老兄贴的方法比我好。链接地址 [...]</description>
		<content:encoded><![CDATA[<p>[...] 那就用这个链接，这位老兄贴的方法比我好。链接地址 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 博狗 &#187; 让widget显示评论内容 - 博客世界，有博乃大</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5106</link>
		<dc:creator>博狗 &#187; 让widget显示评论内容 - 博客世界，有博乃大</dc:creator>
		<pubDate>Fri, 01 Aug 2008 17:58:37 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5106</guid>
		<description>[...] 对于wordpress的widget功能确实强大，可以自由的定制sitebar显示的内容。wordpress内置的几个widget都蛮好用，不过有点郁闷的是显示最新评论的功能。在sitebar中仅能显示出评论者以及所评论的相应文章，并不能显示出评论的内容。在看过leo所写的让WordPress的最近评论Widget直接显示评论内容一文后，Johnny感觉是蛮不错，可惜是要修改不少代码，这样一来，对于菜鸟级别的是具有一定难度，再者wordpress每次升级后，都得重新修改这部分代码，如果忘记修改了又不能实现该功能。所以johnny想想有没更简单的方式来实现。接触过中文wordpress工具箱的同学都应该知道它有一个功能就是可以显示最新的留言，而其显示的方式正是直接显示评论内容，只可惜用到该功能必须将PHP代码添加到模板中，又是得改代码的事，不方便。其实只要让widget能运行PHP，一切都可以解决了。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 对于wordpress的widget功能确实强大，可以自由的定制sitebar显示的内容。wordpress内置的几个widget都蛮好用，不过有点郁闷的是显示最新评论的功能。在sitebar中仅能显示出评论者以及所评论的相应文章，并不能显示出评论的内容。在看过leo所写的让WordPress的最近评论Widget直接显示评论内容一文后，Johnny感觉是蛮不错，可惜是要修改不少代码，这样一来，对于菜鸟级别的是具有一定难度，再者wordpress每次升级后，都得重新修改这部分代码，如果忘记修改了又不能实现该功能。所以johnny想想有没更简单的方式来实现。接触过中文wordpress工具箱的同学都应该知道它有一个功能就是可以显示最新的留言，而其显示的方式正是直接显示评论内容，只可惜用到该功能必须将PHP代码添加到模板中，又是得改代码的事，不方便。其实只要让widget能运行PHP，一切都可以解决了。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 替换wordpress默认的widgets : : 轶侠的网上小窝</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-5036</link>
		<dc:creator>替换wordpress默认的widgets : : 轶侠的网上小窝</dc:creator>
		<pubDate>Mon, 16 Jun 2008 13:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-5036</guid>
		<description>[...] 起因：让WordPress的最近评论Widget直接显示评论内容，而那个Get Recent Comments插件功能太多，太庞大。我用不着，看着好好的wp默认的widget浪费掉于心不忍，又不想改源代码，懒得写插件。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 起因：让WordPress的最近评论Widget直接显示评论内容，而那个Get Recent Comments插件功能太多，太庞大。我用不着，看着好好的wp默认的widget浪费掉于心不忍，又不想改源代码，懒得写插件。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NATSON 记事</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-4737</link>
		<dc:creator>NATSON 记事</dc:creator>
		<pubDate>Mon, 02 Jun 2008 14:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-4737</guid>
		<description>&lt;strong&gt;直接显示wordpress的评论...&lt;/strong&gt;

每次更新都TNND要改一遍，郁闷，到处上网找方案，干脆直接贴过来存档
author : Leo Space
修改WordPress的/includes/widgets.php可以达到目的。
打开widgets.php文件，首先添加一个自定义函数my_utf8_trim()（....</description>
		<content:encoded><![CDATA[<p><strong>直接显示wordpress的评论...</strong></p>
<p>每次更新都TNND要改一遍，郁闷，到处上网找方案，干脆直接贴过来存档<br />
author : Leo Space<br />
修改WordPress的/includes/widgets.php可以达到目的。<br />
打开widgets.php文件，首先添加一个自定义函数my_utf8_trim()（....</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leo</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-2729</link>
		<dc:creator>Leo</dc:creator>
		<pubDate>Tue, 26 Feb 2008 03:50:53 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-2729</guid>
		<description>@&lt;a href=&quot;#comment-2728&quot; rel=&quot;nofollow&quot;&gt;KHui&lt;/a&gt;:

没错，确实可以这样实现，不过这样的话换次主题就要修改一次sidebar.php。

把链接给我看看。</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-2728" rel="nofollow">KHui</a>:</p>
<p>没错，确实可以这样实现，不过这样的话换次主题就要修改一次sidebar.php。</p>
<p>把链接给我看看。</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KHui</title>
		<link>http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html/comment-page-1#comment-2728</link>
		<dc:creator>KHui</dc:creator>
		<pubDate>Tue, 26 Feb 2008 03:48:30 +0000</pubDate>
		<guid isPermaLink="false">http://cuteleo.cn/2008/01/07/make-recent-comments-widget-show-comment-content.html#comment-2728</guid>
		<description>呵呵，还有更简单的哦。直接在sidebar.php添加这一段代码就可以了，不过有一点bug就是有的字体显示方框，怎么回事，希望楼主能帮忙解决下。
我放出代码
---------------------------------------
Recent Comments
                
                                     comments
    LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =
    $wpdb-&gt;posts.ID)
    WHERE comment_approved = &#039;1&#039; AND comment_type = &#039;&#039; AND
    post_password = &#039;&#039;
    ORDER BY comment_date_gmt DESC
    LIMIT 10&quot;;
    $comments = $wpdb-&gt;get_results($sql);

    $output = $pre_HTML;
    $output .= &quot;\n&quot;;
    foreach ($comments as $comment) {

    $output .= &quot;\n&quot;.strip_tags($comment-&gt;comment_author)
    .&quot;:&quot; . &quot;&lt;a&gt;ID) .
    &quot;#comment-&quot; . $comment-&gt;comment_ID . &quot;\&quot; title=\&quot;on &quot; .
    $comment-&gt;post_title . &quot;\&quot;&gt;&quot; . strip_tags($comment-&gt;com_excerpt)
    .&quot;&lt;/a&gt;&quot;;

    }
    $output .= &quot;\n&quot;;
    $output .= $post_HTML;

    echo $output;?&gt;

        
                        </description>
		<content:encoded><![CDATA[<p>呵呵，还有更简单的哦。直接在sidebar.php添加这一段代码就可以了，不过有一点bug就是有的字体显示方框，怎么回事，希望楼主能帮忙解决下。<br />
我放出代码<br />
---------------------------------------<br />
Recent Comments</p>
<p>                                     comments<br />
    LEFT OUTER JOIN $wpdb-&gt;posts ON ($wpdb-&gt;comments.comment_post_ID =<br />
    $wpdb-&gt;posts.ID)<br />
    WHERE comment_approved = '1' AND comment_type = '' AND<br />
    post_password = ''<br />
    ORDER BY comment_date_gmt DESC<br />
    LIMIT 10";<br />
    $comments = $wpdb-&gt;get_results($sql);</p>
<p>    $output = $pre_HTML;<br />
    $output .= "\n";<br />
    foreach ($comments as $comment) {</p>
<p>    $output .= "\n".strip_tags($comment-&gt;comment_author)<br />
    .":" . "<a>ID) .<br />
    "#comment-" . $comment-&gt;comment_ID . "\" title=\"on " .<br />
    $comment-&gt;post_title . "\"&gt;" . strip_tags($comment-&gt;com_excerpt)<br />
    ."</a>";</p>
<p>    }<br />
    $output .= "\n";<br />
    $output .= $post_HTML;</p>
<p>    echo $output;?&gt;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
