<?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>Dominic.Xu&#039;s 博客 &#187; Wordpress</title>
	<atom:link href="http://xuplus.com/article/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://xuplus.com</link>
	<description>Web 2.0 生活</description>
	<lastBuildDate>Wed, 24 Aug 2011 05:26:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>修改WordPress的百度新闻插件（更符合百度新闻协议标准）</title>
		<link>http://xuplus.com/article/2007/05/a25.html</link>
		<comments>http://xuplus.com/article/2007/05/a25.html#comments</comments>
		<pubDate>Wed, 16 May 2007 09:18:06 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Web应用]]></category>
		<category><![CDATA[软件应用]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[完善版]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[百度新闻]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=25</guid>
		<description><![CDATA[使用了hongxiaowan开发的百度新闻插件，但是在浏览最后的生成结果时发现ｉｅ中ＸＭＬ文件不能正常显示，即ＸＭＬ文件不能成功解析。仔细查阅hongxiaowan的代码发现，他发布的代码并没有完全遵守百度新闻协议，在百度新闻协议中text标签中是不能包含ｈｔｍｌ代码的。所以需要用strip_tags函数去掉ｈｔｍｌ代码。另外关于他对于category标签和keywordｓ标签均支持不对，当使用了ultimate tag warrior插件时，category标签将文章的tag也加入其中了。 我修改了baidunews函数加入strip_tags，并修改了wp-baidunews.php中关于category标签和keywords标签的生成方法。 hongxiaowan网站关于百度新闻插件网址：http://www.hongxiaowan.com/2006/11/14/the-wordpress-plug-in-of-baidu-news-protocol/ 如果需要手工修改，请我提供的代码按照hongxiaowan的页面手工修改。 下载地址：WordPress百度新闻插件（Dominic.Xｕ 完善版） BTW:　百度新闻协议站点提交地址：http://news.baidu.com/newsop.html#ks5，上面说不收录博客。试试看吧。提交百度新闻ｕｒｌ为http://yoursite/?feed=baidunews或者http://yoursite/wp-baidunews.php，查询XML文件状态ＵＲＬ：http://news.baidu.com/newsop.html#ks6 标签： Wordpress, 完善版, 插件, 百度新闻]]></description>
			<content:encoded><![CDATA[<p><font size="3">使用了<a target="_blank" href="http://www.hongxiaowan.com">hongxiaowan</a>开发的百度新闻插件，但是在浏览最后的生成结果时发现ｉｅ中ＸＭＬ文件不能正常显示，即ＸＭＬ文件不能成功解析。仔细查阅hongxiaowan的代码发现，他发布的代码并没有完全遵守<a target="_blank" href="http://news.baidu.com/newsop.html">百度新闻协议</a>，在百度新闻协议中text标签中是不能包含ｈｔｍｌ代码的。所以需要用strip_tags函数去掉ｈｔｍｌ代码。另外关于他对于category标签和keywordｓ标签均支持不对，当使用了ultimate tag warrior插件时，category标签将文章的tag也加入其中了。</font></p>
<p><font size="3">我修改了baidunews函数加入strip_tags，并修改了wp-baidunews.php中关于category标签和keywords标签的生成方法。</font></p>
<p><font size="3">hongxiaowan网站关于百度新闻插件网址：<a href="http://www.hongxiaowan.com/2006/11/14/the-wordpress-plug-in-of-baidu-news-protocol/">http://www.hongxiaowan.com/2006/11/14/the-wordpress-plug-in-of-baidu-news-protocol/</a></font></p>
<p><font size="3">如果需要手工修改，请我提供的代码按照hongxiaowan的页面手工修改。</font></p>
<p><font size="3">下载地址：<a href="http://xuplus.com/uploads/File/wp-baidunews_mdy_Dominic.rar">WordPress百度新闻插件（Dominic.Xｕ 完善版）</a></font></p>
<p><font size="3">BTW:　百度新闻协议站点提交地址：<a href="http://news.baidu.com/newsop.html#ks5">http://news.baidu.com/newsop.html#ks5</a>，上面说不收录博客。试试看吧。提交百度新闻ｕｒｌ为<a href="http://xuplus.com">http://yoursite/?feed=baidunews</a>或者<a href="http://xuplus.com">http://yoursite/wp-baidunews.php</a>，查询XML文件状态ＵＲＬ：<a href="http://news.baidu.com/newsop.html#ks6">http://news.baidu.com/newsop.html#ks6</a></font></p>

	标签： <a href="http://xuplus.com/article/tag/wordpress" title="Wordpress" rel="tag">Wordpress</a>, <a href="http://xuplus.com/article/tag/%e5%ae%8c%e5%96%84%e7%89%88" title="完善版" rel="tag">完善版</a>, <a href="http://xuplus.com/article/tag/%e6%8f%92%e4%bb%b6" title="插件" rel="tag">插件</a>, <a href="http://xuplus.com/article/tag/%e7%99%be%e5%ba%a6%e6%96%b0%e9%97%bb" title="百度新闻" rel="tag">百度新闻</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/05/a25.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Tag插件(UltimateTagWarrior) 不能使用中文tag的解决办法</title>
		<link>http://xuplus.com/article/2007/04/a16.html</link>
		<comments>http://xuplus.com/article/2007/04/a16.html#comments</comments>
		<pubDate>Wed, 18 Apr 2007 09:07:39 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Web应用]]></category>
		<category><![CDATA[404错误]]></category>
		<category><![CDATA[tag插件]]></category>
		<category><![CDATA[UltimateTagWarrior]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[中文]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=16</guid>
		<description><![CDATA[今天加入了UltimateTagWarrior模组加入Tag，但是只要Tag是中文的，启用rewrite之后，均不能正常显示，全部报404错误。经过长时间的跟踪终于发现问题了。以下以http://xuplus.com/tag/合肥 为例。 wp-includes下classes.php文件61行附近              $req_uri = str_replace($pathinfo, ”, $req_uri); 这行代码主要作用是将$reg_uri赋值/tag，但运行时 pathinfo为 合肥 req_url为/tag/%E5%90%88%E8%82%A5，这样并不能完成替换操作给$reg_uri赋值/tag。替换成              $req_uri = urldecode(str_replace(urlencode($pathinfo), ”, str_replace(&#8216;/&#8217;,'%2F&#8217;,$req_uri)));              //Modified By XuYong 修正url中有中文字符的问题$pathinfo被urldecode了,导致不能正常工作的问题 即可正常访问。 标签： 404错误, tag插件, UltimateTagWarrior, Wordpress, 中文]]></description>
			<content:encoded><![CDATA[<p><font size="3">今天加入了UltimateTagWarrior模组加入Tag，但是只要Tag是中文的，启用rewrite之后，均不能正常显示，全部报404错误。经过长时间的跟踪终于发现问题了。以下以<font color="#808080">http://xuplus.com/tag/合肥</font> 为例。</font></p>
<p><font size="3"><font style="background-color: #99ccff">wp-includes</font>下<font style="background-color: #99ccff">classes.php</font>文件61行附近<br />
             <span class="Code"><font size="3">$</font><font size="3">req_uri = str_replace($pathinfo, ”, $req_uri);</font></span></font><span class="Code"><br />
</span>这行代码主要作用是将$reg_uri赋值/tag，但运行时 pathinfo为 合肥 req_url为/tag/%E5%90%88%E8%82%A5，这样并不能完成替换操作给$reg_uri赋值/tag。替换成<br />
             <span class="Code">$req_uri = urldecode(str_replace(urlencode($pathinfo), ”, str_replace(&#8216;/&#8217;,'%2F&#8217;,$req_uri)));<br />
</span>             //Modified By XuYong 修正url中有中文字符的问题$pathinfo被urldecode了,导致不能正常工作的问题</p>
<p>即可正常访问。</p>

	标签： <a href="http://xuplus.com/article/tag/404%e9%94%99%e8%af%af" title="404错误" rel="tag">404错误</a>, <a href="http://xuplus.com/article/tag/tag%e6%8f%92%e4%bb%b6" title="tag插件" rel="tag">tag插件</a>, <a href="http://xuplus.com/article/tag/ultimatetagwarrior" title="UltimateTagWarrior" rel="tag">UltimateTagWarrior</a>, <a href="http://xuplus.com/article/tag/wordpress" title="Wordpress" rel="tag">Wordpress</a>, <a href="http://xuplus.com/article/tag/%e4%b8%ad%e6%96%87" title="中文" rel="tag">中文</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a16.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.1添加自定义文件上传类型（允许上传rar文件方法）</title>
		<link>http://xuplus.com/article/2007/04/a15.html</link>
		<comments>http://xuplus.com/article/2007/04/a15.html#comments</comments>
		<pubDate>Wed, 18 Apr 2007 04:28:56 +0000</pubDate>
		<dc:creator>Dominic</dc:creator>
				<category><![CDATA[Web应用]]></category>
		<category><![CDATA[rar]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[上传]]></category>
		<category><![CDATA[文件类型]]></category>

		<guid isPermaLink="false">http://xuplus.com/?p=15</guid>
		<description><![CDATA[注意，2.1中修改允许上传文件文件类型的的位置变了，以前的版本是wp-includes\functions-post.php，2.1之后的版本改成了wp-includes\functions.php wordpress2.1.3默认不支持上传rar文件，修改方法如下： 打开wp-includes\functions.php，查找    &#8216;zip&#8217; =&#62; &#8216;application/zip&#8217;, （第1106行左右），在这一行的下面加上这一行 &#8216;rar&#8217; =&#62; &#8216;application/rar&#8217;, 注意后面有个半角的逗号，别复制漏了，引号是半角单引号。 保存就可以了，如果是用ftp管理别忘了上传哦。 标签： rar, Wordpress, 上传, 文件类型]]></description>
			<content:encoded><![CDATA[<p class="postentry"><font size="3"><strong>注意，2.1中修改允许上传文件文件类型的的位置变了</strong>，以前的版本是<strong><font color="#ef6c6c">wp-includes\functions-post.php</font></strong>，2.1之后的版本改成了<strong><font color="#ef6c6c">wp-includes\functions.php</font></strong></font></p>
<p><font size="3"><a href="http://xuplus.com/article/tag/wordpress" class="st_tag internal_tag" rel="tag" title="标签 Wordpress 下的日志">wordpress</a>2.1.3默认不支持<span class="hilite1"><a href="http://xuplus.com/article/tag/%e4%b8%8a%e4%bc%a0" class="st_tag internal_tag" rel="tag" title="标签 上传 下的日志">上传</a></span>rar文件，修改方法如下：<br />
打开wp-includes\functions.php，查找</font></p>
<blockquote><p><font size="3">   &#8216;zip&#8217; =&gt; &#8216;application/zip&#8217;,</font></p></blockquote>
<p><font size="3">（第1106行左右），在这一行的下面加上这一行</font></p>
<blockquote><p><font size="3">&#8216;<a href="http://xuplus.com/article/tag/rar" class="st_tag internal_tag" rel="tag" title="标签 rar 下的日志">rar</a>&#8217; =&gt; &#8216;application/<a href="http://xuplus.com/article/tag/rar" class="st_tag internal_tag" rel="tag" title="标签 rar 下的日志">rar</a>&#8217;,</font></p></blockquote>
<p><font size="3" color="#ff0000"><strong>注意后面有个半角的逗号，别复制漏了，引号是半角单引号。</strong></font></p>
<p><font size="3">保存就可以了，如果是用ftp管理别忘了上传哦。</font></p>

	标签： <a href="http://xuplus.com/article/tag/rar" title="rar" rel="tag">rar</a>, <a href="http://xuplus.com/article/tag/wordpress" title="Wordpress" rel="tag">Wordpress</a>, <a href="http://xuplus.com/article/tag/%e4%b8%8a%e4%bc%a0" title="上传" rel="tag">上传</a>, <a href="http://xuplus.com/article/tag/%e6%96%87%e4%bb%b6%e7%b1%bb%e5%9e%8b" title="文件类型" rel="tag">文件类型</a><br />
]]></content:encoded>
			<wfw:commentRss>http://xuplus.com/article/2007/04/a15.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

