<?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>FireFore &#187; WordPress</title>
	<atom:link href="http://firefore.com/bq/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://firefore.com</link>
	<description>不积硅步无以至千里</description>
	<lastBuildDate>Mon, 14 May 2012 04:44:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>真名的博客</title>
		<link>http://firefore.com/2011/04/real-name-blog.html</link>
		<comments>http://firefore.com/2011/04/real-name-blog.html#comments</comments>
		<pubDate>Thu, 07 Apr 2011 16:45:14 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[牢骚]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=1346</guid>
		<description><![CDATA[有不少朋友问我，我是不是很骚，不然为何博客还写上自己的姓名。 这句话，其实包含了两个隐藏问题，问题一：如何用上blog的？问题二：为什么用真名？ 问题一：如何用上blog的？ 可能是因... ]]></description>
			<content:encoded><![CDATA[<p>有不少朋友问我，我是不是很骚，不然为何<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%8d%9a%e5%ae%a2" title="查看 博客 中的全部文章" target="_blank">博客</a></span>还写上自己的姓名。</p>
<p>这句话，其实包含了两个隐藏问题，问题一：如何用上blog的？问题二：为什么用真名？</p>
<p><span id="more-1346"></span></p>
<h3>问题一：如何用上blog的？</h3>
<p>可能是因为学业的关系，也可能因为是<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>的关系，或是刚好碰上那个年头。2000年开始真正接触互联网，一接触就迷上了。那个时候流行制作个人主页，我跟风凑热闹，开始学习HTML来制作个人主页。但是由于个人能力有限，无法像他人的个人主页那样内容五花八门，丰富有价值。关于当时的个人主页，一来不想做一个资讯收集类的网站，二来我自己写不出啥好质量的文章来。所以我搞来搞去，最后我的个人主页变成写一些备忘等之类的东西。最后，我的诸多个人主页伴随着当年各种免费空间的消失而消失了。但是我在网络上做备忘的习惯就保留了下来。后来一段时间里，都是写在电子邮件里的，然后发给自己。</p>
<p>05年，突然间，忽如一夜春风来，blog火了。blog很像我之前的那种个人主页的表现方式。于是我开始在blogchina上开博了。那个时候我的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>是做IT维护、软件需求分析等。于是我的那个blogchina的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%8d%9a%e5%ae%a2" title="查看 博客 中的全部文章" target="_blank">博客</a></span>就变为收集互联网上的各种和当时<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>相关的技术文章。主要目的就是把和工作相关的、常用的、个人觉得具有价值的各种技术文章收集起来放在一起，方便自己查阅和学习，省得每次要使用时还得去搜索或是在收藏栏里找个半天。同时，也可以和朋友分享。当时感觉还是不错的。也是就这么用起了blog了。</p>
<p>再后来开始学习自己建设独立博客，用过ASP的也用过PHP。都是咱们国产的。突然间的某一天，在找一些开源软件的时候，无意中看到了<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>。当时这软件评价很高，所以我就搞了个试试。一试之下不可收拾，立即上瘾。也是就这么粘住了。为啥?<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>可以让我随便瞎折腾呗，个性化强啊。咱做独立博客走的就是个性。</p>
<h3>问题二：为什么用真名？</h3>
<p>早些年用网络。聊天室、OICQ、论坛都是用网名。我还记得我第一个网名叫：暗影子（目前百度上搜索的都不是我，这个网名在04年之后再也不用了）。后来发现一个情况，和我交流的多数人会问我真实姓名，或是在QQ等IM工具里问我是哪位。于是我尝试把网名修改为自己的名字。发现效果不错。不少多年没联系的同学、朋友会来Q我一下，聊聊近况等之类的（改成真名字大家很容易找到我）。也是我的IM软件里就用真名了。</p>
<p>刚开始用blog的时候，blog的名字取得是很有禅意的，叫“心印”。网名也一度用这个（玩得最长的魔兽世界角色也是叫这个名字）。这本是一个很有禅意的名字，结果是碰到的大多数人会称呼我为“心印姐姐”或是“心印妹妹”，无奈的我每次都要解释一番。</p>
<p>最最最后让我把blog修改为真实名字的真正导火索，是有一次跟朋友在搜索引擎里尝试搜索自己的名字（早些年有一阵子流行在搜索引擎里搜索自己的名字，然后看看结果多少和自己有关的）。搜索之后竟然发现我的简历！OMG！！！我当时是有在几个大型人才网站上登记过自己的简历信息，但是并没有选择公开。想不到信息被出卖了，好几个小型的人才网上有我的信息。最可怕的是，不知道那些网站怎么搞的，简历里是的名字和信息是我的，工作经历确是别人的！！！真的是不知道该如何表达我当时的心情。所以我就把我的blog的title修改为我的名字，想用这个方法来冲掉那些错误的假简历。这几年接触了SEO后，才发现我当年的做法还多少有些SEO的味道。呵呵。</p>
<p>记得有个博友给我Email和我闲聊，邮件里有问我是不是特喜欢暴露心情，否则怎么用自己的实名做博客，还写了那么多的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e7%89%a2%e9%aa%9a" title="查看 牢骚 中的全部文章" target="_blank">牢骚</a></span>文。其实我的想法很简单，我的blog是我记录心情和交朋友的地方。我可能会把我的喜怒哀乐写在上面，向过往的朋友展现真实的我。并且作为我当时的一笔心情记录。过了若干的时间后回头一看，会看到自己心路的成长旅程，然后收获自己的成长。这几年网络上流行晒年终、晒记账本，咱们就当晒心情吧！</p>
<h3>实名博客的风险</h3>
<p>实名博客的风险很高的。最起码有三点是需要注意的：首先，博客里要小心透露的信息被人拿来骗自己的亲朋好友；其次，每篇文章都是代表了本人的言论，所以都要对发表的文章负责；第三，所有的文章包括评论一定要和谐，否则轻则blog被关闭，重则被邀请喝茶。</p>
<p>我最近有在考虑更换blog的名字。只是在想到合适的blog名字之前，就先继续用着自己的名字吧。也算是给自己一种警惕和鞭笞吧。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2008/05/fanmeizhong.html" rel="bookmark" title="Permanent Link: 范美忠的博客地址">范美忠的博客地址</a></li><li><a  href="http://firefore.com/2007/12/i-am-the-only-one.html" rel="bookmark" title="Permanent Link: 击鼓传花——倘若你的世界只剩下一个人……">击鼓传花——倘若你的世界只剩下一个人……</a></li><li><a  href="http://firefore.com/2007/12/vicview-qihoo.html" rel="bookmark" title="Permanent Link: 这招好呀~不愧是周老板~">这招好呀~不愧是周老板~</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2011/04/real-name-blog.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Shaking form</title>
		<link>http://firefore.com/2010/11/shaking-form.html</link>
		<comments>http://firefore.com/2010/11/shaking-form.html#comments</comments>
		<pubDate>Sun, 21 Nov 2010 15:07:37 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=1306</guid>
		<description><![CDATA[前几天登入Wordpress后台，输错了账号密码，发现其整个表单会左右晃动，好比是人在摇头，感觉特别有意思。于是看了一下该页的源代码，剥离出其摇动的代码来，全浏览器兼容呢，贴在这里... ]]></description>
			<content:encoded><![CDATA[<p>前几天登入Wordpress后台，输错了账号密码，发现其整个表单会左右晃动，好比是人在摇头，感觉特别有意思。于是看了一下该页的源代码，剥离出其摇动的代码来，全浏览器兼容呢，贴在这里分享了。</p>
<p><span id="more-1306"></span>
<p>本人不懂编程也不懂代码，所以只能做原始的剥离了。哈哈哈。</p>
<p><a  href="http://firefore.com/doc/shake.html" target="_blank">例子可以点这里看DIV晃动演示页</a></p>
<p>首先，在页面的&lt;head&gt;&lt;/head&gt;中插入下面的JS代码：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
addLoadEvent <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>func<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> jQuery<span style="color: #339933;">!=</span><span style="color: #3366CC;">&quot;undefined&quot;</span><span style="color: #009900;">&#41;</span>jQuery<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span>func<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>else <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> wpOnload<span style="color: #339933;">!=</span><span style="color: #3366CC;">'function'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>wpOnload<span style="color: #339933;">=</span>func<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span><span style="color: #003366; font-weight: bold;">var</span> oldonload<span style="color: #339933;">=</span>wpOnload<span style="color: #339933;">;</span>wpOnload<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>oldonload<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>func<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
<span style="color: #003366; font-weight: bold;">function</span> s<span style="color: #009900;">&#40;</span>id<span style="color: #339933;">,</span>pos<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>g<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">left</span><span style="color: #339933;">=</span>pos<span style="color: #339933;">+</span><span style="color: #3366CC;">'px'</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> g<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">return</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">style</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> shake<span style="color: #009900;">&#40;</span>id<span style="color: #339933;">,</span>a<span style="color: #339933;">,</span>d<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>c<span style="color: #339933;">=</span>a.<span style="color: #660066;">shift</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>s<span style="color: #009900;">&#40;</span>id<span style="color: #339933;">,</span>c<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>if<span style="color: #009900;">&#40;</span>a.<span style="color: #660066;">length</span><span style="color: #339933;">&gt;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>setTimeout<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>shake<span style="color: #009900;">&#40;</span>id<span style="color: #339933;">,</span>a<span style="color: #339933;">,</span>d<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>d<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">else</span><span style="color: #009900;">&#123;</span><span style="color: #000066; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span>g<span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">position</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'static'</span><span style="color: #339933;">;</span>wp_attempt_focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#125;</span>
addLoadEvent<span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #003366; font-weight: bold;">var</span> p<span style="color: #339933;">=</span><span style="color: #003366; font-weight: bold;">new</span> Array<span style="color: #009900;">&#40;</span><span style="color: #CC0000;">15</span><span style="color: #339933;">,</span><span style="color: #CC0000;">30</span><span style="color: #339933;">,</span><span style="color: #CC0000;">15</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #339933;">,-</span><span style="color: #CC0000;">15</span><span style="color: #339933;">,-</span><span style="color: #CC0000;">30</span><span style="color: #339933;">,-</span><span style="color: #CC0000;">15</span><span style="color: #339933;">,</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>p<span style="color: #339933;">=</span>p.<span style="color: #660066;">concat</span><span style="color: #009900;">&#40;</span>p.<span style="color: #660066;">concat</span><span style="color: #009900;">&#40;</span>p<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>var i<span style="color: #339933;">=</span>document.<span style="color: #660066;">forms</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>g<span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">position</span><span style="color: #339933;">=</span><span style="color: #3366CC;">'relative'</span><span style="color: #339933;">;</span>shake<span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span>p<span style="color: #339933;">,</span><span style="color: #CC0000;">20</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>其次，在页面底部的&lt;/body&gt;之前插入第二段JS代码：</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> wp_attempt_focus<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
setTimeout<span style="color: #009900;">&#40;</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #000066; font-weight: bold;">try</span><span style="color: #009900;">&#123;</span>
d <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'loginform'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
d.<span style="color: #660066;">value</span> <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
d.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">catch</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> wpOnload<span style="color: #339933;">==</span><span style="color: #3366CC;">'function'</span><span style="color: #009900;">&#41;</span>wpOnload<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></div></div>

<p>请注意要晃动的那个form中一定要加上ID哦。</p>
<p><a  href="http://firefore.com/doc/shake.html.txt" target="_blank">点这里可以看到例子页面的源代码</a></p>
<p>然后现在页面一旦载入，form的内容就会左右摇晃。哈哈。</p>
<p>如果想实现Wordpress那种输入错误才会摇晃的表现方式，则可以查看Wordpress目录下wp-login.php文件，其用<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/php" title="查看 PHP 中的全部文章" target="_blank">PHP</a></span>代码做了个判断。</p>
<hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/11/shaking-form.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>博客点名</title>
		<link>http://firefore.com/2010/07/some-questions.html</link>
		<comments>http://firefore.com/2010/07/some-questions.html#comments</comments>
		<pubDate>Tue, 20 Jul 2010 04:07:04 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[firefore]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=1238</guid>
		<description><![CDATA[好久没参加点名游戏了。上一次已经是2007年了。呵呵。这次是收到Dianso的邀请。以下问题开始噜： 1.你的博客存在多久了啊？还记得是哪天正式上线的吗？ 目前的WordPress版的博客是2007年11月21... ]]></description>
			<content:encoded><![CDATA[<p>好久没参加点名<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e6%b8%b8%e6%88%8f" title="查看 游戏 中的全部文章" target="_blank">游戏</a></span>了。<a  href="http://firefore.com/2007/12/i-am-the-only-one.html" target="_blank">上一次已经是2007年了</a>。呵呵。这次是收到<a  href="http://014.cc/938" target="_blank">Dianso</a><cite></cite>的邀请。以下问题开始噜：</p>
<h4>1.你的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%8d%9a%e5%ae%a2" title="查看 博客 中的全部文章" target="_blank">博客</a></span>存在多久了啊？还记得是哪天正式上线的吗？</h4>
<p><span id="more-1238"></span></p>
<p>目前的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>版的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%8d%9a%e5%ae%a2" title="查看 博客 中的全部文章" target="_blank">博客</a></span>是2007年11月21日正式上线的，具体时间是2007/11/21 09:24。</p>
<div id='extendedEntryBreak' name='extendedEntryBreak'></div>
</p>
<h4>2.你会把你的博客坚持下去吗？</h4>
<p>会，我会一直坚持下去，一直到我真的写不下去为止。</p>
<h4>3.如果说有一天你要放弃博客了，你认为会是什么原因啊？</h4>
<p>丧失了写博客的能力</p>
<h4>4.你做独立博客之前有没有过其他博客啊？</h4>
<p>我最早是在2005年在当年的blogchina开设的。目前还能打得开：<a  href="http://boot.blogchina.com">http://boot.blogchina.com</a>。接下来几年一直在换着各种的blog程序，从asp的各种blog一直到现在的php的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>。</p>
<h4>5.你还记得你第一个域名是什么吗?</h4>
<p>boot.blogchina.com算不？如果是独立域名的话，应该是9npc.com吧。这个从2007年建立这个blog开始一直用到2010年的2月份才换为目前的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/firefore" title="查看 firefore 中的全部文章" target="_blank">firefore</a></span>.com</p>
<h4>6.你的第一个域名的意思是什么呢？</h4>
<p>模仿npc6.com注册的。因为看了姚晓光翻译的书而对他很敬佩。</p>
<h4>7.还记得你的第一个友情链接是谁吗？你们现在关系怎么样？</h4>
<p>忘记了，因为加了链接没多久他的网站就打不开，因此被我删除掉了。目前数据库里记录最早的是【MY-Hou | 不務正業】。我喜欢MY-Hou的博客。</p>
<h4>8.你的博客收到第一条评论的时候，你是什么心情啊？</h4>
<p>激动吧。年代久远，真的忘记了。总之肯定是激动。</p>
<h4>9. 为博客花掉了自己很多的时间，你后悔过吗？</h4>
<p>其实我为博客花费的时间不多。我反而从折腾博客的过程中学习到不少东西，交到不少朋友，也记录了自己的心路历程。这东西怎么可能会后悔。</p>
<h4>10. 你认为通过博客结交的朋友可靠吗？你相信他们吗？</h4>
<p>能坚持写博客的人，一般都比较靠谱吧？我是相信大家的。</p>
<h4>11. 如果你的博客里的朋友某天因为特殊原因，或是你自己由于特殊原因，要离开这个圈子，你还会回来看看吗？</h4>
<p>肯定会，离开不代表永远分离。</p>
<h4>12. 你建博客的目的是什么？</h4>
<p>05年开始，是为了收集一些好文章。后来慢慢转变心态，变为记录自己的心路旅程，分享经验，抒发情感等杂七杂八的内容。</p>
<h4>13. 现在你管理博客的目的发生变化了吗？</h4>
<p>中间曲折过几回，迷茫过几回，现在找回感觉了。</p>
<h4>14. 博客给你带来的快乐多吗？</h4>
<p>很多，学到了东西，交到了朋友，而且过段时间回头看看自己当时写的文章，会有笑喷了地感觉。</p>
<h4>15.你现在感觉你一天不上博客的话， 会舒服吗？</h4>
<p>我不是每天上博客的那种，所以不会感觉到不适应。</p>
<h4>16. 在你的博客里，有你真实世界里的人和你交流吗?</h4>
<p>有的。</p>
<h4>17. 你现实圈子里的朋友有几个知道你有博客的？</h4>
<p>还不少，因为我博客的标题就是我的名字啊。当年因为一个垃圾网站不知道怎么搞的，把我的名字和别人的简历弄在一起了。搞得我很郁闷，无奈之下我把博客的标题写成自己的名字，在搜索引擎上干掉了那个假简历。</p>
<h4>18. 你想对你博客里的朋友说些什么？</h4>
<p>博客是用来滋润生活的。除非你打算考博客赚钱，否则切勿为了博客而博客，那会把自己搞得很累。</p>
<h4>19. 你现在的身份是什么？<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>了？还是学生？</h4>
<p><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>好几年了。奔三了都。</p>
<h4>20.你要把此活动转交给谁呢？</h4>
<p>重点来了，各位看官瞧仔细啦，传说中的：  <br /><a  href="http://cuies.com" target="_blank">CLURIES</a>  <br /><a  href="http://shamas.me" target="_blank">shamas</a>  <br />以及快要当爹的<a  href="http://www.caxblog.com" target="_blank">Alex hu</a> <br />哎，想要邀请的朋友好多好多哦。看到文章的您也接受我的邀请好不好？<br />因为shamas同学已经被邀请了。我另外再邀请<a  href="http://www.09998.net" target="_blank">久久博客</a>啦~~<br />
反应热烈，突破邀请上限，额外邀请 <a  href="http://jie.im" target="_blank">洁 </a>参与~
 </p>
<blockquote>
<p>活动规则：<br />1. 认真如实的回答上面提出的问题<br />2. 仔细回顾自己博客的成长历程，完成第一条的问题<br />3. 能煽情的最好煽情<br />4. 可以自己继续添加问题和修改问题<br />5. 自己回答之后将此活动转交给你友情链接中的3个链接，并督促其完成答题并继续传递下去<br />6. 接到点名的尽快完成，然后交给其他人<br />7. 此活动没有什么利益的，只是一种回忆<br />8. 被点的人复制规则以上部分哦。 <br />9. 不要回找啊</p>
</blockquote>
<hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/07/some-questions.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>升级到WordPress 3.0</title>
		<link>http://firefore.com/2010/07/update-wordpress-3-0.html</link>
		<comments>http://firefore.com/2010/07/update-wordpress-3-0.html#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:55:17 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2010/07/update-wordpress-3-0.html</guid>
		<description><![CDATA[WordPress 3.0发布有点时间。为了使用某些新增加的功能，就把博客程序升级到了WordPress 3.0了。还是稍微分享一下升级的步骤： 备份数据库 备份数据库是升级前的首要动作。可以采用WordPress Databa... ]]></description>
			<content:encoded><![CDATA[<p><a  href="http://wordpress.org" target="_blank">WordPress</a> 3.0发布有点时间。为了使用某些新增加的功能，就把博客程序升级到了<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span> 3.0了。还是稍微分享一下升级的步骤：</p>
<p> <span id="more-1219"></span>
</p>
<h3>备份数据库</h3>
<p>备份数据库是升级前的首要动作。可以采用<a  href="http://austinmatzko.com/wordpress-plugins/wp-db-backup/" target="_blank">WordPress Database Backup</a>这个插件来备份，或是直接使用<a  href="http://www.phpmyadmin.net/" target="_blank">phpMyAdmin</a><em></em>来备份，有条件的也可以是直接使用MySQL的指令来导出数据库。</p>
<p class="tips">备份好数据库后，切记最好检查一下备份的数据库文件。</p>
<h3>备份原来的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>文件</h3>
<p>因为版本升级会覆盖掉原来的文件，因此最好在升级前备份一下。出现异常的话至少还可以恢复回去。</p>
<h3>升级服务器上的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>文件</h3>
<p>说这么拗口，其实就是上传新版本的WordPress啦。文件数量众多，使用FTP的话需要花点时间。如果是可以用SSH的朋友，可以直接在服务器上下载然后解压再复制到网站目录下覆盖升级即可。</p>
<h3>登入网站后台升级WordPress</h3>
<p>接下来这个步骤就是登入到WordPress的后台升级啦。或是直接打升级的URL按照提示操作。</p>
<h3>开始修改文件</h3>
<p>当升级成功后，接下来就开始修改WordPress了。包括文件的修改啦，主题的修改啦等等。</p>
<p>&#160;</p>
<p>如此，博客程序正式升级成功。呵呵。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2007/12/bigblue-nogif.html" rel="bookmark" title="Permanent Link: 让我很郁闷的Big Blue主题">让我很郁闷的Big Blue主题</a></li><li><a  href="http://firefore.com/2007/09/mysql-add-newuser.html" rel="bookmark" title="Permanent Link: 实例介绍命令行下向mysql添加新用户并分配权限">实例介绍命令行下向mysql添加新用户并分配权限</a></li><li><a  href="http://firefore.com/2007/12/deep-blue-theme.html" rel="bookmark" title="Permanent Link: 把主题更换为Deep Blue Theme了">把主题更换为Deep Blue Theme了</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/07/update-wordpress-3-0.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>变更博客域名为firefore.com</title>
		<link>http://firefore.com/2010/03/firefore.html</link>
		<comments>http://firefore.com/2010/03/firefore.html#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:07:05 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=917</guid>
		<description><![CDATA[2月24日晚上。突然一个念头，跑到name.com上查询了这个firefore.com的域名。发现没人注册。第二天（25日）就注册下了这个域名。 更改的步骤大致如下： firefore.com的DNS里添加记录到服务器IP wordpres... ]]></description>
			<content:encoded><![CDATA[<p>2月24日晚上。突然一个念头，跑到name.com上查询了这个firefore.com的域名。发现没人注册。第二天（25日）就注册下了这个域名。</p>
<p>更改的步骤大致如下：</p>
<ul>
<li>firefore.com的DNS里添加记录到服务器IP</li>
<li>wordpress的后台里修改域名</li>
<li>feedsky和feedburner的烧录地址变更</li>
<li>数据库里批量替换掉旧域名</li>
<li>添加301记录，规范域名。</li>
</ul>
<p>2月24日，有位至亲的亲人离开人世。而我在当天晚上突然想到这个域名。说来迷信，我觉得这个域名还是很有特殊意义。于是就决定把自己的博客域名更换为这个新网址。</p>
<p>之前的域名还是指向此blog。希望有做友链的朋友们有看到此日志后，变更一下连接地址。谢谢。</p>
<p>更换新域名，也让自己更换了心态，之前blog上超多的抱怨文。实在是侮辱了诸位的眼睛。更换了域名后，此blog将从新开始，也从心开始。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2007/11/find-it-site.html" rel="bookmark" title="Permanent Link: 您在寻找原来的“IT入门资讯站”吗？">您在寻找原来的“IT入门资讯站”吗？</a></li><li><a  href="http://firefore.com/2008/02/feedsky.html" rel="bookmark" title="Permanent Link: 咱们也开始采用Feedsky啦~">咱们也开始采用Feedsky啦~</a></li><li><a  href="http://firefore.com/2007/12/bigblue-nogif.html" rel="bookmark" title="Permanent Link: 让我很郁闷的Big Blue主题">让我很郁闷的Big Blue主题</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/03/firefore.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>更改blog的页面宽度为960像素</title>
		<link>http://firefore.com/2010/01/width-960px.html</link>
		<comments>http://firefore.com/2010/01/width-960px.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 09:39:15 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PureCSS]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=871</guid>
		<description><![CDATA[前言：目前blog使用的主题是PureCSS 2.7 作者为 Creadr*。原始作者的网站已经打不开了，不过我爱水煮鱼那边还可以看到：http://fairyfish.net/2008/08/13/purecss-theme/，原始的主题是纯CSS的，没有使用任何... ]]></description>
			<content:encoded><![CDATA[<p><strong>前言：</strong>目前blog使用的主题是<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/purecss" title="查看 PureCSS 中的全部文章" target="_blank">PureCSS</a></span> 2.7 作者为 Creadr*。原始作者的网站已经打不开了，不过我爱水煮鱼那边还可以看到：<a  title="http://fairyfish.net/2008/08/13/purecss-theme/" href="http://fairyfish.net/2008/08/13/purecss-theme/" target="_blank">http://fairyfish.net/2008/08/13/purecss-theme/</a>，原始的主题是纯<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>的，没有使用任何一张图片。后来我自己修改了评论的部分，外加修改了<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>的部分地方。改东改西的已经没有原始的主题那么简洁了。</p>
<p><strong>为啥要修改页面宽度？ </strong></p>
<p><span id="more-871"></span></p>
<ol>
<li>原来的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/purecss" title="查看 PureCSS 中的全部文章" target="_blank">PureCSS</a></span>主题使用的页面宽度是770像素，这是为了照顾使用800X600的访客，也就是以前CRT显示器15寸的用户。但是随着LCD的出现，显示器荧幕的变大，分辨率的上升。估计现在还是用15寸CRT显示的用户已经很少了。 </li>
<li>在月光博客上也看到：<em>现在的网页设计的行业标准应该就是960像素宽度，目前绝大多数门户网站和大型网站都使用960像素左右的分辨率。</em>我特地跑了趟新浪网、搜狐等，发现的确如此。 </li>
<li>Google Analytics的统计图表中，也看不到800X600的分辨率了。（如下图）<br />
<br /><center><img src="http://firefore.com/wp-content/uploads/2010/01/google-analytics.jpg" alt="google-analytics" title="google-analytics" width="574" height="329" class="alignnone size-full wp-image-873" /><br />
      <br />Google Analytics统计的用户分辨率比例</center></li>
</ol>
<p><strong>如何划分左右栏的宽度？</strong><br />
  <br />思前想后，决定把左边栏宽度调整为730像素，右边栏的宽度调整为202像素。其他部分留空补白。这样作为用来显示文章的左边栏就有了足够的宽度。嘿嘿。</p>
<p><strong>默认字体大小修改了？<br />
    <br /></strong>是的，原来的12像素的字体虽然精致，可惜并不太适合用来当阅读的字体，看久了眼睛会很酸。所以这次就把字体调大一些。具体调成多少呢？第一个念头是16像素。但是测试了一下，发现16像素虽然字够大了，但是因为眼睛得频繁移动反而觉得不太舒服，所以就下调为14像素。测试了一下，发现还不错。现在，我的默认字体设置为：<br />
  </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">14px</span>/<span style="color: #933;">150%</span> Helvetica<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> <span style="color: #ff0000;">'Liberation Sans'</span><span style="color: #00AA00;">,</span> FreeSans<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span></pre></div></div>

</p>
<p><strong>文章的最后：</strong><br />
  <br />调整好了之后，测试没啥问题，于是就更新了。所以当您看到这篇日志的时候，我的blog的页面宽度已经是960像素了。而这个日志的主体部分的宽度更是达到730像素哦。字体也大了许多。是不是看起来会更舒服一点呢？至于美观，抱歉，炜煜我不是设计师，没办法兼顾，希望原始作者原谅我对他的主题的胡乱修改。</p>
<p>文章结尾放上CentOS5下GNOME桌面中的Firefox浏览效果图：<br />
  </p>
<p><center><img src="http://firefore.com/wp-content/uploads/2010/01/Screenshot-2.jpg" alt="" title="960像素预览图" width="500" height="375" class="alignnone size-full wp-image-874" /></center></p>
<p>&#160;</p>
<p>本文作者：<a  href="http://firefore.com">施炜煜</a><br />
  <br />文章原始网址：<a  href="http://firefore.com/2010/01/width-960px.html">http://firefore.com/2010/01/width-960px.html</a></p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2008/06/global-domain-name-statistics.html" rel="bookmark" title="Permanent Link: 全球域名统计">全球域名统计</a></li><li><a  href="http://firefore.com/2009/02/global-domain-name-statistics-2009-01.html" rel="bookmark" title="Permanent Link: 2009年01月全球域名统计">2009年01月全球域名统计</a></li><li><a  href="http://firefore.com/2009/05/lao-jiang-xing.html" rel="bookmark" title="Permanent Link: 《老将行》">《老将行》</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/01/width-960px.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>升级到2.9.1中文版</title>
		<link>http://firefore.com/2010/01/upgrade_2-9-1_zh-ch.html</link>
		<comments>http://firefore.com/2010/01/upgrade_2-9-1_zh-ch.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 03:23:12 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/?p=869</guid>
		<description><![CDATA[升级到2.9.1中文版。未有任何不适。观察中。 &#26412;&#20316;&#21697;&#30001;shiweiyu&#21019;&#20316;&#65292;&#37319;&#29992;&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35... ]]></description>
			<content:encoded><![CDATA[<p>升级到2.9.1中文版。未有任何不适。观察中。</p>
<hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2010/01/upgrade_2-9-1_zh-ch.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>blog搬家</title>
		<link>http://firefore.com/2009/07/ban-jia.html</link>
		<comments>http://firefore.com/2009/07/ban-jia.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 03:38:10 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2009/07/ban-jia.html</guid>
		<description><![CDATA[今天把blog搬到linux主机上噜。 我的步骤如下： 使用插件WordPress Database Backup来备份数据库，并下载到本地。 在新的主机上建立数据库，并且导入备份的数据。 把原主机上的所有文件都复制到新... ]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em">今天把blog搬到linux主机上噜。</p>
<p style="text-indent: 2em">我的步骤如下：</p>
<ol>
<li>使用插件<a  href="http://www.ilfilosofo.com/blog/wp-db-backup" target="_blank"><strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span> Database Backup</strong></a>来备份数据库，并下载到本地。 </li>
<li>在新的主机上建立数据库，并且导入备份的数据。 </li>
<li>把原主机上的所有文件都复制到新主机上，并且设置好目录和文件的权限（因为在linux主机下）。 </li>
<li>到域名的DNS里修改A记录。 </li>
</ol>
<p style="text-indent: 2em">另外，昨天在<a  href="http://fairyfish.net/" target="_blank">我爱水煮鱼</a>上看到一个插件：<a  href="http://planetozh.com/blog/my-projects/yourls-wordpress-to-twitter-a-short-url-plugin/" target="_blank"><strong>YOURLS: <span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span> to Twitter</strong></a> 功能是可以给日志或是页面创建短网址,并且可以发布日志标题和该短网址到Twitter上。看了功能介绍很是喜欢，立马安装。可惜的是在向Twitter发送的时候，会产生错误，<strike>内容是：“Error during Ajax request: Internal Server Error”。真是郁闷，慢慢找原因了。</strike></p>
<p style="text-indent: 2em">检查了一下PHP。发现很多extension没安装，一股脑给装了好几个。重新启动了apache2后，再测试，没出现错误信息了，显示内容如下：</p>
<blockquote><p>Bleh. Could not promote this post on <a  href="http://twitter.com/9npc" target="_blank">@9npc</a>. Maybe Twitter is down? Please try again later!</p>
</blockquote>
<p style="text-indent: 2em">再看Twitter，已经有更新了。hmm…怪事。</p>
<hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2009/07/ban-jia.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>以背景色区分Blog作者评论与普通评论</title>
		<link>http://firefore.com/2009/04/author-comments-bg.html</link>
		<comments>http://firefore.com/2009/04/author-comments-bg.html#comments</comments>
		<pubDate>Tue, 14 Apr 2009 07:50:48 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PureCSS]]></category>

		<guid isPermaLink="false">http://firefore.com/2009/04/author-comments-bg.html</guid>
		<description><![CDATA[这里指的是在WordPress中，判断是否Blog作者，并且在评论内容调用不同的CSS来实现Blog作者评论跟普通评论的区分。实现方法很简单，网上也有很多实现方法。自从使用了PureCSS这个主题后，炜煜... ]]></description>
			<content:encoded><![CDATA[<p>这里指的是在<a  href="http://wordpress.org/" target="_blank">WordPress</a>中，判断是否Blog作者，并且在评论内容调用不同的CSS来实现Blog作者评论跟普通评论的区分。实现方法很简单，网上也有很多实现方法。自从使用了<a  href="http://fairyfish.net/2008/08/13/purecss-theme/">PureCSS</a>这个主题后，炜煜<a  href="http://firefore.com/2009/03/purecss-theme.html" target="_blank">或多或少对主题的摆弄有点了点兴趣</a>。所以下面我继续用我这个修改过的主题来举例说明。</p>
<p><span id="more-538"></span>
<p>根据文章开头的意思，其实就是自定评论样式的一种。会修改到2个文件，1个是functions.php 。一个是style.css 。判断是否为Blog作者并且使用不同样式的主要代码如下：    </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
	<span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_id</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
		<span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">==</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$oddcomment</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'commentcontent-author'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #b1b100;">else</span>
	<span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$oddcomment</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'commentcontent'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>解释：<strong>commentcontent-author</strong>和<strong>commentcontent</strong>就是2个不同的样式。当判断为Blog作者时，调用了commentcontent-author这个样式。我把这个判断放到了自定义 Comments 列表函数里面。接着把需要变色的那个div的样式修改为</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">class=&quot;<span style="color: #009900;">&lt;?php _e<span style="color: #66cc66;">&#40;</span>$oddcomment<span style="color: #66cc66;">&#41;</span>; ?&gt;</span>&quot;</pre></div></div>

<p>这样functions.php就修改好了。这样，我的整个自定义评论的函数如下：     </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000000; font-weight: bold;">function</span> custom_comments<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #000088;">$args</span><span style="color: #339933;">,</span> <span style="color: #000088;">$depth</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$GLOBALS</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$commentcount</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$commentcount</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$commentcount</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$commentcount</span> <span style="color: #339933;">++;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$commentalt</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#40;</span><span style="color: #000088;">$commentalt</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;alt&quot;</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$commentalt</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">:</span><span style="color: #000088;">$commentalt</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;alt&quot;</span><span style="color: #339933;">;</span>   
<span style="color: #000000; font-weight: bold;">?&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;?php</span>
			<span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span>
			<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_id</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$isByAuthor</span> <span style="color: #339933;">==</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$oddcomment</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'commentcontent-author'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
			<span style="color: #b1b100;">else</span>
			<span style="color: #009900;">&#123;</span>
				<span style="color: #000088;">$oddcomment</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'commentcontent'</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span>
		<span style="color: #000000; font-weight: bold;">?&gt;</span>
    &lt;li <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> id=&quot;comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
&nbsp;
    &lt;div class=&quot;commentmetadata <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$commentalt</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;strong&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$commentcount</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.&lt;/strong&gt; &lt;cite&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_author_link<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/cite&gt; | &lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_date<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> at <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_time<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | &lt;a href=&quot;#comment-<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_ID<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;#&lt;/a&gt;&lt;/small&gt;&lt;/div&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_avatar<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">32</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;div class=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #000088;">$oddcomment</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_text<span style="color: #009900;">&#40;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_comment_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit Comment'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;span class=&quot;editlink&quot;&gt;'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'&lt;/span&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> comment_reply_link<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'depth'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$depth</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'max_depth'</span><span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$args</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'max_depth'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'reply_text'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;回复该留言&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</p>
<p>style.css中，我增加了commentcontent-author这个样式。其实就是拷贝一次commentcontent，然后修改为commentcontent-author，另外加上背景颜色或是背景图片的样式即可。我这里的内容如下：    </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.commentcontent-author<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#bfbfbf</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f2f7f8</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</p>
<p>这里的实现方法是参考了<a  href="http://dupola.com" target="_blank">dupola</a>的主题：<a  href="http://dupola.com/wordpress/twitter" target="_blank">Twitter Theme</a>。     <br />另外，推荐<a  href="http://jobru.net" target="_blank">乔布鲁</a>的这篇文章：<a  href="http://jobru.net/how-to-highlight-comments-bg/" target="_blank">如何高亮你的评论背景色</a>。有举例说明哦。而且我这里使用的其实就是该篇文章介绍的方法一。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2008/04/ie6-comments.html" rel="bookmark" title="Permanent Link: 快让我抓狂的IE6或是我的评论页面。">快让我抓狂的IE6或是我的评论页面。</a></li><li><a  href="http://firefore.com/2008/07/i-need-help.html" rel="bookmark" title="Permanent Link: 寻求帮助">寻求帮助</a></li><li><a  href="http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html" rel="bookmark" title="Permanent Link: Deep Blue Theme在IE6下评论偏移的BUG修复">Deep Blue Theme在IE6下评论偏移的BUG修复</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2009/04/author-comments-bg.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>实现正文内容字体可调整</title>
		<link>http://firefore.com/2009/03/css-control-fonts.html</link>
		<comments>http://firefore.com/2009/03/css-control-fonts.html#comments</comments>
		<pubDate>Thu, 19 Mar 2009 04:11:31 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://firefore.com/2009/03/css-control-fonts.html</guid>
		<description><![CDATA[看到不少新闻系统的正文页面都可以调整字体的大小，其实一大部分是用JS来控制字体的CSS。这里我用我使用的这个主题的日志内容页来说明。 首先，我们看看文章页面模板 (single.php) ， 可以... ]]></description>
			<content:encoded><![CDATA[<p>看到不少新闻系统的正文页面都可以调整字体的大小，其实一大部分是用JS来控制字体的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>。这里我用我使用的这个主题的日志内容页来说明。</p>
<p>首先，我们看看文章页面模板 (single.php) ，</p>
<p> <span id="more-523"></span>
<p>可以找到日志内容所在的DIV：    </p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span>&gt;</span>	
    <span style="color: #009900;">&lt;?php the_content<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>加入一个ID，变成这样：</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;9npc&quot;</span>&gt;</span>	
    <span style="color: #009900;">&lt;?php the_content<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>; ?&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>插入这个ID的目的是为了方便用<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>控制字体样式的时候，指定这个ID。</p>
<p>接着我们在适当的位置，添加下面这个代码：    </p>

<div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">字体大小:&lt;a href='javascript:document.getElementById(&quot;9npc&quot;).className=&quot;entry&quot;; focus();'&gt;小&lt;/a&gt;&amp;nbsp;
&lt;a href='javascript:document.getElementById(&quot;9npc&quot;).className=&quot;f2&quot;; focus();'&gt;中 &lt;/a&gt;&amp;nbsp;
&lt;a href='javascript:document.getElementById(&quot;9npc&quot;).className=&quot;f3&quot;; focus();'&gt;大&lt;/a&gt;</pre></div></div>

<p>这里就是用来控制那个div的样式的代码了。解释一下：     </p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">javascript<span style="color: #339933;">:</span>document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;9npc&quot;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>里的<font color="#ff0000">9npc</font>就是对应着我们添加的那个ID。    </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">className<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;entry&quot;</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>里的entry就是对应CSS里的名字。</p>
<p>entry这个样式是这个主题本身就有的，所以我们只要在样式表 (style.css) 里添加2个新样式，我这里默认的日志内容字体大小是12px，所以我添加了2个，分别是14px和16px。这样三个css样式的代码如下：    </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">.entry<span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.f2</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14pt</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.f3</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16pt</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
  <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</p>
<p>这样就大功告成了。呵呵。</p>
<p>代码主要是参考了<a  href="http://www.gamer.com.tw" target="_blank">巴哈姆特</a>的新闻内容页。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2009/09/installing-eaccelerator-in-ubuntu-server.html" rel="bookmark" title="Permanent Link: ubuntu安装eAccelerator">ubuntu安装eAccelerator</a></li><li><a  href="http://firefore.com/2010/01/ubuntu9-10-eaccelerator.html" rel="bookmark" title="Permanent Link: ubuntu9.10下的eAccelerator">ubuntu9.10下的eAccelerator</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2009/03/css-control-fonts.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>换个主题</title>
		<link>http://firefore.com/2009/03/purecss-theme.html</link>
		<comments>http://firefore.com/2009/03/purecss-theme.html#comments</comments>
		<pubDate>Thu, 12 Mar 2009 11:28:00 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[PureCSS]]></category>

		<guid isPermaLink="false">http://firefore.com/2009/03/purecss-theme.html</guid>
		<description><![CDATA[呵呵。新主题名为PureCSS，是在水煮鱼上看到的。无图片的哦。咋样？很简洁但是又很有技术含量的主题啊。今天下午启用，然后自己手动添加或是修改了一些地方。接下来再满满调整适合自己... ]]></description>
			<content:encoded><![CDATA[<p>呵呵。新主题名为<a  href="http://fairyfish.net/2008/08/13/purecss-theme/" target="_blank">PureCSS</a>，是在水煮鱼上看到的。无图片的哦。咋样？很简洁但是又很有技术含量的主题啊。今天下午启用，然后自己手动添加或是修改了一些地方。接下来再满满调整适合自己的。</p>
<p>  <span id="more-493"></span>
<p><del datetime="2009-03-09T06:49:09+00:00">真郁闷，不知道为什么，现在日志内容页用IE6查看源码会乱码。本以为是single.php的问题。但是我把single.php修改为utf8无BOM后，问题依旧。真郁闷&#8230;</del></p>
<p>2009-03-09补充：IE6下查看源码的问题解决了，原来我为了SEO，头部的description采用了截取日志部分内容。结果因为处理不当，造成截取的最后一个字符总是乱码。从而造成在IE6下查看源文件的时候，中文全部乱码了。XHTML的验证也过不去。今天突然想到可能是这个问题。试着把那段代码移除后，发现没有乱码的迹象了。解决了乱码之后，就把自己用的插件需要在主题添加修改的地方都搞一搞。</p>
<p>2009-03-10补充：昨天解决了乱码和插件的问题，今天忙里偷闲，弄评论文件。这个主题的评论文件用的是Wordpress 2.7最新的那种模式。支持套嵌回复、评论翻页等。不过好像没调用掉样式，样子看起来好丑，而且留言和Trackbacks/Pingbacks没分开。不是我啊。于是百度了一下，在水煮鱼上找到了篇日志：<a  href="http://fairyfish.net/2008/11/03/wordpress-27-separate-comment-style-comment/" target="_blank">WordPress 2.7 Separate 留言和样式化留言</a>。想要的实现了。<del datetime="2009-03-11T06:49:09+00:00">可惜又有问题了。发现我按照水煮鱼日志里的方法，给主题下的functions.php添加了2个函数，结果就造成只要一有数据提交，就页面空白的问题。不管前台后台都一样。哪位大侠帮忙看看我的functions.php文件是不是哪里写错了？functions.php地址：      <br /></del><a  href="http://firefore.com/wp-content/themes/PureCSS/functions.php.txt"><del datetime="2009-03-11T06:49:09+00:00">http://firefore.com/wp-content/themes/<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/purecss" title="查看 PureCSS 中的全部文章" target="_blank">PureCSS</a></span>/functions.php.txt</del></a></p>
<p>2009-03-11补充：很囧，在昨天碰到的functions.php添加了那两个函数后，有提交的动作就会页面空白的问题中，我把custom_pings这个函数拷贝到custom_comments的函数下。保存后再测试提交动作，发现不会出现页面空白的问题了。不知道为啥。另外，我显示Trackbacks/Pingbacks的方式是参考了MG12的方法：<a  href="http://www.neoease.com/wordpress-27-trackbacks-handles/" target="_blank">WordPress 2.7 Trackbacks 的两种处理方法</a>。留言的样式还是按照水煮鱼教程里的那个custom_comments函数来自定义。就是因为使用了MG12的方法，所以functions.php中去掉了custom_pings这个函数，发现提交后竟然没有再出现页面空白了。于是乎，发现了问题的所在。囧。不过总算是把留言的样式也搞定了。haha…</p>
<p>2009-03-12补充：为了方便阅读，增加一个调整正文字体的小咚咚。小代表12px、中是14px、大是16px。方便习惯看14px或是16px的朋友们。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2010/01/width-960px.html" rel="bookmark" title="Permanent Link: 更改blog的页面宽度为960像素">更改blog的页面宽度为960像素</a></li><li><a  href="http://firefore.com/2009/04/author-comments-bg.html" rel="bookmark" title="Permanent Link: 以背景色区分Blog作者评论与普通评论">以背景色区分Blog作者评论与普通评论</a></li><li><a  href="http://firefore.com/2007/12/deep-blue-theme.html" rel="bookmark" title="Permanent Link: 把主题更换为Deep Blue Theme了">把主题更换为Deep Blue Theme了</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2009/03/purecss-theme.html/feed</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Deep Blue Theme在IE6下评论偏移的BUG修复</title>
		<link>http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html</link>
		<comments>http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html#comments</comments>
		<pubDate>Mon, 21 Apr 2008 14:49:06 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Deep Blue]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html</guid>
		<description><![CDATA[自从07年的12月10日用了Deep Blue Theme这个主题之后。就没再换过了。自己也稍微的做了一些修改，比如换了一张贴了个福的RSS图；比如把默认的搜索修改为使用Google的自定义搜索；比如修改边栏... ]]></description>
			<content:encoded><![CDATA[<p>自从<a  title="把主题更换为Deep Blue Theme了" href="/2007/12/deep-blue-theme.html" target="_blank">07年的12月10日</a>用了<a  title="Deep Blue Theme" href="http://www.dailyblogtips.com/deep-blue-wordpress-theme-released/" target="_blank">Deep Blue Theme</a>这个主题之后。就没再换过了。自己也稍微的做了一些修改，比如<a  title="改了一张RSS图，贴上一个福" href="/2008/02/fu-rss.html" target="_blank">换了一张贴了个福的RSS图</a>；比如<a  title="把默认的搜索修改为使用Google的自定义搜索" href="/2008/03/google-cse.html" target="_blank">把默认的搜索修改为使用Google的自定义搜索</a>；比如修改边栏的边距等，总之，一步一步按照自己喜欢的方式修改。用着蛮舒服也就没想过换。</p>
<p>不过近期内有几篇幅日志的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%af%84%e8%ae%ba" title="查看 评论 中的全部文章" target="_blank">评论</a></span>条数很大，发现用IE6浏览的情况下会出现严重的偏移情况，具体的在之前我也发表了篇日志求助（<a  title="快让我抓狂的IE6或是我的评论页面" href="/2008/04/ie6-comments.html" target="_blank">具体地可以点这里查看</a>）。也到<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/wordpress" title="查看 WordPress 中的全部文章" target="_blank">WordPress</a></span>中文论坛发贴求助(<a  title="具体的帖子可以点这里查看" href="http://wordpress.org.cn/thread-11889-1-2.html" target="_blank">具体的帖子可以点这里查看</a>)。终于，在论坛里的<cite><a  href="http://wordpress.org.cn/space-uid-22010.html">underone</a></cite>和<cite><a  href="http://wordpress.org.cn/space-uid-3002.html">MonkeyKING</a></cite>的帮助下，再加上<a  href="http://www.google.com" target="_blank">Google</a>和<a  href="http://www.baidu.com" target="_blank">百度</a>几下，终于让我给找到原因所在。</p>
<p>问题就是出在<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>上，<span id="more-253"></span><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%af%84%e8%ae%ba" title="查看 评论 中的全部文章" target="_blank">评论</a></span>的内容调用的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/css" title="查看 CSS 中的全部文章" target="_blank">CSS</a></span>是<em>.comment-body</em>这个样式。这个样式的内容：    </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.comment-body</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</p>
<p>原因就处在<strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/padding" title="查看 padding 中的全部文章" target="_blank">padding</a></span></strong>。默认设置是四个边距都是10px。也就是这个原因，造成<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%af%84%e8%ae%ba" title="查看 评论 中的全部文章" target="_blank">评论</a></span>循环的时候，出现重复偏移。也就是说每次都向右偏移10px。于是我把这个<strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/padding" title="查看 padding 中的全部文章" target="_blank">padding</a></span></strong>修改了一下。所以这个<em>.comment-body</em>的样式被我修改为：    </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.comment-body</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D3D3D3</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

</p>
<p>这样在IE6下，评论终于不再偏移了。因为我取消了<strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/padding" title="查看 padding 中的全部文章" target="_blank">padding</a></span></strong>的右边间距。但是这样会造成评论内容不是居中的情况，因为我们左边有间距10px。而右边没有。不过， 总比之前出现偏移造成评论内容无法完整显示的好。</p>
<p>我自己本职不是搞网页的，以上的也是因为有人指点又加上自己喜欢瞎摸才搞定的。因为我发现使用这个主题的人不少。希望能分享给大家。</p>
<p >作者：<a  href="http://firefore.com/" title="施炜煜">施炜煜</a><br />原文链接：<a  href="http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html" title="Deep Blue Theme在IE6下评论偏移的BUG修复">Deep Blue Theme在IE6下评论偏移的BUG修复</a></p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2007/12/deep-blue-theme.html" rel="bookmark" title="Permanent Link: 把主题更换为Deep Blue Theme了">把主题更换为Deep Blue Theme了</a></li><li><a  href="http://firefore.com/2007/12/bigblue-nogif.html" rel="bookmark" title="Permanent Link: 让我很郁闷的Big Blue主题">让我很郁闷的Big Blue主题</a></li><li><a  href="http://firefore.com/2009/04/author-comments-bg.html" rel="bookmark" title="Permanent Link: 以背景色区分Blog作者评论与普通评论">以背景色区分Blog作者评论与普通评论</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>快让我抓狂的IE6或是我的评论页面。</title>
		<link>http://firefore.com/2008/04/ie6-comments.html</link>
		<comments>http://firefore.com/2008/04/ie6-comments.html#comments</comments>
		<pubDate>Wed, 16 Apr 2008 16:06:52 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[评论]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/04/ie6-comments.html</guid>
		<description><![CDATA[最近有篇文章的评论上百条，然后才发现一个问题。就是评论多了以后，这个主题在IE6下的评论显示就会出现问题。 状况是评论内容的两边超出页面。真的是郁闷无比。我安装了firefox、IE7、Ope... ]]></description>
			<content:encoded><![CDATA[<p style="text-indent: 2em">最近有篇文章的<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%af%84%e8%ae%ba" title="查看 评论 中的全部文章" target="_blank">评论</a></span>上百条，然后才发现一个问题。就是<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%af%84%e8%ae%ba" title="查看 评论 中的全部文章" target="_blank">评论</a></span>多了以后，这个主题在IE6下的评论显示就会出现问题。    <br />状况是评论内容的两边超出页面。真的是郁闷无比。我安装了firefox、IE7、Opera9.50 beta、Netscape Navigator9来测试，发现这个情况在以上四个浏览器中都未出现。单独只有IE6会出现，IE6下会出现的具体的情况如配图所示：</p>
<p align="center"><a  title="Flickr 上 9NPC 的 200804181" href="http://www.flickr.com/photos/25732036@N02/2421614508/"><img height="358" alt="200804181" src="http://farm4.static.flickr.com/3241/2421614508_5999f25a53_o.png" width="560" /></a></p>
<p style="text-indent: 2em">图片外链<a  title="flickr.com" href="http://www.flickr.com/" target="_blank">Flickr</a>的，如果您看不见图片而且您正好使用IE6，那么直接访问那篇评论很多的日志，就可以看到了。<a  title="反CNN！西方媒体污蔑中国报道全纪录Anti-CNN.com！" href="http://firefore.com/2008/03/anti-cnn.html#comment-915" target="_blank">点这里访问</a>。</p>
<p style="text-indent: 2em">真的是无比郁闷。偏偏就IE6会出现，其他的几个主流浏览器我测试了一下都没这问题。</p>
<p style="text-indent: 2em"><a  title="http://firefore.com/comments.txt" href="http://firefore.com/comments.txt" target="_blank">http://firefore.com/comments.txt</a></p>
<p style="text-indent: 2em">上面这个文本文件就是我的评论文件的源代码了。我把扩展名修改为txt。方便大家直接查看，希望有高手能相助。小弟感谢万分。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2008/07/i-need-help.html" rel="bookmark" title="Permanent Link: 寻求帮助">寻求帮助</a></li><li><a  href="http://firefore.com/2008/04/deep-blue-theme-ie6-comments-bug.html" rel="bookmark" title="Permanent Link: Deep Blue Theme在IE6下评论偏移的BUG修复">Deep Blue Theme在IE6下评论偏移的BUG修复</a></li><li><a  href="http://firefore.com/2009/04/author-comments-bg.html" rel="bookmark" title="Permanent Link: 以背景色区分Blog作者评论与普通评论">以背景色区分Blog作者评论与普通评论</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/04/ie6-comments.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>blog点名活动：About 9NPC</title>
		<link>http://firefore.com/2008/04/about-9npc.html</link>
		<comments>http://firefore.com/2008/04/about-9npc.html#comments</comments>
		<pubDate>Thu, 03 Apr 2008 06:00:49 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[资源共享]]></category>
		<category><![CDATA[Chada]]></category>
		<category><![CDATA[chinaunix]]></category>
		<category><![CDATA[Gameres]]></category>
		<category><![CDATA[SunQ]]></category>
		<category><![CDATA[VicView]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[游戏]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/04/about-9npc.html</guid>
		<description><![CDATA[今天早上打开blog，发现收到Y_Y的点名，回答21个问题。问题很有意思哦，细看如下： 如何将生活与工作做最好的调配？答：我现在，工作就是生活，生活就是工作，可能是搞网络游戏技术的原... ]]></description>
			<content:encoded><![CDATA[<p style="text-indent:2em">今天早上打开blog，发现收到<span class="comment-author"><strong><a  href="http://yuyi.us/blog/?p=157" target="_blank" rel="external">Y_Y</a></strong></span>的点名，回答21个问题。问题很有意思哦，细看如下：
</p>
<ol>
<li>
<p>如何将生活与工作做最好的调配？<br />答：我现在，工作就是生活，生活就是工作，可能是搞网络<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e6%b8%b8%e6%88%8f" title="查看 游戏 中的全部文章" target="_blank">游戏</a></span>技术的原因，随时随地为解决问题而做着准备已经成为我的习惯了。有朋友说我会累死，但是我自问了一下，累是累了点，但是拿了老板的工资，做了这份工作，就得尽力而为，因为要有最起码的职业道德。</p>
</li>
<li>
<p>说出一个你认为自己最大的缺点。<br />答：懒惰，我最大的缺点就是懒惰</p>
</li>
<li>
<p>最郁闷的事。<br />答：工作的事情搞砸了。被人误会了。无法完成某些事。</p>
</li>
<li>
<p>你最希望从朋友（不包括爱人）那里得到的是什么？<br />答：关心、鼓励、支持、理解</p>
</li>
<li>
<p>你最想去哪个地方？为什么？<br />答：很多，我只有小时候离开过福建2次，后来至今都一直没出过福建，我一直想去外边走走看看，见见世面。</p>
</li>
<li>
<p>推荐一家你认为好吃又实惠的美食店。<br />答：老家附近的壶仔饭和鱼丸汤。</p>
</li>
<li>
<p>你有很要好并且感情纯洁的异性朋友么？who is she/he?<br />答：有，高中的一个好朋友。像兄弟姐妹一样。</p>
</li>
<li>
<p>遇到喜欢的人，你是勇敢表白还是默默关注？<br />答：勇敢表达，因为我觉得想做的事情，就去做，成功或失败倒是其次。最重要的，我做了，努力了，将来不会后悔。</p>
</li>
<li>
<p>说出点你名的人的3个优点（不可删除题）<br />答：英语很好、独立、上进、思想开放、拍照技术很好、爱国（为啥规定优点只有3个？）</p>
</li>
<li>
<p>什么事情会让你觉得很幸福？<br />答：帮助别人。完成一件事 （无论工作或是生活），受到鼓励和支持，受到关心。</p>
</li>
<li>
<p>你最想回到哪一年重新开始？<br />答：初中二年级，初中二年级上半学期，我碰到了一个恶毒的老师，天天把我留校，关在办公室不让我吃饭等等，让我对老师产生了不良印象，对学习失去了信心，等于毁了我。我从小学习很好，但是从那个时候开始学习就不行了。我忍了上半学期，下半学期的时候，爸爸妈妈知道了就赶紧给我转校，如果让我重新开始，我会立即请爸爸妈妈跟学校投诉或是立即给我转校。</p>
</li>
<li>
<p>你对你的近况满意吗？有什么需要改变？<br />答：不满意，主要是比较空虚，没啥新知识的注入，工作上的一些进度停滞不前，需要改变的就是我变勤快点，同事们大家努力点。</p>
</li>
<li>
<p>目前最大的娱乐活动。<br />答：玩电脑<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e6%b8%b8%e6%88%8f" title="查看 游戏 中的全部文章" target="_blank">游戏</a></span>+陪朋友逛街+找朋友聊天</p>
</li>
<li>
<p>你最讨厌的一件事是什么？<br />答：暂时没有，因为我对啥都不讨厌也对啥都有兴趣。</p>
</li>
<li>
<p>你的理想或者说梦想是什么？想过去实现么？<br />答：盖一座孤儿院，让无家的小孩有个家并且能受到教育，而且妈妈是医生，小孩子如果生病了，给妈妈看就好，不用另外找医生。孤儿院也是是妈妈的心愿。</p>
</li>
<li>
<p>你最看重一个人的品质是什么？<br />答： 善良</p>
</li>
<li>
<p>你会选择什么样的人做朋友?为什么?<br />答：谁都可以跟我做朋友，因为我一直认为，每个人都有其好的一面。都有其值得我学习的地方。</p>
</li>
<li>
<p>此时此刻的一个小愿望?<br />答：感冒快点好，喉咙快点不痛，工作上的事情早点解决。</p>
</li>
<li>
<p>你如何确定自己爱上一个人？你认为怎样才是爱的感觉呢？<br />答：一直想着，而且会一直想跟她分享一切。喜怒哀乐等等。</p>
</li>
<li>
<p>说一句你最近的口头禅吧，最好加点情境在里面…<br />答：肚子怎么样？回答：好了好了。不痛了。</p>
</li>
<li>
<p>你最经常浏览和发言的论坛是哪个，你觉得你能得到什么？<br />答：<a  title="访问游侠网" href="http://game1.ali213.net/" target="_blank">游侠网</a>、<a  title="访问chinaunix" href="http://bbs2.chinaunix.net/" target="_blank">chinaunix</a>、<a  title="访问discuz" href="http://www.discuz.net/" target="_blank">discuz</a>、<a  title="访问Gameres" href="http://bbs.gameres.com/" target="_blank">Gameres</a>、<a  title="访问WordPress中文" href="http://wordpress.org.cn/" target="_blank">WordPress中文</a>等，从中学习和交流吧。</p>
</li>
</ol>
<p style="text-indent:2em">点名~，咱们这次点：<a  title="访问SunQ的博客" href="http://www.sun-q.cn/" target="_blank" rel="external"><strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/sunq" title="查看 SunQ 中的全部文章" target="_blank">SunQ</a></span></strong></a>、<a  href="http://my-hou.cn/" target="_blank" rel="external"><strong>My-Hou不務正業</strong></a>、<a  href="http://genmicha.cn/" target="_blank"><strong><span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/chada" title="查看 Chada 中的全部文章" target="_blank">Chada</a></span></strong></a>（已经被YY点名了）、<a  href="http://vicview.com/blog/" target="_blank"><strong>Vicview</strong></a>（已经被YY点名了）、<a  title="访问虫儿的童话" href="http://achonger.com/" target="_blank" rel="external"><strong>虫儿</strong></a>、<a  title="访问可岛可薇" href="http://www.350881.com/" target="_blank"><strong>可岛可薇</strong></a>、<a  title="访问懒人的博客" href="http://www.lazyard.com/" target="_blank"><strong>懒人</strong></a>、<strong>还有您，没错，就是您，在看这篇文章的您。</strong></p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2009/03/css-control-fonts.html" rel="bookmark" title="Permanent Link: 实现正文内容字体可调整">实现正文内容字体可调整</a></li><li><a  href="http://firefore.com/2008/04/torch-relay-2008.html" rel="bookmark" title="Permanent Link: 炜煜推荐_2008 全球火炬接力路线图">炜煜推荐_2008 全球火炬接力路线图</a></li><li><a  href="http://firefore.com/2009/07/ban-jia.html" rel="bookmark" title="Permanent Link: blog搬家">blog搬家</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/04/about-9npc.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>感谢BlogBackupr的管理员</title>
		<link>http://firefore.com/2008/03/thanks-blogbackupr-manager.html</link>
		<comments>http://firefore.com/2008/03/thanks-blogbackupr-manager.html#comments</comments>
		<pubDate>Thu, 27 Mar 2008 05:44:16 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[BlogBackupr]]></category>
		<category><![CDATA[GENMICHA]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[工作]]></category>
		<category><![CDATA[游戏]]></category>
		<category><![CDATA[生活]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/03/%e6%84%9f%e8%b0%a2blogbackupr%e7%9a%84%e7%ae%a1%e7%90%86%e5%91%98.html</guid>
		<description><![CDATA[BlogBackupr是什么？请看GENMICHA的一篇介绍文章：BlogBackupr:帮你备份博客的在线服务 当时看到了这个在线备份blog的网站，实在兴奋，就跑去申请使用。但是不知道什么原因。在最后一步注册用户... ]]></description>
			<content:encoded><![CDATA[<p style="TEXT-INDENT: 2em"><a  href="http://blogbackupr.com/" target="_blank" title="blogbackupr.com">BlogBackupr</a>是什么？请看<a  href="http://genmicha.cn/" target="_blank" title="Chada 的blog">GENMICHA</a>的一篇介绍文章：<a  href="http://genmicha.cn/blogbackupr.htm" target="_blank" title="From GENMICHA">BlogBackupr:帮你备份博客的在线服务</a></p>
<p style="TEXT-INDENT: 2em">当时看到了这个在线备份blog的网站，实在兴奋，就跑去申请使用。但是不知道什么原因。在最后一步注册用户的时候提示我的<a  href="http://wordpress.org/" target="_blank" title="基于 WordPress，完美的个人信息发布平台。">WordPress</a>版本错误或是版本太旧，无法备分。 我想破了脑袋也不知道原因在什么地方。</p>
<p style="TEXT-INDENT: 2em">后来。我在<a  href="http://blogbackupr.com/" target="_blank" title="blogbackupr.com">BlogBackupr</a>的网站底部看到有一个 <a id="skickaepost" name="skickaepost" title=""><strong>Contact</strong></a> 的电子邮件地址。我就用我那蹩脚英语给他们发了一封电子邮件，说明了我碰到的问题。当时主要也只是想反映一下，并没有对解决问题持有很大的希望。发信的时间是11时左右，到了16时，很惊喜地受到了对方的回信。内容是他们请我多尝试几次。署名是Jonas。</p>
<p style="TEXT-INDENT: 2em">这下我对这个网站的印象就改观了。觉得他们还比较负责。所以第二天，我又尝试了6次。结果都是报告同样的错误。郁闷无比啊，我就把尝试6次的情况写成电子邮件发送给他们并表示我的感谢。</p>
<p style="TEXT-INDENT: 2em">这次信件发送过去后，好几天都没有得到答复。当时的我也就对这个网站也失去了信心。10天后。我再次收到了<a  href="http://blogbackupr.com/" target="_blank" title="blogbackupr.com">BlogBackupr</a>的回信。给我另外的一个解决方法。就是在最后一步注册用户的时候，点选 “No thanks! Use the public feed”.这样系统会自动给我的电子邮件发送一个随机密码，就可以开始使用这个网站提供的服务了。而这个功能在之前并没有出现，也就是说这10天内他们是在升级系统？我估计有不少人可能碰到跟我同样的问题。</p>
<p style="TEXT-INDENT: 2em">让我觉得温馨的是在收到他们的回信的同时，我也收到了一封<a  href="http://blogbackupr.com/" target="_blank" title="blogbackupr.com">BlogBackupr</a>系统的信件，里面有写了我的随机密码。我登陆后发现，设置啊什么的都已经OK了。</p>
<p style="TEXT-INDENT: 2em">现在的互联网竞争很激烈，然而不变的是”用户即为根本”的道理。不论是门户网站，还是Web2.0的网站，还是网络<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e6%b8%b8%e6%88%8f" title="查看 游戏 中的全部文章" target="_blank">游戏</a></span>，都是如此。<a  href="http://blogbackupr.com/" target="_blank" title="blogbackupr.com">BlogBackupr</a>对我一个异国的使用蹩脚英文的普通用户能够做到热心回复并且跟踪反馈。关于这点，我很赞赏。</p>
<p style="TEXT-INDENT: 2em">古人云：”<strong>一屋不扫，何以扫天下？”。</strong>小事情都不做，怎么可能做大事呢？这里引申一下，也给部分正要开始<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>的同学们一些建议，找<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e5%b7%a5%e4%bd%9c" title="查看 工作 中的全部文章" target="_blank">工作</a></span>时，不要眼光太高了，自信而不是自傲。从小做起，基础更扎实！” <strong>不积跬步，无以至千里；不积小流，无以成江海”</strong>这话不止用来学习上，在<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e7%94%9f%e6%b4%bb" title="查看 生活 中的全部文章" target="_blank">生活</a></span>中，更是应该如此。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2008/07/notebook.html" rel="bookmark" title="Permanent Link: 先图后文">先图后文</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/03/thanks-blogbackupr-manager.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Blog出了点毛病。请勿担心。已解决！</title>
		<link>http://firefore.com/2008/03/myblog-bug.html</link>
		<comments>http://firefore.com/2008/03/myblog-bug.html#comments</comments>
		<pubDate>Wed, 26 Mar 2008 07:24:46 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[学习笔记]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/03/myblog-bug.html</guid>
		<description><![CDATA[今天才发现我昨天修改的那个搜索栏在IE下凄惨不堪。。有时间会调整一下。 还有，今天发现后台只要有提交数据，就会出现空白。正在寻找原因。 原因找到了，我心血来潮，把主题下的functio... ]]></description>
			<content:encoded><![CDATA[<p>今天才发现我昨天修改的那个搜索栏在IE下凄惨不堪。。有时间会调整一下。<br />
还有，今天发现后台只要有提交数据，就会出现空白。正在寻找原因。</p>
<p><font style="color:#FF0000">原因找到了，我心血来潮，把主题下的functions.php的文件编码修改为utf8。结果就出现以上两个问题了。我现在修改回ANSI的编码格式，就正常了。晕。 </font></p>
<p>原来是因为我保存为utf8。但是编辑器自动加入BOM。结果就不行了。后来去掉了BOM就OK了。呵呵。</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2007/11/xml-rpc-ping-services.html" rel="bookmark" title="Permanent Link: WordPress文档中的Ping Services">WordPress文档中的Ping Services</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/03/myblog-bug.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>用Google的自定义搜索引擎替代站内的搜索</title>
		<link>http://firefore.com/2008/03/google-cse.html</link>
		<comments>http://firefore.com/2008/03/google-cse.html#comments</comments>
		<pubDate>Tue, 25 Mar 2008 06:09:59 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[资源共享]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/03/google-cse.html</guid>
		<description><![CDATA[很早以前就发现WordPress自带的搜索功能很不好用。所以用了Google的自定义搜索引擎替代站内的搜索。本来想用Google AJAX Search API的，但是太复杂了。后来就决定使用Google自定义搜索引擎了！ 要使... ]]></description>
			<content:encoded><![CDATA[<p style="text-indent:2em">很早以前就发现<a  title="WordPress官方站点" href="http://wordpress.org" target="_blank">WordPress</a>自带的搜索功能很不好用。所以用了<a  href="http://www.google.com" target="_blank">Google</a>的<strong>自定义搜索引擎</strong>替代站内的搜索。本来想用<a  href="http://code.google.com/intl/zh-CN/apis/ajaxsearch/" target="_blank">Google AJAX Search API</a>的，但是太复杂了。后来就决定使用<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">Google自定义搜索引擎</a>了！</p>
<p style="text-indent:2em">要使用<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">Google自定义搜索引擎</a>。首先得有个<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/google" title="查看 Google 中的全部文章" target="_blank">Google</a></span>的账户。<a  href="https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.google.com%2Fcoop%2Fmanage%2Fcse%2Fcreate%2F1%3Fhl%3Dzh-CN&#038;service=cprose&#038;hl=zh-CN" target="_blank">点这里:<b>创建 <span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/google" title="查看 Google 中的全部文章" target="_blank">Google</a></span> 帐户</b></a>。然后访问<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">Google自定义搜索引擎</a>。再点&#8220;<a  href="http://www.google.com/coop/manage/cse/create/1?hl=zh-CN" target="_blank">创建自定义搜索引擎</a>&#8221;，输入相关信息之后，就可以开始使用了。</p>
<p style="text-indent:2em">首先在自定义搜索引擎的控制面板上，先制定搜索的网站是自己的网站，然后获取到代码，在代码页面的<strong>搜索结果托管选项</strong>中，我选择的是&#8220;一个网页提供搜索框，另一个提供结果&#8221;的形式。然后在页面的下面有个<strong>搜索结果代码</strong>的文本框，把文本框内的代码拷贝下来，然后在<a  title="WordPress官方站点" href="http://wordpress.org" target="_blank">WordPress</a>使用的主题目录下，拷贝一个<strong>page.php</strong>的副本，重命名一下。我这里是重命名为<strong>googlesearch.php</strong>。然后用编辑器打开googlesearch.php（这里我个人推荐使用<a  href="http://notepad-plus.sourceforge.net/" target="_blank">Notepad++</a>!），在其顶部代码</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>之前添加以下代码：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
 <span style="color: #666666; font-style: italic;">/*
Template Name: googlesearch
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><em>此段代码的作用是把这个页面定义一个模板名称，以下会用到。</em></p>
<p style="text-indent:2em">然后把刚才我们从<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">Google的自定义搜索引擎</a>的控制面板上的<strong>搜索结果代码</strong>的文本框内的拷贝下来的代码，替换到</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span>&gt;</span></pre></div></div>

<p>和</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>中间的那些内容。其他的地方不需要修改了。然后保存一下，记得一定要按照utf8格式保存。</p>
<p style="text-indent:2em">然后登录到<a  title="WordPress官方站点" href="http://wordpress.org" target="_blank">WordPress</a>的后台，撰写一个新页面，页面的标题由自己填写了。重要的两个地方，一个是页面模板必须选择googlesearch。页面缩略名一定要用英文（我这里也是用googlesearch）。保存之后。就可以用<u>http://您的站点/googlesearch</u>访问了。拷贝下这个地址。</p>
<p style="text-indent:2em">返回<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">google的自定义搜索引擎</a>的控制面板，在<strong>指定搜索结果详情</strong>下面的文本栏里把<u>http://您的站点/googlesearch</u>粘帖进去。至于那个广告位置，随意选择了。以上操作之后，可以看到<strong>搜索框代码</strong>的文本框内的代码有所变动（其实就是把我们制定的网址加入搜索框代码），然后我们拷贝这个搜索框代码。然后再到<a  title="WordPress官方站点" href="http://wordpress.org" target="_blank">WordPress</a>的中，修改主题，放置这段搜索框代码替换掉原来的站内搜索代码。这样就可以让<a  href="http://www.google.com" target="_blank">Google</a>的搜索来替代原始的搜索了，而且搜索结果显示在自己的网站上了。</p>
<p style="text-indent:2em">然后我自己是修改了搜索框代码的内容，主要是一些样式的修改，好适应我目前使用的主题。不知道会不会违反<a  href="http://www.google.com/coop/cse/?hl=zh-CN" target="_blank">Google自定义搜索引擎</a>的<a  href="http://www.google.com/coop/docs/cse/tos.html?hl=zh-CN" target="_blank">服务条款</a>。服务条款内全是英文，我的英文能力不好，只能看个大概，差不多是搜索的结果那边是不能动的，至于这个搜索框，好像没啥要求？？？</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2007/09/google9year.html" rel="bookmark" title="Permanent Link: Google 9年了。时间好快~">Google 9年了。时间好快~</a></li><li><a  href="http://firefore.com/2008/05/google-com-chinaearthquake.html" rel="bookmark" title="Permanent Link: Google-援助中国抗震救灾专题页">Google-援助中国抗震救灾专题页</a></li><li><a  href="http://firefore.com/2008/02/wuzi-1.html" rel="bookmark" title="Permanent Link: 初六，上班了。戊子年第一篇。">初六，上班了。戊子年第一篇。</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/03/google-cse.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>改了一张RSS图，贴上一个福，是康熙福字哦。</title>
		<link>http://firefore.com/2008/02/fu-rss.html</link>
		<comments>http://firefore.com/2008/02/fu-rss.html#comments</comments>
		<pubDate>Tue, 05 Feb 2008 03:37:23 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[心情杂记]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[康熙福字]]></category>
		<category><![CDATA[过年]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/02/fu-rss.html</guid>
		<description><![CDATA[今天下班的时候，再次查看了一下自己的博客，发现右上的RSS图竟然还是圣诞节的。我的天。罪过罪过。 由这个圣诞节的RSS图，我联想到了春节的时候，咱们都会贴个&#8220;福&#8221;。所以，我... ]]></description>
			<content:encoded><![CDATA[<p class="postcontent">今天下班的时候，再次查看了一下自己的博客，发现右上的<a  href="http://baike.baidu.com/view/1644.htm" target="_blank">RSS</a>图竟然还是圣诞节的。我的天。罪过罪过。</p>
<p class="postcontent">由这个圣诞节的<a  href="http://baike.baidu.com/view/1644.htm" target="_blank">RSS</a>图，我联想到了春节的时候，咱们都会贴个&#8220;福&#8221;。所以，我也想让这个<a  href="http://baike.baidu.com/view/1644.htm" target="_blank">RSS</a>图帖上福，好有<span class='wp_keywordlink_affiliate'><a href="http://firefore.com/bq/%e8%bf%87%e5%b9%b4" title="查看 过年 中的全部文章" target="_blank">过年</a></span>的气氛嘛～</p>
<p class="postcontent">但是几千年的中华传统，单一个&#8220;福&#8221;就有好多种写法，<a  href="http://www.google.com" target="_blank">Google</a>了一下。素材也很多。最后，想到前些日子，一个做保险的好朋友送了我一些新年礼包，里面有个很大的&#8220;福&#8221;。朋友说那个字是<a  href="http://www.wiki.cn/wiki/%E5%BA%B7%E7%86%99" target="_blank">康熙帝</a>写的，还跟我解释了一番。(以下斜体文字资料来自互联网)</p>
<p class="postcontent"><em>传说康熙十二年，孝庄太后六十大寿将至，不料突染重病。康熙为祖母请福，在沐浴斋戒三日之后，康熙精选了一支上镌&#8220;赐福苍生&#8221;正楷四金字的毛笔，在丝绢制作的纸笺上一气呵成写就了倾注对祖母挚爱的&#8220;福&#8221;字，并破例加盖&#8220;康熙御笔之宝&#8221;印玺。玉玺是皇帝权力的象征，一般只能盖在圣旨和重要的公务文件上，不能盖在一般的书法作品上。康熙印玺既没有盖在&#8220;福&#8221;字的左下方，也没有盖在&#8220;福&#8221;字的右上方，而是郑重地盖在&#8220;福&#8221;字的正上方，寓意&#8220;鸿运当头，福星高照&#8221;。太后自得到了这&#8220;福&#8221;字，百病全消，最后以七十五岁高龄善终。事后康熙几番重提御笔，却再也写不出其中的神韵，所以民间盛传此福为&#8220;天赐鸿福&#8221;。御&#8220;福&#8221;加玺后，具有了神圣地位，不允许倒挂，因此康熙&#8220;福&#8221;成为了中国唯一一幅不可倒挂的&#8220;福&#8221;。 据说，周总理称该字为&#8220;中华第一福&#8221;，（民间又称&#8220;天下第一福&#8221;）。康熙&#8220;福&#8221;字中包含了&#8220;多子、多才、多田、多寿、多福&#8221;数个汉字，是古往今来、独一无二的&#8220;五福&#8221;合一之&#8220;福&#8221;。由于其中的&#8220;田&#8221;部尚未封口，因此是鸿福无边、无边之福，民间称之为&#8220;五福之本、万福之源&#8221;。</em></p>
<p class="postcontent">我用来修改的康熙&#8220;福&#8221;字图片的原始地址：<a  title="http://down.4567.cn/Article/UploadFiles/200702/20070216234326865.gif" href="http://down.4567.cn/Article/UploadFiles/200702/20070216234326865.gif" target="_blank">http://down.4567.cn/Article/UploadFiles/200702/20070216234326865.gif</a></p>
<p>原始图片很大，缩小之后，福字上面的印玺无法显示了（因为我的PS水平烂到家）。所以，细心的朋友就会感觉那个&#8220;福&#8221;字好像比较偏下。<strong>不过话说回来，我用的&#8220;福&#8221;这个图上的印玺有问题。我记得正宗的是有六个字的。而这个图上只有四个字！</strong></p>
<p class="postcontent">还有一点我自己个人感受，我觉得&#8220;福&#8221;字还是不要倒过来贴。虽然有&#8220;福到&#8221;的意思，但是也是有&#8220;福倒&#8221;的意思吧？</p>
<p class="postcontent"><strong>祝福大家新春愉快，阖家幸福，身体健康！</strong></p>
<p class="postcontent">2008-02-07(初一)：因为之前的图片是png32的格式，IE不支持其透明。所以今天修改为gif图。</p>
<hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/02/fu-rss.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>近期内有空打算再换个主题</title>
		<link>http://firefore.com/2008/01/change-theme.html</link>
		<comments>http://firefore.com/2008/01/change-theme.html#comments</comments>
		<pubDate>Mon, 14 Jan 2008 16:02:10 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/01/change-theme.html</guid>
		<description><![CDATA[总感觉目前的这个主题好像是太花俏了点，不太符合自己的个性，而且载入速度不理想，CSS可能也需要优化一下。 最近有不少朋友的主题都有所变更～我在想，是不是也要变更一下？走技术类... ]]></description>
			<content:encoded><![CDATA[<p>总感觉目前的这个主题好像是太花俏了点，不太符合自己的个性，而且载入速度不理想，CSS可能也需要优化一下。</p>
<p>最近有不少朋友的主题都有所变更～我在想，是不是也要变更一下？走技术类型的博客路线好了。采用简单一点的主题～～</p>
<p>不过目前的主题我还是很喜欢的。呵呵～</p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2011/05/on-may-9.html" rel="bookmark" title="Permanent Link: 5月9号">5月9号</a></li><li><a  href="http://firefore.com/2007/12/deep-blue-theme.html" rel="bookmark" title="Permanent Link: 把主题更换为Deep Blue Theme了">把主题更换为Deep Blue Theme了</a></li><li><a  href="http://firefore.com/2007/12/mysqladmin-change-password.html" rel="bookmark" title="Permanent Link: windows下mysqladmin设置mysql初始密码">windows下mysqladmin设置mysql初始密码</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/01/change-theme.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>让你的WordPress支持简繁转换，采用JS。</title>
		<link>http://firefore.com/2008/01/chinese-troditional-simplified.html</link>
		<comments>http://firefore.com/2008/01/chinese-troditional-simplified.html#comments</comments>
		<pubDate>Thu, 03 Jan 2008 09:44:25 +0000</pubDate>
		<dc:creator>FireFore</dc:creator>
				<category><![CDATA[好站推荐]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://firefore.com/2008/01/chinese-troditional-simplified.html</guid>
		<description><![CDATA[放弃了GOOGLE的翻译，采用了JS来实现。 是因为看到GENMICHA有介绍： http://genmicha.cn/chinese-troditional-simplified.htm 感觉不错。具体的方法以上链接的介绍有详细说明。 感谢GENMICHA 相关文章：Dell Dock地... ]]></description>
			<content:encoded><![CDATA[<p>放弃了GOOGLE的翻译，采用了JS来实现。<br />
是因为看到<a  href="http://genmicha.cn/" target="_blank">GENMICHA</a>有介绍：<br />
<a  href="http://genmicha.cn/chinese-troditional-simplified.htm" target="_blank">http://genmicha.cn/chinese-troditional-simplified.htm</a><br />
感觉不错。具体的方法以上链接的介绍有详细说明。</p>
<p>感谢<a  href="http://genmicha.cn/" target="_blank">GENMICHA</a></p>
<hr /><h4>相关文章：</h4><ul><li><a  href="http://firefore.com/2009/01/dell-dock.html" rel="bookmark" title="Permanent Link: Dell Dock">Dell Dock</a></li><li><a  href="http://firefore.com/2008/05/duo-zai-na-li.html" rel="bookmark" title="Permanent Link: 地震时躲在哪里？">地震时躲在哪里？</a></li><li><a  href="http://firefore.com/2008/08/dell-latitude-d630.html" rel="bookmark" title="Permanent Link: 我那不幸的Dell Latitude D630">我那不幸的Dell Latitude D630</a></li></ul><hr /><small><p>&#26412;&#20316;&#21697;&#30001;<a  0="xmlns:cc="http://creativecommons.org/ns#"" href="http://firefore.com" property="cc:attributionName" rel="cc:attributionURL">shiweiyu</a>&#21019;&#20316;&#65292;&#37319;&#29992;<a  rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">&#30693;&#35782;&#20849;&#20139;&#32626;&#21517;-&#30456;&#21516;&#26041;&#24335;&#20849;&#20139; 3.0 Unported&#35768;&#21487;&#21327;&#35758;</a>&#36827;&#34892;&#35768;&#21487;&#12290;<br />
Copyright &copy; 2010 <a  href="http://firefore.com">FireFore.com</a> (数字指纹： woaiwojia_weiyu (38.107.179.213) )</small></p>]]></content:encoded>
			<wfw:commentRss>http://firefore.com/2008/01/chinese-troditional-simplified.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

