<?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://www.8suo.com/tag/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.8suo.com</link>
	<description>一语道破天机</description>
	<lastBuildDate>Sat, 05 Nov 2011 17:26:36 +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 2.8出现的错误</title>
		<link>http://www.8suo.com/200906/999.html</link>
		<comments>http://www.8suo.com/200906/999.html#comments</comments>
		<pubDate>Sun, 21 Jun 2009 14:05:44 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=999</guid>
		<description><![CDATA[如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也可以写博文的博客，于是就装了中文版的wordpress 2.8，因为是中文版的，所以它的配置文件(wp-config.php)也是中文的。写好配置文件，上传了博客程序，当你用浏览器打开你的空间时，你会发现出现wp-includes/pluggable.php 文件出错。我以为是pluggable.php这个文件出错，于是重新上传了一次，但还是出错。即使我全新以二进制上传整个站，那个问题还是不能解决。 正当我想放弃的时候，在本地构建了个php环境，用了wordpress2.7的英文版，因为我以为是wordpress2.8出现的问题。当我用浏览器打开站点是，问题没有出现，很顺利地安装了博客程序。我是个不找到问题不罢休的人，我再用中文版的wordpress2.8覆盖了原来的wordpress2.7，问题没有出现，博客是好的。现在大家都知道问题出在哪了吧，原来是中文版的wp-config.php出了问题。我打开了英文版的和中文版的wp-config.php，对比了一下除了中文说明其它英文配置是相同的。于是我想，可能是wordpress对中文版的wp-config.php配置支持不够。好像以前的版本也是不能用中文版的wp-config.php配置文件。 总结，pluggable.php出错问题的解决方法很简单，只要用英文版的wp-config.php就可以了，无论你的程序是中文的还是英文的。 相关阅读canonical URLcanonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...All in One SEO Pack plugin bugAll in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...Elegant Box4.0把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。 第一、以...随机文章(无插件)教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。 首先，在sidebar.php里...wordpress keyword and descriptionNow, I present a idea from neoease wordpress theme...]]></description>
			<content:encoded><![CDATA[<p>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也可以写博文的博客，于是就装了中文版的wordpress 2.8，因为是中文版的，所以它的配置文件(wp-config.php)也是中文的。写好配置文件，上传了博客程序，当你用浏览器打开你的空间时，你会发现出现wp-includes/pluggable.php 文件出错。我以为是pluggable.php这个文件出错，于是重新上传了一次，但还是出错。即使我全新以二进制上传整个站，那个问题还是不能解决。<br />
<span id="more-999"></span><br />
正当我想放弃的时候，在本地构建了个php环境，用了wordpress2.7的英文版，因为我以为是wordpress2.8出现的问题。当我用浏览器打开站点是，问题没有出现，很顺利地安装了博客程序。我是个不找到问题不罢休的人，我再用中文版的wordpress2.8覆盖了原来的wordpress2.7，问题没有出现，博客是好的。现在大家都知道问题出在哪了吧，原来是中文版的wp-config.php出了问题。我打开了英文版的和中文版的wp-config.php，对比了一下除了中文说明其它英文配置是相同的。于是我想，可能是wordpress对中文版的wp-config.php配置支持不够。好像以前的版本也是不能用中文版的wp-config.php配置文件。</p>
<p>总结，pluggable.php出错问题的解决方法很简单，只要用英文版的wp-config.php就可以了，无论你的程序是中文的还是英文的。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li><li><a href="http://www.8suo.com/200904/830.html" title="随机文章(无插件)">随机文章(无插件)</a><br /><small>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。

首先，在sidebar.php里...</small></li><li><a href="http://www.8suo.com/200904/718.html" title="wordpress keyword and description">wordpress keyword and description</a><br /><small>Now, I present a idea from neoease wordpress theme...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200906/999.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>YShout5</title>
		<link>http://www.8suo.com/200905/977.html</link>
		<comments>http://www.8suo.com/200905/977.html#comments</comments>
		<pubDate>Thu, 21 May 2009 12:10:39 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[聊天器]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=977</guid>
		<description><![CDATA[YShout5 是一个以php和AJAX编写的聊天器，在从YShout4之后，已经是强制捐赠才能下载的版本，也就是说YShout5是要钱的。其实作者说了，捐赠多少没关系，只有你捐了他就给你下载链接。我是不在意捐款的人，但我怕麻烦。作者并不知道，在中国的paypal是不一样了，我们很少用paypal，所以paypal捐赠变成一件很难的事。作者也说了，如果你以前有捐过款，且捐赠的数目在$5以上，你只要把交易ID给作者寄过去，作者就可以给你下载链接。你可以把YShout5用在无数的站点，但不能卖YShout5和提供YShout5的下载。所以我就不提供下载了，但告诉你一个提供下的网站：YShout5。如果你已经下载了，那下面我们要做的是： 第一、WebGraf.ru.url、Webgraf.ru.nfo和ReadMe.txt是无用的文件，你可以保留它们或删掉它们，我把它们删了。 第二、在根目录的index.html是一个介绍如何把聊天器加入到自己的网页里的，其实很简单，只要把所示的代码放在你想要的位置就行了，因为我是单独一个网页的，所以我没要这个文件。在这个文件里有提供密码，这个密码是“fortytwo”，它是管理员用的，后面讲如何用。 第三、在example里有index.html、dark.html、light.html、yshout.html，我只用到index.html，其中dark.html是暗版本，light.html是亮版本，yshout.html是亮的但没有logo的版本。打开index.html，修改js和css路径，然后把example里的index.html文件移到根目录替代根目录的index.html。 第四、假如你的聊天器文件夹命名为chat，上传chat到你的博客根目录下。新建一个page页面，别名名字为chat，这样你就可以通过导航进入聊天室。 第五、进入聊天室后，你会看到“view history”；点“view history”后你会看到“view admin cp”，密码就用在这里了。输入原始密码，进入后就可以改密码了。 总结，在这个文件夹里，我一共删掉了所有的WebGraf.ru.url、Webgraf.ru.nfo、ReadMe.txt文件，根目录的css文件夹，根目录的index.html文件，example文件夹里的dark.html、light.html、yshout.html文件。这个聊天器很好看，很好玩，速度也不慢。用不到数据库，它是用文本文件记录聊天记录的。但不怎么实用，因为没有人会在你的聊天室里问你问题，也不知道有没有人在。 相关阅读新装wordpress 2.8出现的错误如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...canonical URLcanonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...All in One SEO Pack plugin bugAll in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...Elegant Box4.0把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。 第一、以...随机文章(无插件)教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。 首先，在sidebar.php里...]]></description>
			<content:encoded><![CDATA[<p><a href="http://yurivish.com/yshout/" target="_blank">YShout5</a> 是一个以php和AJAX编写的聊天器，在从YShout4之后，已经是强制捐赠才能下载的版本，也就是说YShout5是要钱的。其实作者说了，捐赠多少没关系，只有你捐了他就给你下载链接。我是不在意捐款的人，但我怕麻烦。作者并不知道，在中国的paypal是不一样了，我们很少用paypal，所以paypal捐赠变成一件很难的事。作者也说了，如果你以前有捐过款，且捐赠的数目在$5以上，你只要把交易ID给作者寄过去，作者就可以给你下载链接。你可以把YShout5用在无数的站点，但不能卖YShout5和提供YShout5的下载。所以我就不提供下载了，但告诉你一个提供下的网站：<a href="http://ajaxfinder.com/10156" target="_blank">YShout5</a>。如果你已经下载了，那下面我们要做的是：<br />
<span id="more-977"></span><br />
第一、WebGraf.ru.url、Webgraf.ru.nfo和ReadMe.txt是无用的文件，你可以保留它们或删掉它们，我把它们删了。</p>
<p>第二、在根目录的index.html是一个介绍如何把聊天器加入到自己的网页里的，其实很简单，只要把所示的代码放在你想要的位置就行了，因为我是单独一个网页的，所以我没要这个文件。在这个文件里有提供密码，这个密码是“fortytwo”，它是管理员用的，后面讲如何用。</p>
<p>第三、在example里有index.html、dark.html、light.html、yshout.html，我只用到index.html，其中dark.html是暗版本，light.html是亮版本，yshout.html是亮的但没有logo的版本。打开index.html，修改js和css路径，然后把example里的index.html文件移到根目录替代根目录的index.html。</p>
<p>第四、假如你的聊天器文件夹命名为chat，上传chat到你的博客根目录下。新建一个page页面，别名名字为chat，这样你就可以通过导航进入聊天室。</p>
<p>第五、进入聊天室后，你会看到“view history”；点“view history”后你会看到“view admin cp”，密码就用在这里了。输入原始密码，进入后就可以改密码了。</p>
<p>总结，在这个文件夹里，我一共删掉了所有的WebGraf.ru.url、Webgraf.ru.nfo、ReadMe.txt文件，根目录的css文件夹，根目录的index.html文件，example文件夹里的dark.html、light.html、yshout.html文件。这个聊天器很好看，很好玩，速度也不慢。用不到数据库，它是用文本文件记录聊天记录的。但不怎么实用，因为没有人会在你的聊天室里问你问题，也不知道有没有人在。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li><li><a href="http://www.8suo.com/200904/830.html" title="随机文章(无插件)">随机文章(无插件)</a><br /><small>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。

首先，在sidebar.php里...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200905/977.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>canonical URL</title>
		<link>http://www.8suo.com/200905/899.html</link>
		<comments>http://www.8suo.com/200905/899.html#comments</comments>
		<pubDate>Sun, 10 May 2009 09:05:01 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=899</guid>
		<description><![CDATA[canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷糊了搜索引擎和访客。canonical URL主要是三大搜索引擎公司(google、微软、雅虎)联合发布的，这个目的轻松了访客也轻松了自己。wordpress有一个插件可以实现自动在head里加入canonical URL，名字是canonical URL&#8217;s，到wordpress插件页就可以搜到。但这么小的事情，我就不想麻烦插件了。  &#60;?php the_permalink() ?&#62;，大家都知道这个函数，它是获得当前页链接网址的。 是不是想在head里加入&#60;link rel=”canonical” href=”&#60;?php the_permalink() ?&#62;” /&#62; 就可以了。我试过，只能获得single页的网址，除single页，只能显示最近或最前的网址。打个比方，如果你在home页，那么它显示你最近访问过的single页面网址；如果你在tag页，那么它显示在最前主题的网址。所以我就想设个if语句，但在我做之前我都会在网上搜一下有没有更好的办法实现显示全部页的URL，结果没有，所以我就用以下的办法在single页加入canonical: &#60;?php if(is_single()){?&#62; &#60;link rel=”canonical” href=”&#60;?php the_permalink() ?&#62;” /&#62; &#60;?php } ?&#62; 使用办法是，在&#60;/head&#62;标签前加入以上的代码。 相关阅读新装wordpress 2.8出现的错误如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...All in One SEO Pack plugin bugAll in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...Elegant Box4.0把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。 第一、以...随机文章(无插件)教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。 首先，在sidebar.php里...wordpress keyword and descriptionNow, I present a idea from neoease wordpress theme...]]></description>
			<content:encoded><![CDATA[<p>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷糊了搜索引擎和访客。canonical URL主要是三大搜索引擎公司(google、微软、雅虎)联合发布的，这个目的轻松了访客也轻松了自己。wordpress有一个插件可以实现自动在head里加入canonical URL，名字是canonical URL&#8217;s，到wordpress插件页就可以搜到。但这么小的事情，我就不想麻烦插件了。</p>
<p><span id="more-899"></span> <em>&lt;?php the_permalink() ?&gt;</em>，大家都知道这个函数，它是获得当前页链接网址的。 <img src='http://www.8suo.com/wp-includes/images/smilies/icon_idea.gif' alt=':idea:' class='wp-smiley' />  是不是想在head里加入<em>&lt;link rel=”canonical” href=”&lt;?php the_permalink() ?&gt;” /&gt;</em> 就可以了。我试过，只能获得single页的网址，除single页，只能显示最近或最前的网址。打个比方，如果你在home页，那么它显示你最近访问过的single页面网址；如果你在tag页，那么它显示在最前主题的网址。所以我就想设个<em>if</em>语句，但在我做之前我都会在网上搜一下有没有更好的办法实现显示全部页的URL，结果没有，所以我就用以下的办法在single页加入canonical:</p>
<blockquote><p>&lt;?php if(is_single()){?&gt;<br />
&lt;link rel=”canonical” href=”&lt;?php the_permalink() ?&gt;” /&gt;<br />
&lt;?php } ?&gt;</p></blockquote>
<p>使用办法是，在<em>&lt;/head&gt;</em>标签前加入以上的代码。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li><li><a href="http://www.8suo.com/200904/830.html" title="随机文章(无插件)">随机文章(无插件)</a><br /><small>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。

首先，在sidebar.php里...</small></li><li><a href="http://www.8suo.com/200904/718.html" title="wordpress keyword and description">wordpress keyword and description</a><br /><small>Now, I present a idea from neoease wordpress theme...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200905/899.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>All in One SEO Pack plugin bug</title>
		<link>http://www.8suo.com/200905/891.html</link>
		<comments>http://www.8suo.com/200905/891.html#comments</comments>
		<pubDate>Sat, 09 May 2009 11:59:15 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=891</guid>
		<description><![CDATA[All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出错，以前是产生的keyword和description是乱码，现在是在后台的开始部分出现插件代码错误(版本1.4.91)。是不是插件不喜欢我啊。  在刚点All in One SEO Pack插件的时候(在设置里)，没有出错，看图： 再次点击插件是，就会出现代码错误，看图： 相关阅读Wordpress图片批处理bugWordpress的图片批处理有一个bug。在媒体库里，如果是对单个图片进行删除的话，媒体库里该图片...新装wordpress 2.8出现的错误如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...用插件的好处用插件到底好不好？这个问题是用wordpress有半年的人经常问的，因为很多插件功能可以通过修改代码...canonical URLcanonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...Elegant Box4.0把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。 第一、以...]]></description>
			<content:encoded><![CDATA[<p>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出错，以前是产生的keyword和description是乱码，现在是在后台的开始部分出现插件代码错误(版本1.4.91)。是不是插件不喜欢我啊。</p>
<p><span id="more-891"></span> 在刚点All in One SEO Pack插件的时候(在设置里)，没有出错，看图：<br />
<a class="highslide-image" onclick="return hs.expand(this);" href="http://www.8suo.com/wp-content/uploads/2009/05/seo1.jpg"><img title="Click to enlarge" src="http://www.8suo.com/wp-content/uploads/2009/05/seo1-200x121.jpg" alt="image" /></a><br />
再次点击插件是，就会出现代码错误，看图：<br />
<a class="highslide-image" onclick="return hs.expand(this);" href="http://www.8suo.com/wp-content/uploads/2009/05/seo2.jpg"><img title="Click to enlarge" src="http://www.8suo.com/wp-content/uploads/2009/05/seo2-200x47.jpg" alt="image" /></a></p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200911/1273.html" title="Wordpress图片批处理bug">Wordpress图片批处理bug</a><br /><small>Wordpress的图片批处理有一个bug。在媒体库里，如果是对单个图片进行删除的话，媒体库里该图片...</small></li><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200906/1015.html" title="用插件的好处">用插件的好处</a><br /><small>用插件到底好不好？这个问题是用wordpress有半年的人经常问的，因为很多插件功能可以通过修改代码...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200905/891.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Elegant Box4.0</title>
		<link>http://www.8suo.com/200905/888.html</link>
		<comments>http://www.8suo.com/200905/888.html#comments</comments>
		<pubDate>Fri, 08 May 2009 11:21:46 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=888</guid>
		<description><![CDATA[把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。 第一、以前在网站底部是“主题由 mg12 提供”现在是“主题由 NeoEase 提供”，我刚开始用这个主题是，我就认为名字应该跟作者网站的名字一致为好。 第二、文件网站头部有一个“新建文章”，这方便博主不用进入管理再点“添加新文章”。这个可有可无，不是重要的。不过有它好像喧宾夺主了，wordpress本身也提供一个更快的发布方式，在“工具-&#62;工具-&#62;快速发布”，把它保存为书签或收藏夹，用时点击就可以了。 第三、在header.php文件里，作者去掉了自动生成keyword和description的程序，下面的是我增加了自动截取文章开始一部分作为description的程序和Canonical URL：   &#60;!&#8211;8suo added beging&#8211;&#62; &#60;?php if (is_home()) { $description = “我用文字，图片来讲讲身边的故事，同时我还给大家提供了我在加拿大时的图片跟故事。这里还有我觉得好听的歌，好看的电影。还有些我写的程序代码或某些网络、软件的评论。还有大事要事新闻的评论。”; $keywords = “摄影,博客,身边的故事,道理,海南,八所,加拿大,多伦多，歌曲，电影，程序，网络，软件，新闻，评论”; } else if (is_single()) { $description = $post-&#62;post_title .” &#124; “. mb_substr(strip_tags($post-&#62;post_content),0,150,&#8217;UTF-8&#8242;).”&#8230;” ; $keywords = “”; $tags = wp_get_post_tags($post-&#62;ID); foreach ($tags as $tag ) { $keywords = $keywords . $tag-&#62;name . “, [...]]]></description>
			<content:encoded><![CDATA[<p>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。</p>
<p>第一、以前在网站底部是“主题由 mg12 提供”现在是“主题由 NeoEase 提供”，我刚开始用这个主题是，我就认为名字应该跟作者网站的名字一致为好。</p>
<p>第二、文件网站头部有一个“新建文章”，这方便博主不用进入管理再点“添加新文章”。这个可有可无，不是重要的。不过有它好像喧宾夺主了，wordpress本身也提供一个更快的发布方式，在“工具-&gt;工具-&gt;快速发布”，把它保存为书签或收藏夹，用时点击就可以了。<br />
<span id="more-888"></span><br />
第三、在header.php文件里，作者去掉了自动生成keyword和description的程序，下面的是我增加了自动截取文章开始一部分作为description的程序和Canonical URL：</p>
<blockquote><p>  &lt;!&#8211;8suo added beging&#8211;&gt;<br />
&lt;?php 		if (is_home()) {  			$description = “我用文字，图片来讲讲身边的故事，同时我还给大家提供了我在加拿大时的图片跟故事。这里还有我觉得好听的歌，好看的电影。还有些我写的程序代码或某些网络、软件的评论。还有大事要事新闻的评论。”; 			$keywords = “摄影,博客,身边的故事,道理,海南,八所,加拿大,多伦多，歌曲，电影，程序，网络，软件，新闻，评论”;<br />
} else if (is_single()) { 			$description =  $post-&gt;post_title .” | “. mb_substr(strip_tags($post-&gt;post_content),0,150,&#8217;UTF-8&#8242;).”&#8230;” ;<br />
$keywords = “”;<br />
$tags = wp_get_post_tags($post-&gt;ID);<br />
foreach ($tags as $tag ) {<br />
$keywords = $keywords . $tag-&gt;name . “, “;<br />
}<br />
} else if (is_category()) {<br />
$description = category_description();<br />
}<br />
$description = str_replace(array(“\r\n”,”\r”,”\n”,” “),”",$description);<br />
?&gt;<br />
&lt;meta name=”keywords” content=”&lt;?php echo $keywords; ?&gt;” /&gt;<br />
&lt;meta name=”description” content=”&lt;?php echo $description; ?&gt;” /&gt;<br />
&lt;title&gt;&lt;?php bloginfo(&#8216;name&#8217;); ?&gt;&lt;?php wp_title(); ?&gt;&lt;/title&gt;<br />
&lt;?php if(is_single()){?&gt;&lt;link rel=”canonical” href=”&lt;?php the_permalink() ?&gt;” /&gt;&lt;?php } ?&gt; </p>
<p>&lt;!&#8211;8suo added end&#8211;&gt;</p></blockquote>
<p>我一直不想在SEO方面用插件，以前用过一次，但产生的关键字和描述是乱码，所以没再用过。再说在SEO方面，keyword和description是最重要的，大家别以为以前重要现在不重要了，google就是靠这个起家的。<em>mb_substr(strip_tags($post-&gt;post_content),0,150,&#8217;UTF-8&#8242;).”&#8230;”  </em>这个函数截取文章规定字段和防止中文出现乱码(防止截半个中文，一个中文是两个字符相当于一个英文。)，<em>$description = str_replace(array(“\r\n”,”\r”,”\n”,” “),”",$description);</em> 这个函数的作用是除去文章中的回车换行和空格。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200907/1219.html" title="又换主题了">又换主题了</a><br /><small>这已经不是第一次换主题了，当我把第一个主题换过后，以后换主题的频率就增加了。这次换主题不是因为以前的...</small></li><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200904/830.html" title="随机文章(无插件)">随机文章(无插件)</a><br /><small>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。

首先，在sidebar.php里...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200905/888.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>随机文章(无插件)</title>
		<link>http://www.8suo.com/200904/830.html</link>
		<comments>http://www.8suo.com/200904/830.html#comments</comments>
		<pubDate>Wed, 29 Apr 2009 16:50:30 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=830</guid>
		<description><![CDATA[教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。 首先，在sidebar.php里找以下代码： &#60;!&#8211; recent posts &#8211;&#62; &#60;li id=”pages” class=”widget widget_pages”&#62; &#60;h3&#62;Recent Posts&#60;/h3&#62; &#60;ul&#62; &#60;?php $posts = get_posts(&#8216;numberposts=10&#38;orderby=post_date&#8217;); foreach($posts as $post) : setup_postdata($post); ?&#62; &#60;li&#62; &#60;span class=”sidedate”&#62;&#60;?php the_time(&#8216;y/m/d&#8217;) ?&#62;&#60;/span&#62; &#60;a href=”&#60;?php the_permalink(); ?&#62;”&#62;&#60;?php the_title(); ?&#62;&#60;/a&#62; &#60;/li&#62; &#60;?php endforeach; $post = $posts[0]; ?&#62; &#60;/ul&#62; &#60;/li&#62; 把其中的 orderby=post_date改成orderby=rand，这样就成随机文章了。numberposts=10其中10代表要显示多少条随机文章。以下是我的随机文章代码： &#60;!&#8211; random posts &#8211;&#62; &#60;li id=”pages” class=”widget widget_pages”&#62; &#60;h3&#62;隨機文章&#60;/h3&#62; &#60;ul&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。</p>
<p>首先，在sidebar.php里找以下代码：<span id="more-830"></span></p>
<blockquote><p>&lt;!&#8211; recent posts &#8211;&gt;<br />
&lt;li id=”pages” class=”widget widget_pages”&gt;<br />
&lt;h3&gt;Recent Posts&lt;/h3&gt;<br />
&lt;ul&gt;<br />
&lt;?php $posts = get_posts(&#8216;numberposts=10&amp;orderby=post_date&#8217;); foreach($posts as $post) : setup_postdata($post); ?&gt;<br />
&lt;li&gt;<br />
&lt;span class=”sidedate”&gt;&lt;?php the_time(&#8216;y/m/d&#8217;) ?&gt;&lt;/span&gt;<br />
&lt;a href=”&lt;?php the_permalink(); ?&gt;”&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php endforeach; $post = $posts[0]; ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;</p></blockquote>
<p>把其中的 <em>orderby=post_date</em>改成<em>orderby=rand</em>，这样就成随机文章了。<em>numberposts=10</em>其中10代表要显示多少条随机文章。以下是我的随机文章代码：</p>
<blockquote><p>&lt;!&#8211; random posts &#8211;&gt;<br />
&lt;li id=”pages” class=”widget widget_pages”&gt;<br />
&lt;h3&gt;隨機文章&lt;/h3&gt;<br />
&lt;ul&gt;<br />
&lt;?php $posts = get_posts(&#8216;numberposts=5&amp;orderby=rand&#8217;); foreach($posts as $post) :   setup_postdata($post); ?&gt;<br />
&lt;li&gt;<br />
&lt;span class=”sidedate”&gt;&lt;?php the_time(&#8216;y/m/d&#8217;) ?&gt;&lt;/span&gt;<br />
&lt;a href=”&lt;?php the_permalink(); ?&gt;”&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php endforeach; $post = $posts[0]; ?&gt;<br />
&lt;/ul&gt;<br />
&lt;/li&gt;</p></blockquote>
<p><strong>注意：</strong>改好的随机文章代码不能放在代码 <em>&lt;?php if ( !function_exists(&#8216;dynamic_sidebar&#8217;) || !dynamic_sidebar() ) : ?&gt;</em>和<em>&lt;?php endif; ?&gt;</em>之间，不然会无效也就是说显示的还是最近文章。</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li><li><a href="http://www.8suo.com/200904/718.html" title="wordpress keyword and description">wordpress keyword and description</a><br /><small>Now, I present a idea from neoease wordpress theme...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200904/830.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>wordpress keyword and description</title>
		<link>http://www.8suo.com/200904/718.html</link>
		<comments>http://www.8suo.com/200904/718.html#comments</comments>
		<pubDate>Mon, 20 Apr 2009 12:55:15 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=718</guid>
		<description><![CDATA[Now, I present a idea from neoease wordpress theme. First, let&#8217;s look at the code. This code is added on header.php : &#60;?php if (is_home()) { $description = “wordpress description”; $keywords = “wordpress keywords”; } else if (is_single()) { $description =  $post-&#62;post_title .” &#124; “. mb_substr(strip_tags($post-&#62;post_content),0,150,&#8217;UTF-8&#8242;).”&#8230;” ; $keywords = “”; $tags = wp_get_post_tags($post-&#62;ID); foreach ($tags [...]]]></description>
			<content:encoded><![CDATA[<p>Now, I present a idea from <a href="http://www.neoease.com/" target="_blank">neoease</a> wordpress theme. First, let&#8217;s look at the code. This code is added on header.php :</p>
<blockquote><p>&lt;?php<br />
if (is_home()) {<br />
$description = “wordpress description”;<br />
$keywords = “wordpress keywords”;<br />
} else if (is_single()) {<br />
$description =  $post-&gt;post_title .” | “. mb_substr(strip_tags($post-&gt;post_content),0,150,&#8217;UTF-8&#8242;).”&#8230;” ;<br />
$keywords = “”;<br />
$tags = wp_get_post_tags($post-&gt;ID);<br />
foreach ($tags as $tag ) {<br />
$keywords = $keywords . $tag-&gt;name . “, “;<br />
}<br />
} else if (is_category()) {<br />
$description = category_description();<br />
}<br />
$description = str_replace(array(“\r\n”,”\r”,”\n”,” “),”",$description);<br />
?&gt;<br />
&lt;meta name=”keywords” content=”&lt;?php echo $keywords; ?&gt;” /&gt;<br />
&lt;meta name=”description” content=”&lt;?php echo $description; ?&gt;” /&gt;<br />
&lt;title&gt;&lt;?php bloginfo(&#8216;name&#8217;); ?&gt;&lt;?php wp_title(); ?&gt;&lt;/title&gt;<br />
&lt;?php if(is_single()){?&gt;&lt;link rel=”canonical” href=”&lt;?php the_permalink() ?&gt;” /&gt;&lt;?php } ?&gt;</p></blockquote>
<p><span id="more-718"></span><br />
If it is at home page, it will show what you writed. For example, it will show wordpress description. The same as keywords. If it is at single page, the description will show your post title and your post content which it will be cut from 0 to 150 words. The keyword will be your tags. If it is at category, the description will be category description but no keywords. Moreover, if visitors is at single page, the title will be your post title name and your blog name. If at home, will be only your blog name, for instant 八所物语.</p>
<p>This code can work at any wordpress themes. I don&#8217;t like use the seo in all plugin, it let my keywords and description be <span class="trans">messy code. Simple way give you big effection.</span> Please try, you will enjoy it.</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li><li><a href="http://www.8suo.com/200905/891.html" title="All in One SEO Pack plugin bug">All in One SEO Pack plugin bug</a><br /><small>All in One SEO Pack 插件是最流行的SEO插件，很多博主都用它。但我用的时候就会出...</small></li><li><a href="http://www.8suo.com/200905/888.html" title="Elegant Box4.0">Elegant Box4.0</a><br /><small>把主题升级成Elegant Box4.0，注意到它改了很多东西，这里我只说我发现的。

第一、以...</small></li><li><a href="http://www.8suo.com/200904/830.html" title="随机文章(无插件)">随机文章(无插件)</a><br /><small>教你如何在侧栏里加入随机文章，当然我说的是不用插件的情况下。

首先，在sidebar.php里...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200904/718.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>在你的网站上展示Rss Feed</title>
		<link>http://www.8suo.com/200904/681.html</link>
		<comments>http://www.8suo.com/200904/681.html#comments</comments>
		<pubDate>Thu, 16 Apr 2009 17:55:00 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[RSS Feed]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=681</guid>
		<description><![CDATA[如何在自己的网站上展示别的网站的rss feed，如google news。这样就可以在自己的网站上实时显示别的网站的新闻，就像自己的新闻一样。这个想法我好久前就有了，也在好几个月前找到了方法。其实方法很多，有些网站提供feed的烧录，然后以Javascript形式显示出来的，如：feedsky,feedburner等等。也有用Google AJAX Feed API，然后在自己网站上插入其代码显示feed内容的，这个方法需要个API Key。上面两种方法都要经过第三方的服务。 我不想经过第三方，一直在中文网找，可没找到。所以我用了英文找，终于被我找到了，这个网址就是 RSS Display boxes 上面全是英文，别慌张，你要做的就几步： 第一、下载rssdisplaybox.zip，然后在那几个example中选一个，如果你想选几个也行，可我这就讲选一个，比如第四个。 第二、(1)看到Customization info(自定义)了没， 如果你没想分离下载的文件，他上面的第一步可以省。在rssbox文件夹中找main.php，修改名为cssdrive的网址成http://www.8suo.com/feed，为什么要修改cssdrive呢，因为我们选的是第四个example。 $rsslist=array( “cssdrive” =&#62; “http://www.cssdrive.com/index.php/news/rss_2.0/”, “bbc” =&#62; “http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml”, “nytimes” =&#62; “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”, “dynamicdrive” =&#62; “http://www.dynamicdrive.com/export.php?type=new” //no trailing comma after last RSS URL!! ); (2)新建个文件，命名为index.html 在&#60;/head&#62;之前插入： &#60;link rel=”stylesheet” type=”text/css” href=”rssbox/rssdisplaybox.css” /&#62; &#60;script type=”text/javascript” src=”rssbox/virtualpaginate.js”&#62;&#60;/script&#62; &#60;script type=”text/javascript” src=”rssbox/rssdisplaybox.js”&#62; /*********************************************** * RSS Display Boxes- [...]]]></description>
			<content:encoded><![CDATA[<p>如何在自己的网站上展示别的网站的rss feed，如google news。这样就可以在自己的网站上实时显示别的网站的新闻，就像自己的新闻一样。这个想法我好久前就有了，也在好几个月前找到了方法。其实方法很多，有些网站提供feed的烧录，然后以Javascript形式显示出来的，如：feedsky,feedburner等等。也有用Google AJAX Feed API，然后在自己网站上插入其代码显示feed内容的，这个方法需要个API Key。上面两种方法都要经过第三方的服务。</p>
<p>我不想经过第三方，一直在中文网找，可没找到。所以我用了英文找，终于被我找到了，这个网址就是 <a href="http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/" target="_blank">RSS Display boxes</a> 上面全是英文，别慌张，你要做的就几步：</p>
<p>第一、下载<a href="http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/rssdisplaybox.zip">rssdisplaybox.zip</a>，然后在那几个example中选一个，如果你想选几个也行，可我这就讲选一个，比如第四个。<br />
<span id="more-681"></span><br />
第二、(1)看到Customization info(自定义)了没， 如果你没想分离下载的文件，他上面的第一步可以省。在rssbox文件夹中找main.php，修改名为cssdrive的网址成http://www.8suo.com/feed，为什么要修改cssdrive呢，因为我们选的是第四个example。</p>
<blockquote><p>$rsslist=array(<br />
“cssdrive” =&gt; “http://www.cssdrive.com/index.php/news/rss_2.0/”,<br />
“bbc” =&gt; “http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml”,<br />
“nytimes” =&gt; “http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml”,<br />
“dynamicdrive” =&gt; “http://www.dynamicdrive.com/export.php?type=new” //no trailing comma after last RSS URL!!<br />
);</p></blockquote>
<p>(2)新建个文件，命名为index.html 在&lt;/head&gt;之前插入：</p>
<blockquote><p>&lt;link rel=”stylesheet” type=”text/css” href=”rssbox/rssdisplaybox.css” /&gt;<br />
&lt;script type=”text/javascript” src=”rssbox/virtualpaginate.js”&gt;&lt;/script&gt;<br />
&lt;script type=”text/javascript” src=”rssbox/rssdisplaybox.js”&gt;<br />
/***********************************************<br />
* RSS Display Boxes- © Dynamic Drive DHTML code library (www.dynamicdrive.com)<br />
* This notice MUST stay intact for legal use<br />
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more<br />
***********************************************/<br />
&lt;/script&gt;</p></blockquote>
<p>要显示的部位插入：</p>
<blockquote><p>&lt;!&#8211; rss feed begin&#8211;&gt;          <br />
&lt;script type=”text/javascript”&gt;<br />
//MAIN FUNCTION: rssdisplaybox(“rssfeed_id”, “rssbox_id”, “rssbox_class”)<br />
var cssdrive2=new rssdisplaybox(“cssdrive”, “cssnewsbox”, “someclass”)<br />
cssdrive2.set_items_shown(200, 5) //Fetch 200 entries, but display only 5 at a time (pagination links auto created)<br />
cssdrive2.set_template(“default”) //Use “default” template, which outputs title + description + date<br />
&lt;/script&gt;</p>
<p>&lt;!&#8211;Manual pagination interface for CSS Drive box above&#8211;&gt;<br />
&lt;div id=”csspaginatediv” class=”rsspaginate”&gt;<br />
&lt;a href=”#” rel=”previous”&gt;Prev&lt;/a&gt; &lt;span class=”flatview”&gt;&lt;/span&gt; &lt;a href=”#” rel=”next”&gt;Next&lt;/a&gt;<br />
&lt;/div&gt;</p>
<p>&lt;script type=”text/javascript”&gt;<br />
cssdrive2.setpagination(“manual”, “csspaginatediv”) /<br />
cssdrive2.start() //Required: start script<br />
&lt;/script&gt;<br />
&lt;!&#8211; rss feed end&#8211;&gt;</p></blockquote>
<p>上面代码200是指一共抓取多少条新闻，5是指每一页展示多少条新闻。</p>
<p>第三、rssbox/rssdisplaybox.css 文件中删掉 width: 250px; 这个是翻页的宽度，因为我们不想宽度这么小。自己在上面的代码外加个table或div，限制它的宽度。demo.htm文件里有(2)的代码。</p>
<p>第四、上传rssbox，simplepie两个文件夹和index.html文件到一个新建的文件夹里比如news. 打开网址http://www.domains.com/news就可以看到效果了。可以看我的：<a href="http://www.canadaw.com/news.html" target="_blank&lt;/a&gt;">加国新闻网</a></p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200903/148.html" title="在自己的网页上展示RSS Feed">在自己的网页上展示RSS Feed</a><br /><small>以前一直想找能在自己的网页上展示RSS Feed 的代码, 但之前不知道叫什么,所以无法google...</small></li><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200906/1152.html" title="清理wordpress options 表">清理wordpress options 表</a><br /><small>久不看数据库了，昨天看了一下，发现我的options表竟然有2.11M，可我的整个数据库才2.87M...</small></li><li><a href="http://www.8suo.com/200905/977.html" title="YShout5">YShout5</a><br /><small>YShout5 是一个以php和AJAX编写的聊天器，在从YShout4之后，已经是强制捐赠才能下载...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200904/681.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在自己的网页上展示RSS Feed</title>
		<link>http://www.8suo.com/200903/148.html</link>
		<comments>http://www.8suo.com/200903/148.html#comments</comments>
		<pubDate>Mon, 30 Mar 2009 15:47:46 +0000</pubDate>
		<dc:creator>8suo</dc:creator>
				<category><![CDATA[電腦樂園]]></category>
		<category><![CDATA[RSS Feed]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://www.8suo.com/?p=148</guid>
		<description><![CDATA[以前一直想找能在自己的网页上展示RSS Feed 的代码, 但之前不知道叫什么,所以无法google到. 现在知道它是rss feed的一种,只要把对方网站的RSS Feed加入到已经编好的网页中就可以实时更新显示的Feed内容。这是一种很好的懒方法，把别人新闻网站把到自己的网站上。我想这没有违法,因为Rss Feed只是属于链接而已，不但没有侵权反而给对方网站打了免费的广告，就像google新闻一样。但是google是通过抓取网页来实现, Rss是通过对方网站给的才能实现.更聪明一些就直接从google新闻里拿Rss Feed, 这样就可以实现一个网页展示多家网站的新闻. 相关阅读在你的网站上展示Rss Feed如何在自己的网站上展示别的网站的rss feed，如google news。这样就可以在自己的网站上...新装wordpress 2.8出现的错误如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...清理wordpress options 表久不看数据库了，昨天看了一下，发现我的options表竟然有2.11M，可我的整个数据库才2.87M...YShout5YShout5 是一个以php和AJAX编写的聊天器，在从YShout4之后，已经是强制捐赠才能下载...canonical URLcanonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...]]></description>
			<content:encoded><![CDATA[<p>以前一直想找能在自己的网页上展示RSS Feed 的代码, 但之前不知道叫什么,所以无法google到. 现在知道它是rss feed的一种,只要把对方网站的RSS Feed加入到已经编好的网页中就可以实时更新显示的Feed内容。这是一种很好的懒方法，把别人新闻网站把到自己的网站上。我想这没有违法,因为Rss Feed只是属于链接而已，不但没有侵权反而给对方网站打了免费的广告，就像google新闻一样。但是google是通过抓取网页来实现, Rss是通过对方网站给的才能实现.更聪明一些就直接从google新闻里拿Rss Feed, 这样就可以实现一个网页展示多家网站的新闻.</p>
<h3  class="related_post_title">相关阅读</h3><ul class="related_post"><li><a href="http://www.8suo.com/200904/681.html" title="在你的网站上展示Rss Feed">在你的网站上展示Rss Feed</a><br /><small>如何在自己的网站上展示别的网站的rss feed，如google news。这样就可以在自己的网站上...</small></li><li><a href="http://www.8suo.com/200906/999.html" title="新装wordpress 2.8出现的错误">新装wordpress 2.8出现的错误</a><br /><small>如果你是从以前的版本升级到现在的wordpress2.8的话，你不会出现这个问题。最近想做一个访客也...</small></li><li><a href="http://www.8suo.com/200906/1152.html" title="清理wordpress options 表">清理wordpress options 表</a><br /><small>久不看数据库了，昨天看了一下，发现我的options表竟然有2.11M，可我的整个数据库才2.87M...</small></li><li><a href="http://www.8suo.com/200905/977.html" title="YShout5">YShout5</a><br /><small>YShout5 是一个以php和AJAX编写的聊天器，在从YShout4之后，已经是强制捐赠才能下载...</small></li><li><a href="http://www.8suo.com/200905/899.html" title="canonical URL">canonical URL</a><br /><small>canonical URL的作用是规范化网址，因为大多数网站的网址指向同一主题的不止一个，这就造成迷...</small></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.8suo.com/200903/148.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

