<?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>idea&#039;s blog &#187; wordpress插件</title>
	<atom:link href="http://www.ideawu.net/blog/tag/wordpress%e6%8f%92%e4%bb%b6/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ideawu.net/blog</link>
	<description>网络服务器架构, Linux C/C++服务器端开发, TCP/IP网络协议, PHP Web后端和Web前端开发, 网站架构.</description>
	<lastBuildDate>Wed, 08 Feb 2012 10:02:48 +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>Wordpress category widget  using new 2.8 API</title>
		<link>http://www.ideawu.net/blog/archives/470.html</link>
		<comments>http://www.ideawu.net/blog/archives/470.html#comments</comments>
		<pubDate>Fri, 09 Apr 2010 04:16:04 +0000</pubDate>
		<dc:creator>ideawu</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress插件]]></category>

		<guid isPermaLink="false">http://www.ideawu.net/blog/archives/470.html</guid>
		<description><![CDATA[<p>Category widget with an exclude field, that you can set &#8216;Uncategoriezed&#8217; not being shown. Based on default Wordpress category widget, so it acts just like that one.</p>
<p>In widget setting page, add &#8220;ideawu_category&#8221; widget to Sidebar, then type &#8220;1&#8243; into the &#8220;Exclude&#8221; form field that save. Category ids are seperated by comma mark.</p>
<p><strong>Download</strong>: <a href='http://www.ideawu.net/blog/wp-content/uploads/2010/04/ideawu_category.zip'>ideawu_category.zip</a></p>


<h3>Related posts:</h3><ol><li><a href='http://www.ideawu.net/blog/archives/116.html' rel='bookmark' title='Permanent Link: 告诉我应该选择哪一个Linux发行版'>告诉我应该选择哪一个Linux发行版</a></li>
<li><a href='http://www.ideawu.net/blog/archives/351.html' rel='bookmark' title='Permanent Link: 史上最强大的PHP MySQL操作类'>史上最强大的PHP MySQL操作类</a></li>
<li><a href='http://www.ideawu.net/blog/archives/434.html' rel='bookmark' title='Permanent Link: 最简单的JavaScript两级联动示例'>最简单的JavaScript两级联动示例</a></li>
<li><a href='http://www.ideawu.net/blog/archives/465.html' rel='bookmark' title='Permanent Link: Wordpress开发指南'>Wordpress开发指南</a></li>
<li><a href='http://www.ideawu.net/blog/archives/93.html' rel='bookmark' title='Permanent Link: 国内外一些计算机学习资源的链接'>国内外一些计算机学习资源的链接</a></li>
</ol><div><p><img src="http://www.ideawu.net/favicon.ico" /> 你现在看的文章是: <a href="http://www.ideawu.net/blog/archives/470.html" title="Wordpress category widget  using new 2.8 API">Wordpress category widget  using new 2.8 API</a></p>

<div>
	<a href="http://www.benegg.com/linode-ad.php">
		Linode VPS - 美国虚拟主机
	</a>
	|
	<a href="http://www.udpwork.com/">
		IT牛人博客聚合网站
	</a>
</div></div>]]></description>
			<content:encoded><![CDATA[<p>Category widget with an exclude field, that you can set &#8216;Uncategoriezed&#8217; not being shown. Based on default Wordpress category widget, so it acts just like that one.</p>
<p>In widget setting page, add &#8220;ideawu_category&#8221; widget to Sidebar, then type &#8220;1&#8243; into the &#8220;Exclude&#8221; form field that save. Category ids are seperated by comma mark.</p>
<p><strong>Download</strong>: <a href='http://www.ideawu.net/blog/wp-content/uploads/2010/04/ideawu_category.zip'>ideawu_category.zip</a></p>


<h3>Related posts:</h3><ol><li><a href='http://www.ideawu.net/blog/archives/116.html' rel='bookmark' title='Permanent Link: 告诉我应该选择哪一个Linux发行版'>告诉我应该选择哪一个Linux发行版</a></li>
<li><a href='http://www.ideawu.net/blog/archives/351.html' rel='bookmark' title='Permanent Link: 史上最强大的PHP MySQL操作类'>史上最强大的PHP MySQL操作类</a></li>
<li><a href='http://www.ideawu.net/blog/archives/434.html' rel='bookmark' title='Permanent Link: 最简单的JavaScript两级联动示例'>最简单的JavaScript两级联动示例</a></li>
<li><a href='http://www.ideawu.net/blog/archives/465.html' rel='bookmark' title='Permanent Link: Wordpress开发指南'>Wordpress开发指南</a></li>
<li><a href='http://www.ideawu.net/blog/archives/93.html' rel='bookmark' title='Permanent Link: 国内外一些计算机学习资源的链接'>国内外一些计算机学习资源的链接</a></li>
</ol><div><p><img src="http://www.ideawu.net/favicon.ico" /> 你现在看的文章是: <a href="http://www.ideawu.net/blog/archives/470.html" title="Wordpress category widget  using new 2.8 API">Wordpress category widget  using new 2.8 API</a></p>

<div>
	<a href="http://www.benegg.com/linode-ad.php">
		Linode VPS - 美国虚拟主机
	</a>
	|
	<a href="http://www.udpwork.com/">
		IT牛人博客聚合网站
	</a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://www.ideawu.net/blog/archives/470.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>使用i_am_not_spam Wordpress插件</title>
		<link>http://www.ideawu.net/blog/archives/376.html</link>
		<comments>http://www.ideawu.net/blog/archives/376.html#comments</comments>
		<pubDate>Sun, 03 May 2009 12:54:28 +0000</pubDate>
		<dc:creator>ideawu</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress插件]]></category>

		<guid isPermaLink="false">http://www.ideawu.net/blog/?p=376</guid>
		<description><![CDATA[<p>虽然akismet识别垃圾评论的准确率很高, 但对于我来说, 每天看到垃圾评论队列里有那么多垃圾评论, 还是很不爽. 眼不见为净. 于是自己写了个Wordpress插件, 直接丢弃垃圾评论.</p>
<p>Wordpress只有comment_post, 但没有pre_comment_post事件, 在评论被保存之前触发. 我只好自己加上了. 所以修改了wp-comments-post.php文件.</p>
<pre lang="php" line="1">
// 就是这一行, ideawu.net
do_action('pre_comment_post', $commentdata);

$comment_id = wp_new_comment( $commentdata );

$comment = get_comment($comment_id);
</pre>
<p>插件很简单, 就是利用comment_post事件加入一个隐藏字段, 该字段的值通过客户端JavaScript代码来设置. 提交后和服务器端的值比较, 如果不相同, 说明用户未开启JavaScript, 被认为是垃圾评论. 评论机器人一般不会支持JavaScript.</p>
<p>有需要的朋友给我留言, 我发给你. 欢迎有心的朋友按第一条评论的格式回复进行测试!</p>


<h3>Related posts:</h3><ol><li><a href='http://www.ideawu.net/blog/archives/554.html' rel='bookmark' title='Permanent Link: tableview新增单选功能'>tableview新增单选功能</a></li>
<li><a href='http://www.ideawu.net/blog/archives/519.html' rel='bookmark' title='Permanent Link: Wordpress评论转义HTML标签'>Wordpress评论转义HTML标签</a></li>
<li><a href='http://www.ideawu.net/blog/archives/470.html' rel='bookmark' title='Permanent Link: Wordpress category widget  using new 2.8 API'>Wordpress category widget  using new 2.8 API</a></li>
<li><a href='http://www.ideawu.net/blog/archives/448.html' rel='bookmark' title='Permanent Link: 变更Wordpress数据库表前缀'>变更Wordpress数据库表前缀</a></li>
<li><a href='http://www.ideawu.net/blog/archives/367.html' rel='bookmark' title='Permanent Link: Wordpress分页代码'>Wordpress分页代码</a></li>
</ol><div><p><img src="http://www.ideawu.net/favicon.ico" /> 你现在看的文章是: <a href="http://www.ideawu.net/blog/archives/376.html" title="使用i_am_not_spam Wordpress插件">使用i_am_not_spam Wordpress插件</a></p>

<div>
	<a href="http://www.benegg.com/linode-ad.php">
		Linode VPS - 美国虚拟主机
	</a>
	|
	<a href="http://www.udpwork.com/">
		IT牛人博客聚合网站
	</a>
</div></div>]]></description>
			<content:encoded><![CDATA[<p>虽然akismet识别垃圾评论的准确率很高, 但对于我来说, 每天看到垃圾评论队列里有那么多垃圾评论, 还是很不爽. 眼不见为净. 于是自己写了个Wordpress插件, 直接丢弃垃圾评论.</p>
<p>Wordpress只有comment_post, 但没有pre_comment_post事件, 在评论被保存之前触发. 我只好自己加上了. 所以修改了wp-comments-post.php文件.</p>
<pre lang="php" line="1">
// 就是这一行, ideawu.net
do_action('pre_comment_post', $commentdata);

$comment_id = wp_new_comment( $commentdata );

$comment = get_comment($comment_id);
</pre>
<p>插件很简单, 就是利用comment_post事件加入一个隐藏字段, 该字段的值通过客户端JavaScript代码来设置. 提交后和服务器端的值比较, 如果不相同, 说明用户未开启JavaScript, 被认为是垃圾评论. 评论机器人一般不会支持JavaScript.</p>
<p>有需要的朋友给我留言, 我发给你. 欢迎有心的朋友按第一条评论的格式回复进行测试!</p>


<h3>Related posts:</h3><ol><li><a href='http://www.ideawu.net/blog/archives/554.html' rel='bookmark' title='Permanent Link: tableview新增单选功能'>tableview新增单选功能</a></li>
<li><a href='http://www.ideawu.net/blog/archives/519.html' rel='bookmark' title='Permanent Link: Wordpress评论转义HTML标签'>Wordpress评论转义HTML标签</a></li>
<li><a href='http://www.ideawu.net/blog/archives/470.html' rel='bookmark' title='Permanent Link: Wordpress category widget  using new 2.8 API'>Wordpress category widget  using new 2.8 API</a></li>
<li><a href='http://www.ideawu.net/blog/archives/448.html' rel='bookmark' title='Permanent Link: 变更Wordpress数据库表前缀'>变更Wordpress数据库表前缀</a></li>
<li><a href='http://www.ideawu.net/blog/archives/367.html' rel='bookmark' title='Permanent Link: Wordpress分页代码'>Wordpress分页代码</a></li>
</ol><div><p><img src="http://www.ideawu.net/favicon.ico" /> 你现在看的文章是: <a href="http://www.ideawu.net/blog/archives/376.html" title="使用i_am_not_spam Wordpress插件">使用i_am_not_spam Wordpress插件</a></p>

<div>
	<a href="http://www.benegg.com/linode-ad.php">
		Linode VPS - 美国虚拟主机
	</a>
	|
	<a href="http://www.udpwork.com/">
		IT牛人博客聚合网站
	</a>
</div></div>]]></content:encoded>
			<wfw:commentRss>http://www.ideawu.net/blog/archives/376.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

