<?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; WordPress</title>
	<atom:link href="http://www.waterylife.com/articles/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.waterylife.com</link>
	<description>记录平淡生活，探索网络技术</description>
	<lastBuildDate>Tue, 13 Jul 2010 14:52:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>WordPress的几个细节更改</title>
		<link>http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html</link>
		<comments>http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html#comments</comments>
		<pubDate>Sat, 10 Jul 2010 18:07:59 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress-theme]]></category>
		<category><![CDATA[wordpress模板]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=807</guid>
		<description><![CDATA[1. 去掉目录链接中的title：view all posts filed under 鼠标停留在目录链接上时，会显示“view all posts filed under 目录名”。因为函数 &#60;?php wp_list_categories(&#8221;); ?&#62;中有一个参数use_desc_for_title，这... ]]></description>
			<content:encoded><![CDATA[<p><strong>1. 去掉目录链接中的title：view all posts filed under</strong></p>
<p>鼠标停留在目录链接上时，会显示“view all posts filed under 目录名”。因为函数<br />
&lt;?php wp_list_categories(&#8221;); ?&gt;中有一个参数use_desc_for_title，这个参数默认值为1，即title显示目录的描述description（添加目录时选填的），当use_desc_for_title=0时，则title=“view all posts filed under 目录名”。好像WordPress设定只有这两个选项。如果要去掉view all posts filed under，可以修改WordPress的源代码，但以后升级还会有这个问题。Google了一下，发现使用下面的函数，可以去除view all posts filed under。参考<a href="http://www.bssn.org/remove-view-all-posts-filed-under.html" target="_blank">这篇文章</a>。</p>
<p>&lt;?php echo str_replace(&#8220;View all posts filed under &#8220;,&#8221;",wp_list_categories(&#8216;echo=0&#8242;)); ?&gt;</p>
<p>&lt;?php wp_list_categories(&#8221;); ?&gt;中其它参数就不再介绍。</p>
<p><strong>2. 灵活调用WordPress自定义域</strong></p>
<p>以前一直觉得WordPress的自定义域比较神秘，从未用过。这两天在测试时发现很简单。只需添加一个域，然后赋值，再模板中使用如下代码调用即可。</p>
<p>&lt;?php echo get_post_meta($post-&gt;ID, &#8216;域&#8217;, true); ?&gt;</p>
<p>其中域就是在添加的自定义域的名称，函数返回的是给域的赋值。</p>
<p>比如要用自定义域实现缩略图：可以添加一个域，如preimg，填上图片地址，然后在模板中用 &lt;img src=&#8221;&lt;?php echo get_post_meta($post-&gt;ID, &#8216;域&#8217;, true); ?&gt;&#8221; /&gt;来显示图片。</p>
<p><strong>3. WordPress调用最新评论的代码</strong></p>
<p>之前我一直使用WordPress中文工具箱，用这个插件来调用最新文章和最新评论。当升级到WordPress3.0后，发现最新评论调用失败了。参考了帕兰的<a href="http://paranimage.com/mastering-wordpress-themes-5/" target="_blank">这篇文章</a>后，修改了WordPress中文工具箱插件的代码，现在可以输出最新评论了。（见侧边栏）</p>
<p><strong>4. 解决WordPress文章ID不连续</strong></p>
<p>当WordPress的永久链接地址设置中有%post_id%时，发现文章的id不连续，因为WordPress有自动保存功能。要解决文章ID不连续问题，可以参考月光博客的<a href="http://www.williamlong.info/archives/1491.html" target="_blank">这篇文章</a>。据说还可用插件来解决这个问题，如有朋友知道插件名称，请留言告知。</p>
<p><strong>5. WordPress标签的调用，让字体大小一致</strong></p>
<p>这个问题比较简单。WordPress调用标签云的函数是：&lt;?php wp_tag_cloud( ); ?&gt;。默认情况下，调出来的tag根据使用次数的多少有不同的字体大小。要使每个tag的字体大小一样，只需将最大字体和最小字体设置成相同大小。如：</p>
<p>&lt;?php wp_tag_cloud(&#8216;smallest=12&amp;largest=12&amp;unit=px&#8217;); ?&gt;</p>
<p>PS: 很久没更新了。今天趁着等世界杯的时间，发篇文章 <img src='http://www.waterylife.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html" title="付费WordPress Theme：Elegant Themes">付费WordPress Theme：Elegant Themes</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress27-change-theme.html" title="升级到WordPress2.7，更换模板">升级到WordPress2.7，更换模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-coogee.html" title="推荐WordPress Theme: Coogee">推荐WordPress Theme: Coogee</a></li><li><a href="http://www.waterylife.com/articles/magazine-style-wordpress-theme.html" title="7款免费杂志型WordPress Theme">7款免费杂志型WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html" title="ThemeHybrid的一些免费WordPress Theme">ThemeHybrid的一些免费WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html" title="免费下载Revolution WordPress Themes">免费下载Revolution WordPress Themes</a></li><li><a href="http://www.waterylife.com/articles/waterylife-has-a-new-look.html" title="似水年华更改模板">似水年华更改模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-design-contest-win-5-years-web-hosting-and-1000.html" title="Lunarpages举办WordPress模板大赛，奖品金额上万元">Lunarpages举办WordPress模板大赛，奖品金额上万元</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-105.html" title="WordPress Theme -10/5">WordPress Theme -10/5</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>升级到WordPress3.0</title>
		<link>http://www.waterylife.com/articles/upgrade-to-wordpress3-0.html</link>
		<comments>http://www.waterylife.com/articles/upgrade-to-wordpress3-0.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 11:28:08 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress 3.0]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=804</guid>
		<description><![CDATA[WordPress 3.0终于出来，大家都说功能强大。刚刚升级到这个版本，还没体会到什么大的改进。由于很久没打开博客了，升级之前发现有这个问题：Compilation failed: this version of PCRE is not compiled with PC... ]]></description>
			<content:encoded><![CDATA[<p>WordPress 3.0终于出来，大家都说功能强大。刚刚升级到这个版本，还没体会到什么大的改进。由于很久没打开博客了，升级之前发现有这个问题：Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in <strong>/wp-includes/shortcodes.php</strong> on line <strong>228</strong>。没看懂是什么意思，升级之后仍然存在。好像是因为有些文章中图片用了caption这个代码。</p>
<h4  class="related_post_title">最多留言日志</h4><ul class="related_post"><li><a href="http://www.waterylife.com/guest-book" title="留言">留言</a></li><li><a href="http://www.waterylife.com/articles/launch-an-english-blog.html" title="你想建个英文博客吗？">你想建个英文博客吗？</a></li><li><a href="http://www.waterylife.com/articles/widgetbucks-code-update.html" title="WidgetBucks提示更新">WidgetBucks提示更新</a></li><li><a href="http://www.waterylife.com/articles/my-life-besides-blog.html" title="博客串联：YIYIX博客之外的生活">博客串联：YIYIX博客之外的生活</a></li><li><a href="http://www.waterylife.com/links" title="链接">链接</a></li><li><a href="http://www.waterylife.com/articles/blog-topic-marketing.html" title="浅谈博客话题营销">浅谈博客话题营销</a></li><li><a href="http://www.waterylife.com/articles/some-changes-in-google-adsense.html" title="Google Adsense 最近的一些改变">Google Adsense 最近的一些改变</a></li><li><a href="http://www.waterylife.com/articles/wordpress-poll-plugin.html" title="WordPress 投票（Poll）插件">WordPress 投票（Poll）插件</a></li><li><a href="http://www.waterylife.com/articles/will-you-update-blog-on-holiday.html" title="[调查]寒假你会继续更新博客吗？">[调查]寒假你会继续更新博客吗？</a></li><li><a href="http://www.waterylife.com/articles/8-rules-to-develop-the-habit-of-blogging.html" title="8个培养博客习惯的方法">8个培养博客习惯的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/upgrade-to-wordpress3-0.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>ThemeHybrid的一些免费WordPress Theme</title>
		<link>http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html</link>
		<comments>http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html#comments</comments>
		<pubDate>Mon, 04 Jan 2010 15:07:37 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Elegantthemes]]></category>
		<category><![CDATA[ThemeHybrid]]></category>
		<category><![CDATA[wordpress-theme]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=777</guid>
		<description><![CDATA[这两天在找一些免费的WordPress Theme，但找遍了国内很多Theme网站，如wopus等，仍没有找到合适的。真感觉是自己的眼光问题。最后在ThemeHybrid.com上找到了一些合适的，上面有很多简约、大方的Word... ]]></description>
			<content:encoded><![CDATA[<p>这两天在找一些免费的WordPress Theme，但找遍了国内很多Theme网站，如wopus等，仍没有找到合适的。真感觉是自己的眼光问题。最后在ThemeHybrid.com上找到了一些合适的，上面有很多简约、大方的WordPress Theme。</p>
<p>说到WordPress Theme，就要说说我付费购买了的<a href="http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html" target="_blank">elegantthemes</a>。一年前，看他们的主题，觉得很漂亮，于是购买了，但没打算续费。前段时间，paypal居然扣掉了$19.95，因为是自动续费，赶紧unsubscribe了自动续费。一直以为只有信用卡能自动续费，原来paypal也可以。喜欢elegantthemes的朋友，可以向我索取相关主题，毕竟我自己不打算用elegantthemes了。</p>
<p>我也很想自己写个主题，但总感觉技术水平有限，没多少时间。与其花费时间在theme上，不如花在内容上。theme是个无底洞，没有最完美的时候。</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html" title="WordPress的几个细节更改">WordPress的几个细节更改</a></li><li><a href="http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html" title="免费下载Revolution WordPress Themes">免费下载Revolution WordPress Themes</a></li><li><a href="http://www.waterylife.com/articles/colorful-wordpress-themes-for-waterylife.html" title="我的主题很色">我的主题很色</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html" title="付费WordPress Theme：Elegant Themes">付费WordPress Theme：Elegant Themes</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress27-change-theme.html" title="升级到WordPress2.7，更换模板">升级到WordPress2.7，更换模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-coogee.html" title="推荐WordPress Theme: Coogee">推荐WordPress Theme: Coogee</a></li><li><a href="http://www.waterylife.com/articles/magazine-style-wordpress-theme.html" title="7款免费杂志型WordPress Theme">7款免费杂志型WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/waterylife-has-a-new-look.html" title="似水年华更改模板">似水年华更改模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-design-contest-win-5-years-web-hosting-and-1000.html" title="Lunarpages举办WordPress模板大赛，奖品金额上万元">Lunarpages举办WordPress模板大赛，奖品金额上万元</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-105.html" title="WordPress Theme -10/5">WordPress Theme -10/5</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>升级到WordPress2.8.5</title>
		<link>http://www.waterylife.com/articles/upgrade-to-wordpress2-8-5.html</link>
		<comments>http://www.waterylife.com/articles/upgrade-to-wordpress2-8-5.html#comments</comments>
		<pubDate>Sun, 08 Nov 2009 15:06:37 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=753</guid>
		<description><![CDATA[由于不经常更新博客，已经有点跟不上WordPress的升级速度了，一转眼已到2.8.5版本了。以前都是在后台在线升级，有时候都懒得备份数据库。这次升级回到中文版本，方便侧边栏月份归档的显示... ]]></description>
			<content:encoded><![CDATA[<p>由于不经常更新博客，已经有点跟不上WordPress的升级速度了，一转眼已到2.8.5版本了。以前都是在后台在线升级，有时候都懒得备份数据库。这次升级回到中文版本，方便侧边栏月份归档的显示，顺便把每月的文章数显示出来。这才发现，近一年来写的东西是多么的少，还不及以前的一个月。</p>
<p>琐事：最近在思考一些事情，是开始行动还是放弃。很多时候是走原路，绕了一圈又回到的起点。信息瞬息万变，事业中容易受到某些因素的影响，而分散注意力，偏离原来的方向。一个人的精力有限，偶尔有一些好的想法，但不能去实现。捡到芝麻，丢了西瓜的事情还是不要做，全心全力地做好自己已规划好的细分领域。在未取得一定成绩之前，不踏入其他市场。</p>
<p>人生就像一个茶几，上面堆满了悲剧/杯具，而我这个茶几似乎比较大。</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/blog-transfe.html" title="Blog搬家">Blog搬家</a></li><li><a href="http://www.waterylife.com/articles/necessary-of-upgrading-wordpress.html" title="有必要及时更新WordPress版本">有必要及时更新WordPress版本</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-262.html" title="升级到WordPress2.6.2">升级到WordPress2.6.2</a></li><li><a href="http://www.waterylife.com/articles/how-to-upload-pictures-wordpress.html" title="WordPress2.5写文章时如何添加图片">WordPress2.5写文章时如何添加图片</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-2-5.html" title="升级到WordPress 2.5">升级到WordPress 2.5</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-232.html" title="升级到WordPress2.3.2">升级到WordPress2.3.2</a></li><li><a href="http://www.waterylife.com/articles/worepress-plugin-theme-test-drive.html" title="WordPress 模板测试插件 &#8211; Theme Test Drive">WordPress 模板测试插件 &#8211; Theme Test Drive</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress231.html" title="升级到WordPress2.3.1">升级到WordPress2.3.1</a></li><li><a href="http://www.waterylife.com/articles/two-revolutional-wordpress-themes.html" title="两款革命性的WordPress模板">两款革命性的WordPress模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-23-rc1-released.html" title="WordPress 2.3 RC1 发布">WordPress 2.3 RC1 发布</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/upgrade-to-wordpress2-8-5.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress的Title，Keywords，Description优化</title>
		<link>http://www.waterylife.com/articles/wordpress-keywords-description.html</link>
		<comments>http://www.waterylife.com/articles/wordpress-keywords-description.html#comments</comments>
		<pubDate>Tue, 03 Nov 2009 15:04:12 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[优化SEO]]></category>
		<category><![CDATA[wordpress 优化]]></category>
		<category><![CDATA[wordpress 模板]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=742</guid>
		<description><![CDATA[推荐一款wordpress主题，因为觉得Title，Keywords，Description写得不错，页面整洁。想做wordpress模板的童鞋可以看看这个模板。 仿9点半主题 Title的写法： &#60;title&#62;&#60;?php if (is_home () ) { bloginfo(&#8216... ]]></description>
			<content:encoded><![CDATA[<p>推荐一款wordpress主题，因为觉得Title，Keywords，Description写得不错，页面整洁。想做wordpress模板的童鞋可以看看这个模板。</p>
<p><a href="http://www.heibaiy.com/9-dian-ban-zhu-ti.html" target="_blank"> 仿9点半主题</a></p>
<p>Title的写法：</p>
<blockquote><p>&lt;title&gt;&lt;?php if (is_home () ) { bloginfo(&#8216;name&#8217;); } elseif ( is_category() ) { single_cat_title(); echo &#8221; &#8211; &#8220;; bloginfo(&#8216;name&#8217;); }  elseif (is_single() || is_page() ) { single_post_title(); } elseif (is_search() ) { bloginfo(&#8216;name&#8217;); echo &#8221; 搜索结果: &#8220;; echo wp_specialchars($s); } else { wp_title(&#8221;,true); } ?&gt;&lt;/title&gt;</p></blockquote>
<p>Keywords和Description的写法：</p>
<blockquote><p>&lt;? if (is_home()){ $description = &#8220;你的介绍.&#8221;; $keywords = &#8220;WordPress, WordPress Theme, WordPress 主题, 博客, 主题&#8221;; } elseif (is_single()){if ($post-&gt;post_excerpt) {$description  = $post-&gt;post_excerpt; } else {$description = substr(strip_tags($post-&gt;post_content),0,220);} $keywords = &#8220;&#8221;; $tags = wp_get_post_tags($post-&gt;ID);foreach ($tags as $tag ) {$keywords = $keywords . $tag-&gt;name . &#8220;, &#8220;;}}?&gt; &lt;meta name=&#8221;keywords&#8221; content=&#8221;&lt;?=$keywords?&gt;&#8221; /&gt; &lt;meta name=&#8221;description&#8221; content=&#8221;&lt;?=$description?&gt;&#8221; /&gt;</p></blockquote>
<p>这么写，基本就告别wordpress的SEO插件了。</p>
<h4  class="related_post_title">最多留言日志</h4><ul class="related_post"><li><a href="http://www.waterylife.com/guest-book" title="留言">留言</a></li><li><a href="http://www.waterylife.com/articles/launch-an-english-blog.html" title="你想建个英文博客吗？">你想建个英文博客吗？</a></li><li><a href="http://www.waterylife.com/articles/widgetbucks-code-update.html" title="WidgetBucks提示更新">WidgetBucks提示更新</a></li><li><a href="http://www.waterylife.com/articles/my-life-besides-blog.html" title="博客串联：YIYIX博客之外的生活">博客串联：YIYIX博客之外的生活</a></li><li><a href="http://www.waterylife.com/links" title="链接">链接</a></li><li><a href="http://www.waterylife.com/articles/blog-topic-marketing.html" title="浅谈博客话题营销">浅谈博客话题营销</a></li><li><a href="http://www.waterylife.com/articles/some-changes-in-google-adsense.html" title="Google Adsense 最近的一些改变">Google Adsense 最近的一些改变</a></li><li><a href="http://www.waterylife.com/articles/wordpress-poll-plugin.html" title="WordPress 投票（Poll）插件">WordPress 投票（Poll）插件</a></li><li><a href="http://www.waterylife.com/articles/will-you-update-blog-on-holiday.html" title="[调查]寒假你会继续更新博客吗？">[调查]寒假你会继续更新博客吗？</a></li><li><a href="http://www.waterylife.com/articles/8-rules-to-develop-the-habit-of-blogging.html" title="8个培养博客习惯的方法">8个培养博客习惯的方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/wordpress-keywords-description.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress搬家工具-帝国备份王</title>
		<link>http://www.waterylife.com/articles/wordpress-transfer-tool-di-guo-bei-fen.html</link>
		<comments>http://www.waterylife.com/articles/wordpress-transfer-tool-di-guo-bei-fen.html#comments</comments>
		<pubDate>Tue, 29 Sep 2009 14:56:23 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[网络工具]]></category>
		<category><![CDATA[blog搬家]]></category>
		<category><![CDATA[wordpress搬家]]></category>
		<category><![CDATA[帝国备份王]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=701</guid>
		<description><![CDATA[昨天又整理博客，想搬到另一个空间。把网页文件都打包好了，然后在phpMyAdmin里将数据表整理成utf编码，再导出，然后又在另一个空间的phpMyAdmin里导入，结果出现 有可能您发现了 SQL 分析器的... ]]></description>
			<content:encoded><![CDATA[<p>昨天又整理博客，想搬到另一个空间。把网页文件都打包好了，然后在phpMyAdmin里将数据表整理成utf编码，再导出，然后又在另一个空间的phpMyAdmin里导入，结果出现 <a href="http://www.google.com/search?q=%E6%9C%89%E5%8F%AF%E8%83%BD%E6%82%A8%E5%8F%91%E7%8E%B0%E4%BA%86+SQL+%E5%88%86%E6%9E%90%E5%99%A8%E7%9A%84%E8%87%AD%E8%99%AB&amp;ie=utf-8&amp;oe=utf-8&amp;aq=t&amp;client=firefox-a&amp;rlz=1R1GGGL_zh-CN" target="_blank"><strong>有可能您发现了 SQL 分析器的臭虫</strong></a>，这是以前都没有遇到的问题。网上都只说这是因为字符编码的问题，但没提供好的解决路径。倒是有人提起帝国备份王，让我想起这个以前用过的数据备份、恢复工具。</p>
<p>帝国备份王是一个用php编写的数据备份工具。只要将备份王上传到网站空间上，安装并设置好参数之后就可以对空间上的数据库进行备份和恢复。那么如何用帝国备份王来实现数据库在两个空间上的转移呢？</p>
<p>首先，确定两个空间上都安装上了帝国备份王，并设置好了参数（主要是phphmyadmin的登录名和密码），确保备份程序能运行。</p>
<p>其次，在备份王中选择要备份的数据库，按操作：（备份数据 －＞ 选择备份的数据库 －＞ 选择备份的表与设定备份参数              －＞ 备份完毕），备份完毕后数据文件全部保存在bdata文件夹下。下载数据文件夹（该文件夹是以时间命名的）到本地计算机。</p>
<p>最后，将数据文件夹上传到另一个空间上备份王程序的bdata文件夹下，打开该空间上的备份王程序，选择需要恢复的数据库，按操作：（恢复数据 －＞ 选择恢复源目录，数据库 －＞ 恢复完毕）。</p>
<p>这样就实现了两个空间上数据的转移。由于都是使用备份王来对数据库操作，所以无视数据的编码等问题，不会出现phpmyadmin中操作时遇到的问题。</p>
<p>所以当用phpMyAdmin导入导出数据库出现问题而没有好的解决方法时，用帝国备份王来转移数据库是比较有效的代替方法。当然，帝国备份王的作用不仅仅用于转移数据库，主要作用还是数据的备份和优化，备份文件生成的是php格式，直接存放在网页空间，可以随时对数据库进行恢复。</p>
<p>好了，不说了，再说就像做广告了。</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/blog-transfe.html" title="Blog搬家">Blog搬家</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/wordpress-transfer-tool-di-guo-bei-fen.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Blog搬家</title>
		<link>http://www.waterylife.com/articles/blog-transfe.html</link>
		<comments>http://www.waterylife.com/articles/blog-transfe.html#comments</comments>
		<pubDate>Mon, 31 Aug 2009 11:49:14 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blog搬家]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=682</guid>
		<description><![CDATA[1、很久没打理blog了，要不是最近总收到空间续费的邮件，要不是昨天刚拉上网线，大概不会有今天一天的忙碌。买了易联的空间，用了sofish的优惠码，把blog搬回了国内。备份数据库，下载上... ]]></description>
			<content:encoded><![CDATA[<p>1、很久没打理blog了，要不是最近总收到空间续费的邮件，要不是昨天刚拉上网线，大概不会有今天一天的忙碌。买了易联的空间，用了sofish的<a href="http://www.happinesz.cn/archives/1086/" target="_blank">优惠码</a>，把blog搬回了国内。备份数据库，下载上传文件，升级wordpress，搞了很久。比较失败的是数据库倒出前没有禁用所有插件，在升级wordpress后出现了插件不兼容的问题。wordpress升级比较快啊，都到2.8.4了。</p>
<p>2、话说在国内主机上，网站都是要备案的。我真的比较烦这个，现在都备案了，还有个换接入商的问题。</p>
<p>3、自从校内网有了开心农场，我经常在校内上玩玩了，还找到了一些高中、大学的同学。据说为了切入白领市场，校内改成人人网了，但是把开心农场改得太卡哇伊了，应该是面向小学生的。</p>
<p>4、现在上班了，白天不能上网了，晚上有时间，希望自己能常更新一下blog。</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress2-8-5.html" title="升级到WordPress2.8.5">升级到WordPress2.8.5</a></li><li><a href="http://www.waterylife.com/articles/wordpress-transfer-tool-di-guo-bei-fen.html" title="WordPress搬家工具-帝国备份王">WordPress搬家工具-帝国备份王</a></li><li><a href="http://www.waterylife.com/articles/necessary-of-upgrading-wordpress.html" title="有必要及时更新WordPress版本">有必要及时更新WordPress版本</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-262.html" title="升级到WordPress2.6.2">升级到WordPress2.6.2</a></li><li><a href="http://www.waterylife.com/articles/how-to-upload-pictures-wordpress.html" title="WordPress2.5写文章时如何添加图片">WordPress2.5写文章时如何添加图片</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-2-5.html" title="升级到WordPress 2.5">升级到WordPress 2.5</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress-232.html" title="升级到WordPress2.3.2">升级到WordPress2.3.2</a></li><li><a href="http://www.waterylife.com/articles/worepress-plugin-theme-test-drive.html" title="WordPress 模板测试插件 &#8211; Theme Test Drive">WordPress 模板测试插件 &#8211; Theme Test Drive</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress231.html" title="升级到WordPress2.3.1">升级到WordPress2.3.1</a></li><li><a href="http://www.waterylife.com/articles/two-revolutional-wordpress-themes.html" title="两款革命性的WordPress模板">两款革命性的WordPress模板</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/blog-transfe.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>免费下载Revolution WordPress Themes</title>
		<link>http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html</link>
		<comments>http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html#comments</comments>
		<pubDate>Wed, 24 Dec 2008 12:17:43 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress-theme]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=645</guid>
		<description><![CDATA[Revolution WordPress Themes是revolutiontheme很早就出现的一系列收费的杂志型WordPress主题，早期刚推出时吸引了很多WordPress用户的眼球，售价上百美元。但是不久网上出现了很多免费下载的版本，国内... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.revolutiontwo.com/" target="_blank">Revolution WordPress Themes</a>是revolutiontheme很早就出现的一系列收费的杂志型WordPress主题，早期刚<a href="http://www.waterylife.com/articles/two-revolutional-wordpress-themes.html" target="_blank">推出</a>时吸引了很多WordPress用户的眼球，售价上百美元。但是不久网上出现了很多免费下载的版本，国内有很多blogger使用。</p>
<p>现在revolutiontheme变成revolutiontwo了，主题设计没什么改进，值得一看的仍是两个杂志型主题：Church和lifestyle，价格是59.95美元，但是也提供了免费下载（<span style="text-decoration: underline;">在每个theme介绍页面的最下方</span>）。</p>
<div id="attachment_646" class="wp-caption aligncenter" style="width: 410px"><img class="size-full wp-image-646" title="church" src="http://www.waterylife.com/wp-content/uploads/2008/12/church.gif" alt="revolution wordpress theme-church" width="400" height="220" /><p class="wp-caption-text">revolution wordpress theme-church</p></div>
<div id="attachment_647" class="wp-caption aligncenter" style="width: 410px"><img class="size-full wp-image-647" title="lifestyle" src="http://www.waterylife.com/wp-content/uploads/2008/12/lifestyle.gif" alt="revolution wordpress theme-lifestyle" width="400" height="220" /><p class="wp-caption-text">revolution wordpress theme-lifestyle</p></div>
<p>我下载了lifestyle，在本地测试，发现代码不够严谨，有很多无用代码。其实我一直不太敢用这些功能丰富的主题，因为功能丰富，所以代码、JS调用等就多，显得臃肿，如果制作者只为实现功能，不追求代码的简洁，那受害的就是我们这些使用者了。</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html" title="WordPress的几个细节更改">WordPress的几个细节更改</a></li><li><a href="http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html" title="ThemeHybrid的一些免费WordPress Theme">ThemeHybrid的一些免费WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html" title="付费WordPress Theme：Elegant Themes">付费WordPress Theme：Elegant Themes</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress27-change-theme.html" title="升级到WordPress2.7，更换模板">升级到WordPress2.7，更换模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-coogee.html" title="推荐WordPress Theme: Coogee">推荐WordPress Theme: Coogee</a></li><li><a href="http://www.waterylife.com/articles/magazine-style-wordpress-theme.html" title="7款免费杂志型WordPress Theme">7款免费杂志型WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/waterylife-has-a-new-look.html" title="似水年华更改模板">似水年华更改模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-design-contest-win-5-years-web-hosting-and-1000.html" title="Lunarpages举办WordPress模板大赛，奖品金额上万元">Lunarpages举办WordPress模板大赛，奖品金额上万元</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-105.html" title="WordPress Theme -10/5">WordPress Theme -10/5</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>我的主题很色</title>
		<link>http://www.waterylife.com/articles/colorful-wordpress-themes-for-waterylife.html</link>
		<comments>http://www.waterylife.com/articles/colorful-wordpress-themes-for-waterylife.html#comments</comments>
		<pubDate>Tue, 23 Dec 2008 07:46:40 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Elegantthemes]]></category>
		<category><![CDATA[wordpress themes]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=635</guid>
		<description><![CDATA[本文副标题：Studio Blue主题介绍 似水年华使用Studio Blue主题有一段时间了，该主题得到不少朋友的认可。还有几个朋友问我该主题是否有变色功能，因为他们看到有一些页面是灰色背景+红色链... ]]></description>
			<content:encoded><![CDATA[<p><strong>本文副标题：Studio Blue主题介绍</strong></p>
<p>似水年华使用Studio Blue主题有一段时间了，该主题得到不少朋友的认可。还有几个朋友问我该主题是否有变色功能，因为他们看到有一些页面是灰色背景+红色链接的，不同于主页的蓝色调。这里需要申明一下，Studio Blue主题不具有变色功能，至少在前台没有。Studio包含了几个颜色的版本，有蓝色、绿色、灰色、黑色、紫色，我现在使用的是蓝色。你看到我的博客有些页面是灰色页面+红色链接，是因为我用了<a href="http://www.storyday.com" target="_blank">江东</a>的html缓存插件，有些页面没有更新，也就没有变成蓝色。</p>
<p>虽然Studio主题不能自动变色，但是博主可以在后台选择使用哪一种颜色，非常方便。当然，你也可以写一段JS代码，实现在博客的页面上让用户选择颜色。下面是<a href="http://www.waterylife.com/make-money-online">似水年华</a>在不同颜色下的截屏：</p>
<div id="attachment_636" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-636" title="waterylife01" src="http://www.waterylife.com/wp-content/uploads/2008/12/waterylife01.jpg" alt="Studio紫色" width="560" height="398" /><p class="wp-caption-text">Studio紫色</p></div>
<div id="attachment_637" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-637" title="waterylife02" src="http://www.waterylife.com/wp-content/uploads/2008/12/waterylife02.jpg" alt="Studio蓝色" width="560" height="398" /><p class="wp-caption-text">Studio蓝色</p></div>
<div id="attachment_638" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-638" title="waterylife03" src="http://www.waterylife.com/wp-content/uploads/2008/12/waterylife03.jpg" alt="Studio灰色" width="560" height="403" /><p class="wp-caption-text">Studio灰色</p></div>
<div id="attachment_639" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-639" title="waterylife04" src="http://www.waterylife.com/wp-content/uploads/2008/12/waterylife04.jpg" alt="Studio黑色" width="560" height="403" /><p class="wp-caption-text">Studio黑色</p></div>
<div id="attachment_640" class="wp-caption alignnone" style="width: 570px"><img class="size-full wp-image-640" title="waterylife05" src="http://www.waterylife.com/wp-content/uploads/2008/12/waterylife05.jpg" alt="Studio绿色" width="560" height="400" /><p class="wp-caption-text">Studio绿色</p></div>
<p>怎么样，心动了吧！那就去<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=627" target="_blank">Elegantthemes</a> 购买吧，一年19.95美元，可以使用<a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=627" target="_blank">Elegantthemes</a>已发布的所有WordPress Theme.</p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html" title="ThemeHybrid的一些免费WordPress Theme">ThemeHybrid的一些免费WordPress Theme</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/colorful-wordpress-themes-for-waterylife.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>付费WordPress Theme：Elegant Themes</title>
		<link>http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html</link>
		<comments>http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html#comments</comments>
		<pubDate>Wed, 17 Dec 2008 13:17:07 +0000</pubDate>
		<dc:creator>yiyix</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress-theme]]></category>
		<category><![CDATA[wordpress模板]]></category>
		<category><![CDATA[付费模板]]></category>

		<guid isPermaLink="false">http://www.waterylife.com/?p=586</guid>
		<description><![CDATA[Elegantthemes.com提供了一系列的WordPress Themes，界面漂亮，功能丰富。这些Themes不是免费的，用户需要缴纳一定的年费（目前是19.95美元/年），就可以在自己的任何一个博客上使用Elegantthemes.com上所... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=627_0_1_10" target="_blank"><img src="http://www.elegantthemes.com/affiliates/banners/300x250.gif" border="0" alt="" width="300" height="250" align="right" /></a><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=627" target="_blank">Elegantthemes.com</a>提供了一系列的WordPress Themes，界面漂亮，功能丰富。这些Themes不是免费的，用户需要缴纳一定的年费（目前是19.95美元/年），就可以在自己的任何一个博客上使用Elegantthemes.com上所有的模板，没有使用限制。一年之后，用户可选择是否续费，如果续费则继续享用Elegantthemes.com的服务，如果不再续费，用户可继续使用已经下载的模板，只是不能使用Elegantthemes.com以后推出的模板了。所以，19.95美元的年费还是物有所值的。</p>
<p><a href="http://www.elegantthemes.com/affiliates/idevaffiliate.php?id=627" target="_blank">Elegantthemes</a>还推出Affiliate Program。用户无须购买themes，也能注册affiliate members，享受50%的提成，即每推荐一个买家可获得近10美元的推介费用。当帐户收入达到49美元时，可以申请支付，主要支付方式为paypal。</p>
<p>前几天，<a href="http://www.waterylife.com" target="_self">似水年华</a>下载了盗版的Elegantthemes的Studio Blue，很好看。但毕竟是盗版，有些细节在不同浏览器下显示的不好，而且功能不够完善。于是今天缴纳了年费，使用上了正版。正版在firefox、IE7下显示还可以，但在IE6下侧边栏在content下面了。这些问题留待以后解决吧。</p>
<p>今天还启用了Google Gears，打开博客的速度加快很多。怎么启动？Dashboard》Tools，具体见下面的视频。<br />
<object width="568" height="428" data="http://vimeo.com/moogaloop.swf?clip_id=2491633&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" type="application/x-shockwave-flash"><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=2491633&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00adef&amp;fullscreen=1" /><param name="allowfullscreen" value="true" /></object></p>
<h4  class="related_post_title">相关文章</h4><ul class="related_post"><li><a href="http://www.waterylife.com/articles/modify-some-details-of-wordpress-theme.html" title="WordPress的几个细节更改">WordPress的几个细节更改</a></li><li><a href="http://www.waterylife.com/articles/upgrade-to-wordpress27-change-theme.html" title="升级到WordPress2.7，更换模板">升级到WordPress2.7，更换模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-coogee.html" title="推荐WordPress Theme: Coogee">推荐WordPress Theme: Coogee</a></li><li><a href="http://www.waterylife.com/articles/magazine-style-wordpress-theme.html" title="7款免费杂志型WordPress Theme">7款免费杂志型WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/themehybrid-free-wordpress-theme.html" title="ThemeHybrid的一些免费WordPress Theme">ThemeHybrid的一些免费WordPress Theme</a></li><li><a href="http://www.waterylife.com/articles/free-download-revolution-wordpress-themes.html" title="免费下载Revolution WordPress Themes">免费下载Revolution WordPress Themes</a></li><li><a href="http://www.waterylife.com/articles/waterylife-has-a-new-look.html" title="似水年华更改模板">似水年华更改模板</a></li><li><a href="http://www.waterylife.com/articles/wordpress-design-contest-win-5-years-web-hosting-and-1000.html" title="Lunarpages举办WordPress模板大赛，奖品金额上万元">Lunarpages举办WordPress模板大赛，奖品金额上万元</a></li><li><a href="http://www.waterylife.com/articles/wordpress-theme-105.html" title="WordPress Theme -10/5">WordPress Theme -10/5</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.waterylife.com/articles/wordpress-theme-elegant-themes-2.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
