<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>老肥博客 » 非唠不可 &#187; WordPress</title>
	<atom:link href="http://fis.io/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://fis.io</link>
	<description>IT 相关的博客，分享关于Google, Firefox, 黑莓, 手机, 软件, WordPress, ...</description>
	<lastBuildDate>Fri, 08 Jul 2011 08:43:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>打造完美的 ajax 版 Google 自定义搜索</title>
		<link>http://fis.io/ajax-google-custom-search-engine.html</link>
		<comments>http://fis.io/ajax-google-custom-search-engine.html#comments</comments>
		<pubDate>Thu, 11 Mar 2010 08:08:42 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[网络 服务]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[JS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1708</guid>
		<description><![CDATA[通常我们选用 Google CSE 自定义搜索引擎代替网站自身的搜索服务，可以减轻服务器的负载，但更重要的原因是 Google 搜索有强大的词语分割、智能匹配... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2007/10/search.gif" alt="" width="113" height="125" style="float: left; margin: 0 10px; " />通常我们选用 <a href="http://www.google.com/cse/" class="external" target="_blank" title="Google Custom Search Engine - Site search and more">Google CSE</a> 自定义搜索引擎代替网站自身的搜索服务，可以减轻服务器的负载，但更重要的原因是 Google 搜索有强大的词语分割、智能匹配、拼写纠正功能，甚至能将 "bb" 与 "BlackBerry", "DM" 与 "桌面管理器" 进行通配，这些算法是我们自己做不到的。我以前在博客中采用 iframe 版的 CSE, 最近把它换成了定制性更强，基于 <a href="http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/" class="external" target="_blank" title="开发人员指南 - Google AJAX 搜索 API - Google 代码">Google ajax API</a> 的新版，将经验分享一下。本方案优点：<span id="more-1708"></span></p>
<ul>
<li>不搜索时完全不加载任何相关资源，如 ajax API 库等</li>
<li>搜索 url 非常干净，没有多余的参数：<a href="http://fis.io/search?q=cse">fis.io/search?q=cse</a></li>
<li>方便使用 javascript 对结果样式进一步调整</li>
</ul>
<h4>获取代码</h4>
<p>首先需要在 控制面板 - 外观<sup style="color: red; ">新功能！</sup>中选择“搜索元素”模式 (Search element), 再选择一种布局和一种样式。实际上 ajax API 能做的事情非常多，比如就在搜索框下方即时展开结果列表。如果把结果列表悬浮绝对定位，再加上 <a href="http://code.google.com/apis/ajax/playground/#search_as_user_types" class="external" target="_blank" title="Google Code Playground - Search as user Types">Search as user Types</a>, 就可以做 apple.com 右上角那种搜索样式了，一边输入一边匹配。</p>
<p>但是考虑到小博客的站内搜索被使用得并不多，我还是选择了两栏布局，将结果列表放在一个专门的页面 /search 中，这样的好处是不搜索的时候可以不加载多余的内容：API 库，JS, CSS 等等。</p>
<h4>改造搜索框</h4>
<p>先不急着把获取的那一大堆代码往搜索框上放，上面说了，我们要的效果是不搜索的时候不加载。就改造一下模板原生的搜索框就可以了，让它提交用户输入的内容到 /search 这个页面，就这样。我的 header.php 中的搜索框是这样的：</p>
<p><code class="html">&lt;form <span style="color: #4b0; ">action="/search"</span> id="searchbox"&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="text" <span style="color: #4b0; ">name="q"</span> id="input_search" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="submit" value="搜索" /&gt;<br />
&lt;/form&gt;</code></p>
<p>一个 form 中装一个输入框和一个按钮，关键内容是 action="/search" 和 name="q", 表示将会跳转到 <a href="http://fis.io/search?q=cse">/search?q=搜索的内容</a>.</p>
<h4>结果页面</h4>
<p>建立一个页面 /search 来放入所有 CSE 代码。页面正文中放入 id="cse" 的 div, 搜索执行的时候脚本将会改写其中的内容。</p>
<p><code class="html">&lt;div <span style="color: #4b0; ">id="cse"</span>&gt;正在搜索...&lt;/div&gt;</code></p>
<p>然后在页面任意位置，比如末尾，写入前面获得的两个 javascript 代码，一个是 ajax API 库 google.com/jsapi, 另一个是以 google.load 开头的一大串。还有些 CSS, 是前面获取代码的时候选择的一种样式。</p>
<p>但这时候还不会自动执行用户之前输入的搜索，要从 url 请求中把搜索词剥离出来，并执行。这里我用了 <a href="http://www.imkevinyang.com/2009/12/在wordpress中轻松集成google自定义搜索引擎.html" class="external" target="_blank" title="在Wordpress中轻松集成Google自定义搜索引擎 | 简单生活 —— Kevin Yang的博客">Kevin Yang</a> 提供的方法，在 draw('cse') 一行后加入：</p>
<p><code class="js">var match = location.search.match(/q=([^&#038;]*)(&#038;|$)/);<br />
if(match &#038;& match[1]){<br />
&nbsp;&nbsp;&nbsp;&nbsp;var search = decodeURIComponent(match[1]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.execute(search);<br />
}</code></p>
<p>现在这个搜索系统就可以正常工作了。下面是对脚本的进一步自定义，只逐条说明，不每次都写完整的代码，我会把完整的修改后的脚本放在本文末尾。如果今后代码发生变动，请自行查看我的 <a href="http://fis.io/search?q=cse">搜索结果页</a> 源代码。</p>
<h4>不加载 Google 的 CSS</h4>
<p>如果要用自己网站的样式，最好是完全不加载 Google 的 CSS, 不然覆盖样式就有得写了。在 google.load 中加入 "nocss" : true 即可。</p>
<p><code class="js">google.load('search', '1', {language : 'zh-CN' , <span style="color: #4b0; ">"nocss" : true</span> });</code></p>
<h4>无结果时显示的文字</h4>
<p>由 setNoResultsString 控制，在无结果时将字串写入到 "正在搜索" 处。中文语言下缺省值为“无结果”</p>
<p><code class="js">customSearchControl.<span style="color: #4b0; ">setNoResultsString</span>('什么也没找到，请重试');</code></p>
<h4>结果每页条数</h4>
<p>由 setResultSetSize 控制，可选参数为 FILTERED_CSE_RESULTSET 10条；LARGE_RESULTSET 8条；SMALL_RESULTSET 4条。</p>
<p><code class="js">customSearchControl.<span style="color: #4b0; ">setResultSetSize</span>( google.search.Search.SMALL_RESULTSET);</code></p>
<h4>是否在新标签中打开链接</h4>
<p>由 setLinkTarget 控制，一般用到的就是 LINK_TARGET_BLANK 和 LINK_TARGET_SELF 两种。</p>
<p><code class="js">customSearchControl.<span style="color: #4b0; ">setLinkTarget</span>( google.search.Search.LINK_TARGET_SELF);</code></p>
<h4>搜索执行完毕后调用其它脚本</h4>
<p>由 setSearchCompleteCallback 控制，这是一个相当灵活的命令，我这里用它来将搜索结果标题中的“老肥博客 » 非唠不可”去掉，不然每条标题后面都有这样一句，比较难看。这里我另外加载了 jQuery 来用，当然这不是必需的，如果没有需要就不用了。</p>
<p><code class="js nowrap">customSearchControl.<span style="color: #4b0; ">setSearchCompleteCallback</span>(null, function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('input.gsc-input').select();<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('a.gs-title').unwrap().wrap('&lt;h3&gt;&lt;/h3&gt;').each(function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var title = $(this).html().replace(/\|.*/g, '');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).html(title);<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
&nbsp;&nbsp;&nbsp;&nbsp;$('b:contains("...")').contents().unwrap();<br />
});</code></p>
<p class="clear">以上在 setSearchCompleteCallback 中执行了三个步骤：</p>
<ul>
<li>将焦点放到搜索框 input.gsc-input 中并全选文字；</li>
<li>将搜索结果标题链接 a.gs-title 先去掉外面的一层 div, 再套在 &lt;h3&gt; 内（这样方便沿用全局 CSS 里面的标题样式），然后对每个标题链接读取内容，替换，写回去；</li>
<li>将包含 "..." 的关键字高亮去掉 &lt;b&gt;;（Google 用 &lt;b&gt; 标示关键字，但不知为何 "..." 也都这样标记）</li>
</ul>
<h4>其它</h4>
<p>我的搜索页面中还有一些脚本和样式，比如将 CSE 的搜索框伪装成模板原生的输入框，这样可以避免多次搜索的时候重复加载页面；从搜索框中取得当前关键字，写入到右侧提示区；等等，比较特殊，这里就不细写了，反正 Firebug 什么的都一眼看穿。</p>
<p>另外，前面提到 Kevin 的文章中有个技巧很不错，只让单篇文章出现在搜索结果中，排除掉翻页、标签等页面，像我用 .html 作为单篇文章的链接结构就很好办，直接在 CSE 控制面板中设置“包含的网站”为 fis.io/*.html, 就排除了其它形式的链接结构。</p>
<p>微博也是博客，我在 fis.io/*.html 之外还将 twitter.com/fisio/* 编入了索引，在搜索某些内容的时候会看到我的推也在搜索结果中。</p>
<p>最后是我的 /search 页面中相关脚本完整版：</p>
<p><code class="js nowrap">&lt;script src="http://www.google.com/jsapi" type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;<br />
&lt;script type="text/javascript"&gt;<br />
google.load('search', '1', {language : 'zh-CN' , "nocss" : true });<br />
google.setOnLoadCallback(function(){<br />
&nbsp;&nbsp;&nbsp;&nbsp;var customSearchControl = new google.search.CustomSearchControl('015811090669888844099:szzhafqj8_4');<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.setLinkTarget(google.search.Search.LINK_TARGET_SELF);<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.setNoResultsString('&lt;img src="/b.gif" class="wp-smiley sm-sad"&gt;&nbsp;&nbsp;什么也没找到，请重试');<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.setSearchCompleteCallback(null,function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('input.gsc-input').select();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var searchwords = $('input.gsc-input').val();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('.p &gt; b').text(searchwords);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('a.gs-title').addClass('new').unwrap().wrap('&lt;h3&gt;&lt;/h3&gt;').each(function() {<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var title = $(this).html().replace(/\|.*/g, '');<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$(this).html(title);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;});<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('b:contains("...")').contents().unwrap();<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$('.gsc-cursor-current-page').removeClass('gsc-cursor-page');<br />
&nbsp;&nbsp;&nbsp;&nbsp;});<br />
&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.draw('cse');<br />
&nbsp;&nbsp;&nbsp;&nbsp;var match = location.search.match(/q=([^&#038;]*)(&#038;|$)/);<br />
&nbsp;&nbsp;&nbsp;&nbsp;if(match &#038;& match[1]){<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;var search = decodeURIComponent(match[1]);<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;customSearchControl.execute(search);<br />
&nbsp;&nbsp;&nbsp;&nbsp;}<br />
});<br />
&lt;/script&gt;</code></p>
<h4 class="clear">参考文献</h4>
<ul>
<li><a href="http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/" class="external" target="_blank" title="开发人员指南 - Google AJAX 搜索 API - Google 代码">开发人员指南 - Google AJAX 搜索 API - Google 代码</a></li>
<li><a href="http://code.google.com/intl/zh-CN/apis/ajaxsearch/documentation/reference.html" class="external" target="_blank" title="类参考 - Google AJAX 搜索 API - Google 代码">类参考 - Google AJAX 搜索 API - Google 代码</a></li>
<li><a href="http://www.imkevinyang.com/2009/12/在wordpress中轻松集成google自定义搜索引擎.html" class="external" target="_blank" title="在Wordpress中轻松集成Google自定义搜索引擎 | 简单生活 —— Kevin Yang的博客">在Wordpress中轻松集成Google自定义搜索引擎 | 简单生活 —— Kevin Yang的博客</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/ajax-google-custom-search-engine.html/feed</wfw:commentRss>
		<slash:comments>166</slash:comments>
		</item>
		<item>
		<title>全新的评论区体验</title>
		<link>http://fis.io/comment-new-experience.html</link>
		<comments>http://fis.io/comment-new-experience.html#comments</comments>
		<pubDate>Sat, 27 Feb 2010 11:44:25 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1673</guid>
		<description><![CDATA[最近又折腾上了 WordPress 模板，把很久没有动过的评论输入框做了些修葺，看上去有些不一样了 对以前评论过的人隐藏资料输入部分 这个功能在很多博... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: left; margin: 5px 15px 5px 0;" src="http://fis.io/wp-content/uploads/2008/06/painting.png" alt="" />最近又折腾上了 WordPress 模板，把很久没有动过的评论输入框做了些修葺，看上去有些不一样了 <img src='/b.gif' alt=':eek:' class='wp-smiley sm-eek' /> </p>
<h4>对以前评论过的人隐藏资料输入部分</h4>
<p>这个功能在很多博客都可以看到，让常客不再重复看到资料输入框，需要的时候点击就可以展开修改。另外预先显示评论者自己的全球阿凡达，用回形针别在右上角。下面欢迎来自天鹅海的组合大城小爱里的，<a href="http://ell.im/" target="_blank" title="这正在夭折的" class="external">小爱同学</a> 做群众演员：<span id="more-1673"></span></p>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/comment-form.png" alt="新的评论输入框设计" /></p>
<p>js 隐藏代码参考了 <a href="http://www.neoease.com/wordpress-guest-post/" target="_blank" title="提高 WordPress 访客评论时的用户体验" class="external">享总的文章</a>，另外多了个享总没有提到的细节，展开和收起按钮按下之后会把焦点放到相应的输入框内，也就是多执行一个 .focus(); 以下是“更改”按钮 onclick 时执行的 jQuery 脚本：</p>
<p><code class="js">$('#author_info').slideDown('fast');<br />
<strong>$('#author').focus();</strong><br />
$('#show_author_info').hide();<br />
$('#hide_author_info').show();</code></p>
<p>如果访客 cookies 中有曾经评论过的 email 信息，则预先显示头像。在 comments.php 中合适的地方先判断是否存在 email, 如果有则输出一个头像。</p>
<p><code class="php">&lt;?php if ( $comment_author_email ) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;echo '&lt;a href="..."&gt;' . get_avatar(<br />
&nbsp;&nbsp;&nbsp;&nbsp;$comment_author_email, 40 ) . '&lt;/a&gt;';<br />
} ?&gt;</code></p>
<p>为了看上去生动些，头像被旋转了 10 度，这是用 CSS 实现的，参考我那篇关于 <a href="http://fis.io/css-3-hover-animations.html" title="学习笔记: CSS3 鼠标悬停动画">CSS3 动画的文章</a>。这有一些浏览器的局限性，比如 Chrome Windows 一直有个 bug, 在图像被旋转后，边缘不能反锯齿；Firefox 则一直不能对无 padding 的图像进行圆角，除非图像处在背景中。于是我把 Firefox 下链接的 border 圆角也一并拿掉了。</p>
<h4 style="margin-top: 40px; ">动态的输入框浮动</h4>
<p><a href="http://gluedideas.com/" target="_blank" title="Subtle for WordPress" class="external">GluedIdeas Subtle</a> 主题原来是有输入框浮动的，但使用的是 position: fixed; 现在改成 jQuery 来做，在页面滚动的时候浮动是动态的了，顺便还兼容了 IE. 代码来自 <a href="http://css-tricks.com/scrollfollow-sidebar/" target="_blank" title="Scroll/Follow Sidebar, Multiple Techniques | CSS-Tricks" class="external">CSS-Tricks</a>.</p>
<h4 style="margin-top: 40px; ">可展开的表情按钮栏</h4>
<p align="center" style="margin: 20px 0; "><img src="http://fis.io/wp-content/uploads/2010/02/smilies-toolbar.png" alt="表情按钮栏" /></p>
<p>表情按钮收起来了，放在大输入框内，点击则展开。同样是由 jQuery 来执行的，按钮按下的时候做三件事情：焦点放到大输入框里去；用 jQuery .toggle() 脚本来展开或收起表情按钮；按钮本身切换一个 class, 在笑脸和关闭叉叉之间切换。</p>
<p><code class="js">$('#comment').focus();<br />
$('#smilies_toolbar').toggle('fast');<br />
$('#toggle-smilies').toggleClass('close');</code></p>
<h4 style="margin-top: 40px; ">新的评论回复样式</h4>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/comment-reply.png" alt="回复评论" /></p>
<p>回复别人的评论时出现一个黄色的提示条，类似于博客界出名的 <a href="http://www.kenengba.com/" target="_blank" title="可能吧" class="external">绿条禅</a>，同时有个小箭头指向被回复的评论。</p>
<p>评论回复是基于枫叶的插件 <a href="http://blog.2i2j.com/plugins/wordpress-thread-comment" target="_blank" title="Wordpress Thread Comment / 偶爱偶家" class="external">WordPress Thread Comment</a>, 经过了枫叶和我的一些修改，目前这样已经完全符合我的需要了。喜欢这个插件的朋友不妨去插件页进行捐助，支持开发。</p>
<h4 style="margin-top: 40px; ">评论列表</h4>
<p>左侧评论列表也有一些小的变化，比如回复会比较小一些，编号字体换成了 <span style="font-family: Georgia, serif; font-style: italic; ">Georgia</span>, 以前我没有放上每条评论的链接，现在也放在了编号上，只不过颜色还是灰色的。</p>
<h4 style="margin-top: 40px; ">最后</h4>
<p>如果出现显示问题可能需要刷新一下，避免使用浏览器缓存，最近的改动挺多的。另外如果您发现滚动很卡，可以回复我说一下浏览器和电脑配置 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
<h4 class="round5px" style="margin-top: 40px; padding: 5px; background-color: #fea; text-align: center; ">更新</h4>
<p>本文发布 3 小时，评论数达到 98 条，当然主要是几个朋友在疯狂灌水啦，除了我自己之外差不多就是：<a target='_blank' class='external' href='http://ELl.im'>ELL</a> <a target='_blank' class='external' href='https://jimmyxu.com/'>Jimmy Xu</a> <a target='_blank' class='external' href='http://terryxxy.com'>Sunny</a> <a class='external' target='_blank' href='http://lisker.im'>lisker</a>, 大家都在盖楼──往地下室盖。</p>
<p>WordPress Thread Comment 这个插件是限制回复层数的，但仅仅是在超过层数的时候不输出回复按钮，而数据发往服务器并不验证。之前在 @terryxxy （上面的 Sunny）博客上我就在说，改动很简单，只需要 Firebug, 或者 Safari, Chrome 上类似的自带调试工具。找到评论输入框下面用来发送相关数据的两个 &lt;input type="hidden"&gt;:</p>
<p><code>&lt;p&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" id="comment_reply_ID"<br />
&nbsp;&nbsp;&nbsp;&nbsp;name="comment_reply_ID" value="0" /&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;input type="hidden" id="comment_reply_dp"<br />
&nbsp;&nbsp;&nbsp;&nbsp;name="comment_reply_dp" value="0" /&gt;<br />
&lt;/p&gt;</code></p>
<p>在 value 里填入想要回复的评论 ID 和深度 dp 就可以了。这也是按了回复按钮之后会通过 javascript 修改的两个数值。这样就可以无限回复下去了。你猜最后回复到了地下多少层？B31! 以前我只在回复前标一个 "Re", 今天为了大家盖楼方便，把地下楼层编号 B2 B3 也输出了 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </p>
<p>然后新的问题出现了，每层回复都会在左边缩进，比如 margin-left: 20px; 算算地下 31 层得多少，早就撑破了。锲而不舍的 <a target='_blank' class='external' href='https://jimmyxu.com/'>Jimmy Xu</a> 同学不光一直往下破，而且还在截图 <img src='/b.gif' alt=':o' class='wp-smiley sm-surprised' /> </p>
<p>于是呢，我在插件设置页加入了一点判断，当楼层数 $deep > 14 的时候多输出一个 class="min-width", 然后让它 margin-left: 0; 效果是在地下 14 层之后不再缩进。但 Jimmy 同学 <a href="#comment-10653">觉得不满意</a>，最后我的方案：</p>
<p><code class="php">&lt;?php echo ' style="margin-left: ' . ceil(30/sqrt($deep)) . 'px; "'; ?&gt;</code></p>
<p>进行了 margin-left = 30除以(楼层数开平方)再取整，第一层回复 30px, 第四层 15px, 到第 25 层，margin-left 就只有 6px 了。于是呢，从线性变为弧线，看看最后的效果：</p>
<p align="center"><img src="http://fis.io/wp-content/uploads/2010/02/deep.png" alt="" /></p>
<p>另外下面是 @terryxxy 在 70 条评论的时候的截图，点击查看完整全图 <a href="http://img.ly/z8O" target="_blank" class="external">http://img.ly/z8O</a></p>
<p align="center"><a href="http://img.ly/z8O" target="blank"><img src="http://img.ly/show/medium/z8O" class="piclink" width="320" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/comment-new-experience.html/feed</wfw:commentRss>
		<slash:comments>217</slash:comments>
		</item>
		<item>
		<title>WordPress 插件 img.ly gallery</title>
		<link>http://fis.io/imgly-gallery.html</link>
		<comments>http://fis.io/imgly-gallery.html#comments</comments>
		<pubDate>Mon, 15 Feb 2010 11:47:16 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=1632</guid>
		<description><![CDATA[plugin page hosted on wordpress.org 这是我的第一个发布到官网的插件，用来显示最新上传到 img.ly 的图片。可以简单地在 widgets 里面添加启用它，或者自行插... ]]></description>
			<content:encoded><![CDATA[<ul>
<li class="cat-item-165"><a href="http://wordpress.org/extend/plugins/imgly-gallery/" title="WordPress › img.ly gallery « WordPress Plugins" class="external" target="_blank">plugin page hosted on wordpress.org</a></li>
</ul>
<p>这是我的第一个发布到官网的插件，用来显示最新上传到 img.ly 的图片。可以简单地在 widgets 里面添加启用它，或者自行插入 php 代码。基于 pepijnkoning 的插件 <a href="http://wordpress.org/extend/plugins/my-twitpics/" title="WordPress › My Twitpics « WordPress Plugins" class="external" target="_blank">My Twitpics</a>.</p>
<p>widget 可选择的参数包括 widget 标题、Twitter ID（必须）、图片尺寸等，注意输出的预览图原始尺寸为 75x75, 所以最好不要将 "Picture Size" 设置超过 75. "Border color" 则可以填入 html 允许的颜色名称或者 #D3D3D3.<span id="more-1632"></span></p>
<p align="center"><img src="http://s.wordpress.org/extend/plugins/imgly-gallery/screenshot-1.png" alt="img.ly gallery widget" width="387" height="463" /></p>
<p>如果需要进一步样式化，可以使用已置入的 class:</p>
<p><code class="css">p.widget_imgly_p {...}<br />
img.imgly {...}</code></p>
<p>不使用 widget 的时候，需要插入的代码是：</p>
<p><code class="php">&lt;?php imgly_pics($username = fisio, $num = 5); ?&gt;</code></p>
<p>输出的内容仅为图片，不包含标题和 p, 样式化同样可以针对 img.imgly</p>
<p>效果可参照我的 <a href="http://fis.io/photos" title="照片">照片页面</a> 右侧。</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/imgly-gallery.html/feed</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>Thread Twitter: 在 WordPress 里展示 Twitter 会话</title>
		<link>http://fis.io/thread-twitter-plugin.html</link>
		<comments>http://fis.io/thread-twitter-plugin.html#comments</comments>
		<pubDate>Sun, 01 Mar 2009 08:17:05 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=961</guid>
		<description><![CDATA[请原谅我又火星了，Denis 介绍这个插件 的时候，我还以为这是个 Greasemonkey 脚本之类的，没有领会到它的实际作用：那就是将自己在 Twitter 上的所有会... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/fisio" target="_blank"><img src="http://fis.io/wp-content/uploads/2009/03/follow-me.png" style="float: left; margin: 7px 10px 0 0" title="Follow me on Twitter" alt="Follow me on Twitter" class="piclink" border="0" /></a>请原谅我又火星了，<a href="http://fairyfish.net/2009/01/16/thread-twitter/" target="_blank" class="external" title="Thread Twitter: 会话方式显示你的 Twitter | 我爱水煮鱼">Denis 介绍这个插件</a> 的时候，我还以为这是个 Greasemonkey 脚本之类的，没有领会到它的实际作用：那就是将自己在 Twitter 上的所有会话输出到 WordPress 博客中，是回复的话会追溯父条目，而且会通过 Twitter Search 查找含有 @自己 的条目，即使它不是一个明确的回复。访问者在查看输出页面的时候，可以直接点击右侧的回复链接转到 Twitter 加入讨论。更多细节请查阅上面的链接。</p>
<p>这样我也有了一个 <a href="http://fis.io/twitter" title="Twitter">Twitter 页面</a>，怎么样，是不是也给自己的 blog 整一个？另，感谢 <a href="http://www.happinesz.cn/" target="_blank" class="external" title="幸福收藏夹 - 在这里,存IT的理性,掺夹文学的浪漫…">sofish</a> 提供 CSS 帮助！</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/thread-twitter-plugin.html/feed</wfw:commentRss>
		<slash:comments>78</slash:comments>
		</item>
		<item>
		<title>WordPress 后台添加 Technorati widget</title>
		<link>http://fis.io/wordpress-admin-technorati-widget.html</link>
		<comments>http://fis.io/wordpress-admin-technorati-widget.html#comments</comments>
		<pubDate>Sat, 20 Dec 2008 15:20:49 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=750</guid>
		<description><![CDATA[Technorati 这个著名的 blog 搜索引擎现在又出墙去了。主机在国外的 WordPress, 用下面的办法，在后台控制面板添加一个 Technorati 反向链接 widget: 将 WordPress ... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://zh.wikipedia.org/wiki/Technorati" target="_blank" class="external" title="Technorati - 维基百科，自由的百科全书">Technorati</a> 这个著名的 blog 搜索引擎现在又出墙去了。主机在国外的 WordPress, 用下面的办法，在后台控制面板添加一个 Technorati 反向链接 widget: 将 WordPress Development Blog 或 Other WordPress News 修改为：</p>
<p><code>http://feeds.technorati.com/search/fisio.cn</code></p>
<p>下图中上方是默认的 Google Blog Search, 下方是刚添加的 Technorati widget. 当然，改成别的 feeds 也可以。但是好像不能新建更多，需要更多的话可以修改 /wp-admin/index.php, 或者捣鼓个 <a href="http://fis.io/tag/greasemonkey" title="标签: Greasemonkey">Greasemonkey</a> 脚本 <img src='/b.gif' alt=':eek:' class='wp-smiley sm-eek' />  <span id="more-750"></span></p>
<p><img src="http://fis.io/wp-content/uploads/2008/12/technorati-widget.png" alt="Technorati widget" title="Technorati widget" border="0" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wordpress-admin-technorati-widget.html/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>老肥博客的前世今生</title>
		<link>http://fis.io/fisio-blog-story.html</link>
		<comments>http://fis.io/fisio-blog-story.html#comments</comments>
		<pubDate>Fri, 14 Nov 2008 20:50:39 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=704</guid>
		<description><![CDATA[本文是一篇以这个博客为描述对象的征文，由于我平时写东西很少涉及自身，所以本文意义重大，堪比讴歌我☭之《走进新时代》。下面细说这个叫老... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2008/11/soup.png" style="float: right; margin-left: 10px" border="0" />本文是一篇以这个博客为描述对象的征文，由于我平时写东西很少涉及自身，所以本文意义重大，堪比讴歌我☭之《走进新时代》。下面细说这个叫老肥的家伙是如何唱着东方红，当家做主博起来，肥起来的。</p>
<h4>解放前</h4>
<p>最早的博客行为出现在04年歪酷，大四，最初是因为喜欢的女生在那里-_- 前后大概贴了十来篇乱七八糟的东西，收获是发现 html 挺好玩的，竟然可以在网页上嵌入 flash, 二是发现了 <a href="http://fis.io/tag/firefox" title="标签: Firefox">Firefox</a>, 第一次装了嫌难用又卸了，一个月后重新装上，研究扩展，深陷至今。<span id="more-704"></span></p>
<p><img src="http://fis.io/wp-content/uploads/2008/11/soup-2.png" style="float: right; margin-left: 10px" border="0" />远离博客两年之后06年开始用 Live Spaces, 转为研究介绍日历、文档等 <a href="http://fis.io/tag/google" title="标签: Google">Google</a> 服务，视 <a href="http://www.kenwong.cn/" target="_blank" class="external" title="幻灭的个人站 UnIndexed">幻灭</a> 为偶像，但对 GSeeker 的博客系统非常不满，侧栏满是没人会点的广告，评论体验也非常差。其实 Live Spaces 也是个差劲的系统，浏览器资源占用大，文章链接死长，编辑文章的时候丢失格式，连 ed2k 链接都不认识。想换到 Blogger 绑定域名，但发现接入 IP 也在墙外。于是在 Blogger 发了一篇文章之后就放弃了，独立呼声渐强，人民需要自由 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </p>
<h4>独立日</h4>
<p><img src="http://fis.io/wp-content/uploads/2008/11/soup-4.png" style="float: right; margin-left: 10px" border="0" />07年整个劳动节宅在家，完成了独立壮举。通过搜索“独立域名”相关信息找到了 <a href="http://yo2.cn/" target="_blank" class="external" title="优博网">yo2</a>, 这是我第一次知道 <a href="http://fis.io/tag/wordpress" title="标签: WordPress">WordPress</a>, 一用它就知道这正是我一直在寻找的东西。我肯定需要一个独立域名，于是迅速以一块钱的价格买到了 fisio.cn, 在尝试搬家工具失败之后，我竟然凭着极大的热情和对新系统的憧憬，手动将几十篇老文章搬了过来-_- 再研究系统、模板、<a href="http://fis.io/tag/plugins" title="标签: 插件">插件</a>，七天假期就过了，留下一堆便当饭盒。虽然 yo2 没有开放插件上传，但是已有插件已经足够我用了，什么都新奇，这些是以前的 BSP 完全没法提供的。<strong>WordPress 很像 Firefox, 开放，可扩充，一切都在我掌握中，只有想不到，没有做不到。</strong></p>
<p><img src="http://fis.io/wp-content/uploads/2008/11/soup-5.png" style="float: right; margin-left: 10px" border="0" />那时候我还贴一些 <a href="http://fis.io/category/billiards" title="分类: 台球 撞球">台球视频</a>，一些 <a href="http://fis.io/category/design" title="分类: 手机 创意">平面设计</a>，但很快就把重心转到了 Google, Firefox, Mobile. 这些话题是我最感兴趣，乐意分享给所有人的，当然也会聊 WordPress, PHP, CSS, 这些构成了我现在的主要内容。</p>
<p>yo2 的服务虽好，但人是永不满足的，随着更多的个性化需要，我开始考虑彻底独立了，不过一直没有实施，直到 yo2 开始过滤关键字。天朝生存手册第一条，要活命先自宫。虽然我没啥敏感内容，但有首歌叫把根留住来着，爷受不了文章里出现航空文明用语舰。</p>
<h4>新时代</h4>
<p><img src="http://fis.io/wp-content/uploads/2008/11/soup-6.png" style="float: right; margin-left: 10px" border="0" />今年五月搬到 hostmonster, 对访问者而言并没有什么变化，虽然 .cn 不怎么样，目前也没有计划像 <a href="http://ooxx.me/blog.orz" target="_blank" class="external" title="OOXX.ME PLZ">大猫</a> 一样换个风骚的域名。也没有计划放广告，写博客只为兴趣，交朋友，难得自己有一直更新下去的动力，就好好写吧（其实是对广告收入没信心……）</p>
<p>WordPress 对我来讲已经非常完美了，和 Firefox 一样，长期的使用和拓展已经让我离不开它。去 <a href="http://fis.io/wordcamp-china-2008.html" title="WordCamp China 2008 摘趣">WordCamp</a> 让我对它更了解，着迷。同时，做一个互联网内容创造者，坚持原创，也是一件很自豪的事情。</p>
<p>本文应 <a href="http://fairyfish.net/" target="_blank" class="external" title="我爱水煮鱼">水煮鱼</a> 邀请而写，会收入 <a href="http://fairyfish.net/tag/talk/" target="_blank" class="external" title="博客对话 - 我爱水煮鱼">博客对话</a> 专题 <img src='/b.gif' alt=':eek:' class='wp-smiley sm-eek' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/fisio-blog-story.html/feed</wfw:commentRss>
		<slash:comments>53</slash:comments>
		</item>
		<item>
		<title>Matt 拍下的我的 T-shirt</title>
		<link>http://fis.io/wordpress-tshirt-photoed-by-matt.html</link>
		<comments>http://fis.io/wordpress-tshirt-photoed-by-matt.html#comments</comments>
		<pubDate>Sat, 25 Oct 2008 17:46:52 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://fis.io/?p=653</guid>
		<description><![CDATA[WordCamp 上海会场 Matt Mullenweg 拍的我的 T-shirt, 原文相册，大图... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/wordcamp-china-2008.html" title="WordCamp China 2008 摘趣">WordCamp</a> 上海会场 Matt Mullenweg 拍的我的 T-shirt, <a href="http://ma.tt/2008/09/shanghai-wordcamp/" target="_blank" class="external" title="Shanghai WordCamp - Matt Mullenweg">原文相册</a>，<a href="http://s.ma.tt/files/2008/10/mcm_0443.jpg" title="Nikon D3, 4256x2832 像素">大图</a>。</p>
<p><a href="http://ma.tt/2008/09/shanghai-wordcamp/" target="_blank" title="Shanghai WordCamp - Matt Mullenweg"><img src="http://fis.io/wp-content/uploads/2008/10/wordpress-tshirt.jpg" alt="WordPress T-shirt" border="0" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wordpress-tshirt-photoed-by-matt.html/feed</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>WordCamp China 2008 摘趣</title>
		<link>http://fis.io/wordcamp-china-2008.html</link>
		<comments>http://fis.io/wordcamp-china-2008.html#comments</comments>
		<pubDate>Sun, 21 Sep 2008 16:38:20 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=619</guid>
		<description><![CDATA[朋友们，我就是那个猜中爱枣报，穿 WordPress 登录框 T恤 的家伙，我上台的时候竟然忘了给自己做广告，现在补上！正文开始：从 WordCamp 回来了。不如... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://fis.io/wordcamp-china-2008.html"><img src="http://fis.io/wp-content/uploads/2008/09/wordcamp.jpg" style="float: right; margin-left: 10px;" title="WordCamp China 2008 摘趣"  alt="WordCamp China 2008 摘趣" border="0"></a>朋友们，我就是那个猜中爱枣报，穿 <a href="http://fis.io/ubuntu-wordpress-t-shirts.html" title="Ubuntu, WordPress T恤到手">WordPress 登录框 T恤</a> 的家伙，我上台的时候竟然忘了给自己做广告，现在补上！正文开始：从 <a href="http://china.wordcamp.org/" target="_blank" class="external" title="WordCamp China 2008">WordCamp</a> 回来了。不如想象中热闹，但总的来说还不错，第一次在上海举办就有相当的规模，期待 2009, 2010, ...</p>
<ul>
<li>Matt 讲到 WordPress 的成长、规模、社会化，还有 <a href="http://wordpress.org/" target="_blank" class="external" title="WordPress &#8250; Blog Tool and Publishing Platform">WordPress</a> 2.7 的 demo 演示：后台模块拖动，评论 API, 快捷键，插件一键安装，主题升级，OAuth, 原生 <a href="http://fis.io/wordpress-thread-comment-plugin.html" title="新增评论回复模式">评论回复</a>，后台回复，批量操作…… 还有，我们十一月就可以用到它！</li>
<li>Matt 很欣赏我的 T恤，还给拍了特写，希望他给我大大地贴出来… <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' /> </li>
<li>海林履历很牛很硅谷，中英夹杂有点 funny: "下面我们 take 五分钟的 break..."<span id="more-619"></span></li>
<li>白鸦很逗，“在我的描述中抢答这是哪个博客” 这个游戏很好玩：<br />
白鸦：“第一句描述：这是一位<del datetime="2008-09-21T16:55:22+00:00">老牌</del>资深美女…”<br />
<a href="http://www.hi-mark.cn/" target="_blank" class="external" title="Hi Mark">Mark</a>: “徐静蕾！！！”<br />
全场大汗……白鸦呱呱呱……</li>
<li>hongxiaowan 介绍了他的 Zuosa, 但我还是追问了关于 GSeeker 未来走向的问题，哈哈</li>
<li><a href="http://www.charlestang.cn/" target="_blank" class="external" title="Becomin' Charles">查尔斯·唐</a> 和 hongxiaowan 都觉得，老肥这个名字太混淆视听，然后我和查尔斯一致认为论肥 hongxiaowan 技压全场，鉴定完毕</li>
<li>更多细节请看 <a href="https://picasaweb.google.com/sun.fisio/WordCampChina2008" target="_blank" class="external" title="Picasa 网络相册 - WordCamp China 2008">相册</a>，配有文字说明 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> </li>
</ul>
<p><embed type="application/x-shockwave-flash" src="https://picasaweb.google.com/s/c/bin/slideshow.swf" width="440" height="360" flashvars="host=picasaweb.google.com&amp;captions=1&amp;RGB=0xf3f3eb&amp;feed=https%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fsun.fisio%2Falbumid%2F5248490918893556289%3Fkind%3Dphoto%26alt%3Drss" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wordcamp-china-2008.html/feed</wfw:commentRss>
		<slash:comments>76</slash:comments>
		</item>
		<item>
		<title>和博客有关的几件事</title>
		<link>http://fis.io/things-about-blogging.html</link>
		<comments>http://fis.io/things-about-blogging.html#comments</comments>
		<pubDate>Wed, 10 Sep 2008 16:56:01 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://fis.io/?p=583</guid>
		<description><![CDATA[WordPress 爱好者论坛 隆重推荐 WordPress 爱好者论坛，此论坛由中文博客界多位知名大牛建立，如果需要寻求 WordPress 方面的帮助指导，那么这是一个非常... ]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<h4><a href="http://wfans.org/" target="_blank" title="WordPress 爱好者论坛"><img src="http://fis.io/wp-content/uploads/2008/09/wfans-logo.png" style="float: right; margin: 5px 0 0 5px" border="0" title="WordPress 爱好者论坛" alt="WordPress 爱好者论坛" /></a>WordPress 爱好者论坛</h4>
<p>隆重推荐 <a href="http://wfans.org/" target="_blank" class="external" title="WordPress 爱好者论坛">WordPress 爱好者论坛</a>，此论坛由中文博客界多位知名大牛建立，如果需要寻求 WordPress 方面的帮助指导，那么这是一个非常合适的去处，我们不光需要博客和阅读器，有时候我们还需要论坛这种更轻松、更多交流、更加形象化的环境 <img src='/b.gif' alt=':)' class='wp-smiley sm-smile' /> </li>
<li>
<h4><a href="http://china.wordcamp.org/" target="_blank" title="WordCamp China 2008"><img src="http://fis.io/wp-content/uploads/2008/09/wordcamp.jpg" style="float: right; margin-left: 10px" border="0" title="WordCamp China 2008" alt="WordCamp China 2008" /></a>WordCamp China 2008</h4>
<p>WordCamp 是 WordPress 爱好者及开发人员的大会，去年在北京成功举办过一届，今年将于本月 20 日在北京，21 日在上海举行，届时将有 WordPress 创始人之一 <a href="http://ma.tt/" target="_blank" class="external" title="Matt Mullenweg &#8212; aka Photo Matt &#8212; on WordPress, Web, Jazz, Life, and Photography">Matt Mullenweg</a> 以及更多圈内著名人士的演讲、交流互动，详情和报名方式请查阅 <a href="http://china.wordcamp.org/schedule/" target="_blank" class="external" title="WordCamp China  &raquo; 日程安排">官方网站</a>。我会穿着我的 <a href="http://fis.io/ubuntu-wordpress-t-shirts.html" title="Ubuntu, WordPress T恤到手">WordPress T-shirt</a> 参加上海会场 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' /> <span id="more-583"></span></li>
<li>
<h4>本站浏览器访问比例统计持续更新</h4>
<p>前几天分析了一下 <a href="http://fis.io/tag/chrome" title="标签: Chrome">Chrome</a> 发布前后我统计到的 <a href="http://fis.io/web-browsers-market-share.html" title="关于浏览器份额这件事">访问比例情况</a>，当时 Chrome 是一个峰值之后迅速下跌，而最近几天它稳定在了 7%. 未来一段时间内我会持续更新 <a href="http://spreadsheets.google.com/pub?key=pIaEWlVA6sDye6-KcLHB7UQ" target="_blank" class="external" title="查看 Google 文档">这个表格</a>，下图也会自动重新生成：</p>
<p><a href="http://spreadsheets.google.com/pub?key=pIaEWlVA6sDye6-KcLHB7UQ" target="_blank" title="查看 Google 文档"><img src="http://spreadsheets.google.com/pub?key=pIaEWlVA6sDye6-KcLHB7UQ&#038;oid=4&#038;output=image" title="查看 Google 文档" alt="查看 Google 文档" border="0"></a></p>
<p>我还翻阅了一下数据库里面记录的评论者的浏览器使用情况，发现除开我自己，评论者超过 2/3 使用 <a href="http://fis.io/tag/firefox" title="标签: Firefox">Firefox</a>, 这和访问者的比例形成了很大的差别，毕竟评论者大多来自 <a href="http://fis.io/tag/reader" title="标签: 阅读器">RSS 阅读器</a>，而访问者大多来自搜索引擎。评论者里面，博友、熟人也比较多，哈哈 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/things-about-blogging.html/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>显示评论者、友情链接 favicon 的新方法</title>
		<link>http://fis.io/show-favicons-of-commentators-and-links.html</link>
		<comments>http://fis.io/show-favicons-of-commentators-and-links.html#comments</comments>
		<pubDate>Mon, 08 Sep 2008 16:13:41 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[favicon]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=577</guid>
		<description><![CDATA[显示评论者 Gravatar 头像、网站 favicon 是老肥博客一贯的做法，得到过不少朋友的称赞。favicon 的显示调用是我 自己摸索 的，实际运用起来问题比较多... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2008/09/magic.png" style="float: right; margin-left: 10px" title="Wizard" alt="Wizard" border="0" />显示评论者 <a href="http://fis.io/wp-snapavatar-plugin.html" title="增强 Gravatar 的 WorPress 插件: WP-SnapAvatar">Gravatar</a> 头像、网站 <a href="http://fis.io/favicon-design-episode-1.html" title="如何为博客设计一个出色的 favicon （一）">favicon</a> 是老肥博客一贯的做法，得到过不少朋友的称赞。favicon 的显示调用是我 <a href="http://fis.io/show-top-commentators-plugin-modify.html" title="小改 Show Top Commentators, 及求助">自己摸索</a> 的，实际运用起来问题比较多，比如：没有 favicon, favicon.ico 不在根目录，尺寸太大，或者评论者留下的是 www.awflasher.com/blog 这样的带有小尾巴的地址，都会导致显示错误。</p>
<p>前两天 <a href="http://ishawn.net/my-blog-related/show-commentors-favicon-of-wordpress.html" target="_blank" class="external" title="Wordpress 显示评论者的 Favicon | Shawn's Blog">Shawn</a> 提示我 Google 有一个隐藏的 favicon 缓存服务可以完美解决这个问题，果然非常棒，现在分享给大家。这个缓存调用的地址是：</p>
<p><code><a href="http://www.google.com/s2/favicons?domain=fis.io">http://www.google.com/s2/favicons?domain=fis.io</a></code></p>
<p>简单吧？这个查询得到的是一个 png 图像，如果没有对应的 favicon, 则缺省是一个地球图标。WordPress 插件 <a href="http://wordpress.org/extend/plugins/favicon-images-for-comments/" target="_blank" class="external" title="下载插件">Favicon Images for Comments</a> 是最简单的用法，不过样式反正要自己改，喜欢动手的朋友、非 WordPress 的朋友请看下面的教程。<span id="more-577"></span></p>
<p>这个查询要求不能带有 http, 而域名后面无论跟什么都无所谓。所以首先要把评论者网址前的 http 过滤掉，例如 <a href="http://yanfeng.org/blog/wordpress/kit" target="_blank" class="external" title="桑林志  &raquo; 中文 WordPress 工具箱">中文 WordPress 工具箱</a>，在显示最新评论的循环语句 foreach ($comments as $comment) 下面添加一个 $domain 定义：</p>
<p><code class="php">$domain = preg_replace('/^http:///', '', $comment->comment_author_url);</code></p>
<p>得到的 $domain 就没有前面的 http 了。然后把它用到输出去：</p>
<p><code class="php">$output .= $before . <font color="gray">'&lt;img src="http://www.google.com/s2/favicons?domain='</font> . $domain . <font color="gray">'" class="favicon" /&gt;&lt;a href="'</font> . $permalink . <font color="gray">'" title="'</font> . $comment_excerpt . <font color="gray">'"&gt;'</font> . $comment_author . <font color="gray">'&lt;/a&gt; '</font> . $comment_excerpt . $after;</code></p>
<p>这是我的例子，提供一个参考。我发现这样写还是很难看懂……呵呵，就当个参考吧。我把我的侧栏最新评论、本周嘉宾、友情链接都改成了这个显示方式，欢迎参观 <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' /> </p>
<p>最后，希望有博客的朋友都检查一下自己的根目录下是否有 favicon.ico 这个文件，<a href="http://yo2.cn/" target="_blank" class="external" title="优博网">yo2</a> 用户好像也可以通过一个专用插件来上传它。这样您的博客可以在这里得到丰富的展示，happy blogging!</p>
<blockquote><p>据博友 <a href="http://bingu.net/" target="_blank" class="external" title="冰古blog">冰古</a> 的测试，Google 的 favicon 缓存服务并不是直接获取根目录下的 favicon.ico, 而是需要 html header 里面含有：</p>
<p>&lt;link rel="shortcut icon" type="image/x-icon" href="http://fis.io/favicon.ico" /&gt;</p>
<p>如果图标不对，一定要检查一下这里。谢谢冰古！</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/show-favicons-of-commentators-and-links.html/feed</wfw:commentRss>
		<slash:comments>75</slash:comments>
		</item>
		<item>
		<title>新增评论回复模式</title>
		<link>http://fis.io/wordpress-thread-comment-plugin.html</link>
		<comments>http://fis.io/wordpress-thread-comment-plugin.html#comments</comments>
		<pubDate>Wed, 16 Jul 2008 18:34:15 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[扩展]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=510</guid>
		<description><![CDATA[一周没更新了，因为宽带出了点问题，电信的效率真是低啊。这一周发生了很多事情，GSeeker 回来了, iPhone 3G 被抢着肢解，中国水果摊完工了，还有大... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2008/07/cinema4d.png" style="float: right; margin-left: 5px" title="">一周没更新了，因为宽带出了点问题，电信的效率真是低啊。这一周发生了很多事情，<a href="http://www.gseeker.com/50226711/hey_gseekerae_153434.php" target="_blank" class="external" title="Hey! GSeeker恢复更新了">GSeeker 回来了</a>, <a href="http://jandan.net/2008/07/14/will-it-blend-iphone3g.html" target="_blank" class="external" title="搅拌iPhone 3G">iPhone 3G 被抢着肢解</a>，<a href="http://apple4.us/2008/07/post-120.html" target="_blank" class="external" title="三里屯苹果专卖店已完工">中国水果摊完工了</a>，还有大家都在说的 <a href="http://www.awflasher.com/blog/archives/1381" target="_blank" class="external" title="警惕GMail钓鱼邮件！">钓鱼事件</a>。老肥博客也有新鲜事发生呢：</p>
<ul>
<li>增加插件 <a href="http://blog.2i2j.com/plugins/wordpress-thread-comment" target="_blank" class="external" title="让 WordPress 拥有回复评论功能的强大插件">WordPress Thread Comment</a>, 这样您可以针对某个评论进行回复，相信大家已经比较熟悉它了。期间荣幸地得到了插件作者 <a href="http://blog.2i2j.com/" target="_blank" class="external" title="偶爱偶家">枫叶</a> 的大力帮助，不然我还真不知道怎么在使用它的同时仍保持输入框浮动在右侧的特色，呵呵。有请各位多帮我测试一下，有问题麻烦反馈给我，好继续修改，先谢了。</li>
<li>升级到 WordPress 2.6, 发现评论者头像 Gravatar 可以在后台直接指定缺省头像了，<span id="more-510"></span>可以省事地选择空白头像，后面三组可以对没有 <a href="http://www.gravatar.com/" target="_blank" class="external" title="现在就注册一个可以在很多博客上自动显示的头像！">注册头像</a> 的用户赋予随机头像，都挺有意思的，我选了最后一组，并且停用了 <a href="http://fis.io/wp-snapavatar-plugin.html" title="增强 Gravatar 的 WorPress 插件: WP-SnapAvatar">WP-SnapAvatar</a>.
<p><img src="http://fis.io/wp-content/uploads/2008/07/gravatar.png" style="margin:10px"></p>
</li>
<li>升级 Firefox 到 <a href="http://www.mozillaonline.com/" target="_blank" class="external" title="下载 Firefox 3">3.0.1</a>, 我重度依赖的标签扩展 Tab Mix Plus 修改版也罢工了，好在可以修改它里面的 install.rdf 解决问题。如果您嫌麻烦，我已经把它改好了放在 <a href="http://5rphea.bay.livefilestore.com/y1pyW1HoO8oWxAot0SrwGXYgX7bkdjdEe6zc_sUWyxwyH2UIRUfkdfP_rAIXU1ay-xuPp85GZQqehwnjNtOJBCWdw/tab_mix_plus-dev-build.xpi" class="download" title="下载到本地安装">这里</a>。</li>
<li>怪不得有调查报告称 Firefox 用户是最能保持更新的浏览器用户，3.0 刚发布一个月，老肥博客的访问统计显示 Firefox 3 用户已经占到了 Firefox 用户总数的 3/4:
<p><img src="http://fis.io/wp-content/uploads/2008/07/firefox-visitors.png" title="最近一个月 Firefox 访问构成"></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wordpress-thread-comment-plugin.html/feed</wfw:commentRss>
		<slash:comments>41</slash:comments>
		</item>
		<item>
		<title>又一个来自水煮鱼的插件 AideRSS</title>
		<link>http://fis.io/aiderss-wordpress-plugin.html</link>
		<comments>http://fis.io/aiderss-wordpress-plugin.html#comments</comments>
		<pubDate>Mon, 30 Jun 2008 13:05:16 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=505</guid>
		<description><![CDATA[AideRSS 提供一个博客文章的评分系统，把那些评论多次、美味收藏多次、Google 博客搜索链接多次，还有 digg 多次的文章评出一个 PostRank, 方便读者选读... ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.aiderss.com/all/fisio.cn" target="_blank"><img src="http://fis.io/wp-content/uploads/2007/09/aiderss-logo.gif" alt="aideRSS" title="aideRSS" style="float: left; margin-right: 8px;" border="0"></a><a href="http://www.aiderss.com/all/fisio.cn" target="_blank" class="external">AideRSS</a> 提供一个博客文章的评分系统，把那些评论多次、美味收藏多次、Google 博客搜索链接多次，还有 digg 多次的文章评出一个 PostRank, 方便读者选读这些精华文章。它比单纯按照评论数列出的热门文章更客观，而且综合了多种因素。以前我介绍过 <a href="http://fis.io/aiderss-sidebar-widget.html" title="AideRSS: 基于外部链接的 blog 热门文章区块">AideRSS javascript widget</a>, 但这个插件可以输出评分详情的链接。前两天和 <a href="http://fairyfish.net/" target="_blank" class="external" title="我爱水煮鱼">Denis</a> 聊到他这个 <a href="http://fairyfish.net/2008/05/26/aiderss-wordpress-plugin/" target="_blank" class="external" title="AideRSS WordPress Plugin - 我爱水煮鱼">小插件</a> 的时候，看了看我最近的热门文章，<a href="http://fis.io/google-reader-full-feed-changer.html" title="RSS feed 不输出全文？一样搞定你">有一篇</a> 竟然被美味了 <a href="http://del.icio.us/url/0c0eb2ee378726cc56a75427c996d46a" target="_blank" class="external" title="del.icio.us 链接">24 次</a> <img src='/b.gif' alt=':o' class='wp-smiley sm-surprised' />  虽然没多少但还是决定显摆一下，这个插件的显示效果在 <a href="http://fis.io/archive">存档页</a>，下面摘录了前三条，静态显示：<span id="more-505"></span></p>
<table cellpadding="0" cellspacing="3" height="100">
<tr>
<td><span title="Post Rank">Rank</span></td>
<td width="250">&nbsp;标题</td>
<td></td>
<td></td>
<td></td>
</tr>
<tbody>
<tr align="center" height="20">
<td bgcolor="#ff7128" style="padding: 0 3px 0 3px; text-align: center">10<!-- 10--></td>
<td align="left"><a href="http://fis.io/google-reader-full-feed-changer.html" title="RSS feed 不输出全文？一样搞定你">RSS feed 不输出全文？一样搞定你</a></td>
<td bgcolor="#f3f3ec"><a href="http://fis.io/google-reader-full-feed-changer.html#comments" title="非实时评论数">35</a></td>
<td bgcolor="#f3f3ec"><a href="http://del.icio.us/url/0c0eb2ee378726cc56a75427c996d46a" target="_blank" title="美味收藏次数">19</a></td>
<td bgcolor="#f3f3ec"><a href="http://blogsearch.google.com/blogsearch?q=link:http://fis.io/google-reader-full-feed-changer.html" target="_blank" title="Google 博客搜索链接数">9</a></td>
</tr>
<tr align="center" height="20">
<td bgcolor="#ff7128" style="padding: 0 3px 0 3px; text-align: center">10<!-- 10--></td>
<td align="left"><a href="http://fis.io/sogou-pinyin.html" title="搜狗，你忘了当初的承诺？">搜狗，你忘了当初的承诺？</a></td>
<td bgcolor="#f3f3ec"><a href="http://fis.io/sogou-pinyin.html#comments" title="非实时评论数">28</a></td>
<td bgcolor="#f3f3ec"><a href="http://del.icio.us/url/d82fccd28e6263b6f3a58944aadd4ce8" target="_blank" title="美味收藏次数">1</a></td>
<td bgcolor="#f3f3ec"><a href="http://blogsearch.google.com/blogsearch?q=link:http://fis.io/sogou-pinyin.html" target="_blank" title="Google 博客搜索链接数">3</a></td>
</tr>
<tr align="center" height="20">
<td bgcolor="#ffa255" style="padding: 0 3px 0 3px; text-align: center">10<!-- 6--></td>
<td align="left"><a href="http://fis.io/compare-of-text-rendering.html" title="三种常见文字渲染方式比较">三种常见文字渲染方式比较</a></td>
<td bgcolor="#f3f3ec"><a href="http://fis.io/compare-of-text-rendering.html#comments" title="非实时评论数">8</a></td>
<td bgcolor="#f3f3ec"><a href="http://del.icio.us/url/b45f9703b6b5576286055f7a4d272f5e" target="_blank" title="美味收藏次数">3</a></td>
<td bgcolor="#f3f3ec"><a href="http://blogsearch.google.com/blogsearch?q=link:http://fis.io/compare-of-text-rendering.html" target="_blank" title="Google 博客搜索链接数">1</a></td>
</tr>
</table>
<p>　<br />
启用插件之后用 &lt;php aide_get_top_posts('month',10); ?&gt; 调用它，第一个参数是时间范围，可以是 day, week, month, year, auto, 秒数，第二个是显示的文章数。需要在页面执行此 php 语句的话可以用插件 <a href="http://wordpress.org/extend/plugins/exec-php/" target="_blank" class="external">Exec-PHP</a>, 另外 Denis 帮我支了一招不用此插件的办法，那就是建立一个页面模板来实现，其实我以前 <a href="http://fis.io/wordpress-guestbook-without-plugins.html" title="不用插件自制 WordPress 倒序留言簿">提过这个办法</a>，没想到还有这样一个妙用。</p>
<p>另外还有一件事，就不单独发文了，跟在这里声明一下：有人问我，老肥博客上的兔子插画是不是我自己画的？不是我画的，这是一套来自 <a href="http://www.flameia.com/" target="_blank" class="external">Flameia Design</a> 的苹果系统图标 Oh My Rabbit, 很漂亮，不过主页已经关闭很久了，我是从 <a href="http://www.iconarchive.com/category/application/rabbit-xp-icons-by-flameia.html" target="_blank" class="external" title="Rabbit Xp Icons by Flamelia Design - Icon Archive">这里</a> 获得的。既然用了这么多，就加进页脚链接吧，向作者致意 <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/aiderss-wordpress-plugin.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>WordPress 插件：17fav Bookmark &amp; Share</title>
		<link>http://fis.io/wp-plugin-17fav-bookmark-share.html</link>
		<comments>http://fis.io/wp-plugin-17fav-bookmark-share.html#comments</comments>
		<pubDate>Fri, 27 Jun 2008 14:47:53 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=504</guid>
		<description><![CDATA[17fav Bookmark &#038; Share 是一个给每篇文章添加一个收藏分享按钮的 WordPress 插件，开发者是博客圈有名的两位大牛 Denis 和 iStef, 这个插件方便读者将文章... ]]></description>
			<content:encoded><![CDATA[<p><img src="http://fis.io/wp-content/uploads/2008/06/bookmarks.png" style="float: right;" border="0"><a href="http://wordpress.org/extend/plugins/17fav-bookmark-share/" target="_blank" class="external" title="17fav Bookmark &#038; Share &laquo; WordPress Plugins">17fav Bookmark &#038; Share</a> 是一个给每篇文章添加一个收藏分享按钮的 WordPress 插件，开发者是博客圈有名的两位大牛 <a href="http://fairyfish.net/" target="_blank" class="external" title="我爱水煮鱼">Denis</a> 和 <a href="http://blog.istef.info/" target="_blank" class="external" title="花儿开了">iStef</a>, 这个插件方便读者将文章收藏或分享到数十个 web2.0 站点，只需轻轻一点，剩下的标题、网址、标签、备注这些填空题，通通帮您填好。</p>
<p>该插件的一大亮点在于整个提交、填表过程由 <a href="http://17fav.com/" target="_blank" class="external" title="17fav.com 收藏 &#038; 分享">17fav.com</a> 这个专门的服务站点来完成，并且无缝跳转，据 Denis 讲，其实他做了非常多的提交站点接口，17fav 首页列出了二十多个常用的，<span id="more-504"></span>插件里面则默认只有八个最常用的，如果您想自己增减，只需要在插件第 270 行修改，比如 '百度搜藏','baidu', 前者是显示名称，后者是接口名称，要查询接口名称直接到 17fav 首页看看链接，javascript:jsPost('baidu'), 单引号里面就是了。如果那里还没有您想要的，可以 <a href="http://fairyfish.net/2008/06/18/17favcom-wordpress-plugin-20/" target="_blank" class="external" title="17Fav.com WordPress 插件 2.0">问问 Denis</a>.</p>
<p>按钮菜单用 jQuery 构建，这是花儿的强项，呵呵。当然您也可以对它的样式进行一些自定义，比如我就把配色从蓝色改成了老肥博客自己的色调。按钮也改了，改成和鲜果推荐按钮一致，如果您没有发现它……它在下面的胡萝卜下方。</p>
<blockquote><p>插播广告：我的同学，日月光华手机版前版大 Mark 有一批国外带回的手机出售，有兴趣的朋友可以去 <a href="http://www.hi-mark.cn/archives/649532" target="_blank" class="external" title="卖一些手机 | H! Mark">看看</a>。</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wp-plugin-17fav-bookmark-share.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>两句 CSS 完美截断侧栏最新评论列表</title>
		<link>http://fis.io/css-wrap-comment-widget-lists.html</link>
		<comments>http://fis.io/css-wrap-comment-widget-lists.html#comments</comments>
		<pubDate>Tue, 10 Jun 2008 17:18:11 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://fis.io/?p=496</guid>
		<description><![CDATA[常见的侧栏最新评论列表一般有两种格式：路人甲 发表于 某某文章，或者 路人乙：引言…… 它们都有个问题，就是换行很难控制，长短不一，有时候... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin: 10px;" src="http://fis.io/wp-content/uploads/2008/06/painting.png" border="0" alt="" />常见的侧栏最新评论列表一般有两种格式：<span style="text-decoration: underline;">路人甲 发表于 某某文章</span>，或者 <span style="text-decoration: underline;">路人乙：引言……</span> 它们都有个问题，就是换行很难控制，长短不一，有时候内容还会把页面撑破。老肥研究了很久 CSS 手册，找到了一个符合标准的办法，像现在我的侧栏 widget 一样，强制只显示一行，多出来的一刀切断，是不是有点像 Gmail 里面的预览文字？方法很简单，比如我的侧栏 widget 是 &lt;div class="widget"&gt;, 要对它下面的 &lt;li&gt; 进行截断，那么用下面的 CSS 来强制不换行，溢出部分隐藏：</p>
<p><code class="css">.widget li {<br />
&nbsp;&nbsp;white-space: nowrap;<br />
&nbsp;&nbsp;overflow: hidden;<br />
}</code></p>
<p>视其父容器属性的不同，在 IE 下可能无法截断，那么在上面两句后再跟一个 width 定义就可以了。如果不喜欢一个字被切成两半，或者想多显示一行引言，可以这样做：<span id="more-496"></span></p>
<p><code class="css">.widget li {<br />
&nbsp;&nbsp;height: 3.6em;<br />
&nbsp;&nbsp;overflow: hidden;<br />
}</code></p>
<p>这里是给每个 &lt;li&gt; 限定高度，溢出部分截断。em 是一个相对的单位，调试一下选一个合适的数值，一行两行都可以实现，像下图。或者用 max-height 代替 height, 兼容性待考。需要最后跟个省略号的话可以试试 text-overflow: ellipsis; 是个非标准属性，我没有试过，不知道好不好用 <img src='/b.gif' alt=':)' class='wp-smiley sm-smile' /> </p>
<p><img style="margin-left: 50px; border: 5px solid #f3f3ec" src="http://fis.io/wp-content/uploads/2008/06/wrapped-lists.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/css-wrap-comment-widget-lists.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>老肥谈如何运用好链接</title>
		<link>http://fis.io/better-links-usage.html</link>
		<comments>http://fis.io/better-links-usage.html#comments</comments>
		<pubDate>Sat, 31 May 2008 12:11:09 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[浏览器]]></category>

		<guid isPermaLink="false">http://fis.io/?p=487</guid>
		<description><![CDATA[幸福收藏夹写了一篇很好的文章 如何运用好链接? 我很赞同，于是写一篇我对链接使用的建议，给大家参考。 内部链接 内部链接一般是推荐一下读者... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 10px;" title="我不是城管" src="http://fis.io/wp-content/uploads/2008/05/control.png" alt="" border="0">幸福收藏夹写了一篇很好的文章 <a class="external" title="如何运用好链接? : 幸福收藏夹" href="http://www.happinesz.cn/archives/430/" target="_blank">如何运用好链接?</a> 我很赞同，于是写一篇我对链接使用的建议，给大家参考。</p>
<ul>
<li>
<h4>内部链接</h4>
<p>内部链接一般是推荐一下读者可能会感兴趣的以前的文章，可以增强关联性。它可以一定程度上打击抄袭，虽然有些人会把链接抹掉，但总比没有的好。我的 <a href="http://fis.io/tag/favicon" title="标签: favicon">favicon 设计系列</a> 被很多人转载过，其中不乏故意隐匿出处的人，但由于插图多，他们没工夫挨个删，里面的内部链接也跟着幸存下来了。还有一篇 <a href="http://fis.io/build-efficiency-tags-system-for-blog.html">如何为 blog 建立一个高效的标签系统</a>，我故意在文中留下了一个纯文本的链接（当然也是为了展示 URL 的需要），它也在抄袭者手中幸存了。在这样一个大环境里，对付抄袭没有什么特别有效的办法，但是也不要老是在文中提自己的名字——照顾一下正经读者的感受吧。</li>
<li>
<h4>外部链接</h4>
<p>外部链接就是方便读者点击相关内容的，很重要。最好给链接加上 title 属性（鼠标放上去显示的文字），描述一下这是一个什么内容，比如写上对方文章的标题。这样读者可以自己决定看不看，有个预览。<span id="more-487"></span></li>
<li>
<h4>是否在新标签中打开</h4>
<p>在本页打开的链接，读者可以自行决定是否新标签，而在新标签打开的链接，基本上是强制性的。有个现象，就是国内网站的新标签链接远远多于国外网站，从门户到论坛，大家已经习惯被剥夺选择权了。这个很难一刀切，在新标签打开吧，容易招致反感；在本页打开吧，读者可能就忘了回来，况且新标签是有实际作用的，当读者需要新老都保留的时候。我这里是内部链接本页打开，外部链接新标签。当然不是说就推荐您这么做，但我的个人忠告是内部链接最好不要新标签，内部和外部是两个系统，我不希望我的标签栏被一个网站占据。</li>
<li>
<h4>给读者一个新标签提示</h4>
<p>更进一步的说，一个链接是否新标签并不直观，给读者选择权的同时，是否能够像链接的 title 那样，有个预览和心理准备？这里我推荐一个 WordPress 插件 <a class="external" title="External Links Plugin For WordPress" href="http://www.semiologic.com/software/publishing/external-links/" target="_blank">External Links</a>, 它可以给外部链接自动加上这样的一个弹出小图标。如果您不是 WordPress, 或者像我一样希望不通过插件就实现这样的效果，也可以通过 CSS, 给链接的 a 标签加上 class="external", 然后添加 CSS 描述：</p>
<p><code class="css">a.external {<br />
&nbsp;&nbsp;background: url(...) no-repeat center right;<br />
&nbsp;&nbsp;padding-right: 13px;<br />
}</code></p>
<p>对以前的文章，我导出 xml, 搜索替换 target="_blank" 为 target="_blank" class="external" 再导入就搞定了。类似的，我还做了一个 <a class="download" href="http://fis.io/wp-content/themes/gluedideas_subtle/images/icona.png">下载图标</a>。</li>
<li>
<h4>已访问过的链接的区分</h4>
<p>这是一个看上去不显眼，实际上挺重要的东西，读者可以从链接的外观区分是否访问过，提高阅读效率。通常的办法有：改变颜色，加下划线、下点线等。我的代码：</p>
<p><code class="css">a, a:link {<br />
&nbsp;&nbsp;color: #bb6f02;<br />
&nbsp;&nbsp;text-decoration: none;<br />
}<br />
a:visited {<br />
&nbsp;&nbsp;text-decoration: underline;<br />
}<br />
a:hover, a:active {<br />
&nbsp;&nbsp;text-decoration: underline;<br />
&nbsp;&nbsp;color: #e58802;<br />
}</code></p>
<p>链接没有下划线，鼠标放上去有，访问过的链接也有。</li>
</ul>
<p>差不多说完了，希望能对您有所帮助。祝天下所有小盆友们，和童心未泯的老盆友们节日快乐 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/better-links-usage.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Ubuntu, WordPress T恤到手</title>
		<link>http://fis.io/ubuntu-wordpress-t-shirts.html</link>
		<comments>http://fis.io/ubuntu-wordpress-t-shirts.html#comments</comments>
		<pubDate>Tue, 27 May 2008 11:51:54 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[创意 设计]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[设计]]></category>

		<guid isPermaLink="false">http://fis.io/?p=251</guid>
		<description><![CDATA[印了两件T恤，图案基于 Ubuntu, WordPress 官方矢量 logo, 加上了一个登录画面。还差一个 Firefox, 没有满意的图案，在考虑印一件深蓝色 polo 衫，左胸一个巴... ]]></description>
			<content:encoded><![CDATA[<p>印了两件T恤，图案基于 Ubuntu, WordPress 官方矢量 logo, 加上了一个登录画面。还差一个 Firefox, 没有满意的图案，在考虑印一件深蓝色 polo 衫，左胸一个巴掌大的 logo, 冒充一下官方出品... <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' /> </p>
<p>本来不想给店主做广告的，留言里有人问，留在这里吧，<a href="http://shop34709330.taobao.com/" target="_blank" class="external">淘宝</a>。再另：有朋友要原稿，<a href="http://www.fileden.com/files/2008/10/30/2165694/tshirts.zip" target="_blank" class="download">在这里</a>，原稿是 svg 格式，可任意放大。我当时没有考虑到修改文字，把 svg 里面的文字转成路径了，如果要修改的话，字体是 Lucida Grande.</p>
<p><img src="http://fis.io/wp-content/uploads/2008/05/t-shirts.png" /></p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/ubuntu-wordpress-t-shirts.html/feed</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
		<item>
		<title>小改 Show Top Commentators, 及求助</title>
		<link>http://fis.io/show-top-commentators-plugin-modify.html</link>
		<comments>http://fis.io/show-top-commentators-plugin-modify.html#comments</comments>
		<pubDate>Sun, 18 May 2008 11:21:58 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=248</guid>
		<description><![CDATA[最近琢磨着给评论相关的侧栏组件加上评论者自己的图像，由于 16x16 比较小不太适合用 Gravatar, 于是考虑更加简单的 favicon. 而最新评论当中没有留下网... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 10px;" title="Favorites" src="http://fis.io/wp-content/uploads/2008/05/favorites.png" border="0" alt="" />最近琢磨着给评论相关的侧栏组件加上评论者自己的图像，由于 16x16 比较小不太适合用 <a title="增强 Gravatar 的 WorPress 插件: WP-SnapAvatar" href="http://fis.io/wp-snapavatar-plugin.html">Gravatar</a>, 于是考虑更加简单的 <a title="标签: favicon" href="http://fis.io/tag/favicon">favicon</a>. 而最新评论当中没有留下网站地址的网友比较多，于是从侧栏上的 <a title="访问插件主页" href="http://www.pfadvice.com/wordpress-plugins/show-top-commentators/" target="_blank" class="external">Show Top Commentators</a> 下手，这个插件可以显示自定义时间内评论最多的网友链接。编辑该插件，几次测试之后确定了正确的修改方法，修改第 86 行（具体显示效果可能依赖于其他关于&lt;li&gt;的 css 定义）：</p>
<p><code class="php">echo $ns_options["start_html"];  //修改为：<br />
echo "&lt;li style='background-image: url(" . $url . "/favicon.ico)'&gt;";</code></p>
<p>即用 $url 获取评论者的网站地址，将 /favicon.ico 作为列表图标。但是已知的问题有两个：没有 favicon, 或者 favicon 并不在默认地址。我用目前上榜的 5 个网友测试了一下，显示效果如下：</p>
<table width="430">
<tr align="center" bgcolor="#f3f3eb">
<td width="17%"></td>
<td width="17%"><a href="http://phinx.cn/">mercy</a></td>
<td width="17%"><a href="http://cs72.com/">kerby</a></td>
<td width="17%"><a href="http://geedr.com/">Geedr.com</a></td>
<td width="17%"><a href="http://www.justiner.cn/">kaka</a></td>
<td width="17%"><a href="http://dickeydong.cn/">Dickey</a></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">IE6</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">Opera</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td></td>
</tr>
<tr align="center">
<td bgcolor="#f3f3eb">Firefox</td>
<td bgcolor="#ddffdd">正确</td>
<td bgcolor="#ddffdd">正确</td>
<td bgcolor="#ddffdd">正确</td>
<td></td>
<td bgcolor="#ddffdd">正确</td>
</tr>
<tr align="center">
<td>&nbsp;</td>
<td></td>
<td></td>
<td></td>
<td></td>
<td></td>
</tr>
</table>
<p>其中 kaka 的路径错误，kerby 和 Dickey 的文件存在，但显示有有问题。对前一种情况，总不能去分析对方的 header 来获取吧，太不现实。后一种情况，我也没弄明白为什么… 或者，可以让获取错误的时候显示 css 里定义的默认列表图标？欢迎高手给指导一下 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/show-top-commentators-plugin-modify.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>不用插件自制 WordPress 倒序留言簿</title>
		<link>http://fis.io/wordpress-guestbook-without-plugins.html</link>
		<comments>http://fis.io/wordpress-guestbook-without-plugins.html#comments</comments>
		<pubDate>Sun, 11 May 2008 10:04:18 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=244</guid>
		<description><![CDATA[这篇文章是我修改 留言页面 的一个总结分享，可以生成一个倒序显示的留言簿，而且输入框在评论列表上方。概要如下：建立 一个页面模板和一个评... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 10px" title="Pencil" src="http://fis.io/wp-content/uploads/2008/05/pencil.png" border="0" alt="" />这篇文章是我修改 <a href="http://fis.io/guestbook">留言页面</a> 的一个总结分享，可以生成一个倒序显示的留言簿，而且输入框在评论列表上方。概要如下：<a href="http://fis.io/wordpress-guestbook-without-plugins.html#1">建立</a> 一个页面模板和一个评论模板，让前者 <a href="http://fis.io/wordpress-guestbook-without-plugins.html#2">指定</a> 后者，<a href="http://fis.io/wordpress-guestbook-without-plugins.html#3">修改</a> 评论模板里面的数据读取方式，如果有评论编号的话也要 <a href="http://fis.io/wordpress-guestbook-without-plugins.html#4">倒序</a> 一下，最后 <a href="http://fis.io/wordpress-guestbook-without-plugins.html#5">调整</a> 一下布局让评论输入框位于评论列表的上方。</p>
<h4><span id="1"></span>建立一个独立的页面模板</h4>
<p>通常文章的评论是顺序显示的，所以我们需要另建立一个倒序页面模板给留言簿。当然如果有遏制沙发党的需要也可以全站用这个方法 <img src='/b.gif' alt=':evil:' class='wp-smiley sm-evil' />  把主题的根目录下的 single.php 或 page.php (须有评论功能) 复制重命名为 guestbook.php, 把 comments.php 复制重命名为 gbcomments.php, 名称可以自定。在 guestbook.php 的开头加入：</p>
<p><code class="php">&lt;?php /* Template Name:  留言簿 */ ?&gt;</code></p>
<p><span id="2"></span>然后在它的末尾找到如下代码，另外指定一下评论调用：<span id="more-480"></span></p>
<p><code class="php">&lt;?php comments_template(); ?&gt; //替换成：<br />
&lt;?php comments_template(<font color="#bb6f02"><strong>'/gbcomments.php'</strong></font>); ?&gt;</code></p>
<h4>新建留言簿页面</h4>
<p>新建页面的时候选择页面模板 (Page Template) 为“留言簿”，这样它就具有了单独的页面和评论结构，供下面的步骤调试用。页面内容可以是留言簿说明。</p>
<h4><span id="3"></span>修改 gbcomments.php 里面的评论顺序</h4>
<p>也很简单，只需要在文件中替换一处代码：</p>
<p><code class="php">&lt;?php foreach ($comments as $comment) : ?&gt;<br />
//替换成：<br />
&lt;?php foreach (<font color="#bb6f02"><strong>array_reverse(</strong></font>$comments<font color="#bb6f02"><strong>)</strong></font> as $comment) : ?&gt;</code></p>
<h4><span id="4"></span>如果有评论编号，也需要改</h4>
<p>如果代码没写错的话，现在评论应该倒过来排了噢。但是还有个问题，不少模板的评论是带有编号的，编号还没有倒过来。有点程序基础的朋友不用想也知道，原始代码是定义了一个初始为 0 的变量 $iCommentCount (名字可能不同), 自增一次输出一次，循环就好了：</p>
<p><code class="php">$iCommentCount = 0;<br />
//...<br />
&lt;?php $iCommentCount++; echo($iCommentCount); ?&gt;</code></p>
<p>需要改成初始值为评论总数，输出一次自减一次，循环：</p>
<p><code class="php">$iCommentCount = <font color="#bb6f02"><strong>get_comments_number()</strong></font>;<br />
//...<br />
&lt;?php echo($iCommentCount); <font color="#bb6f02"><strong>$iCommentCount--</strong></font>; ?&gt;</code></p>
<h4><span id="5"></span>把评论输入框搬到评论列表的上方</h4>
<p>好了，到这里基本上就改完了，最后这个步骤要看具体模板结构，看着改改就好，出错了大不了重来，而且调试的部分是独立的，不会影响到正常访问。</p>
<p>这样一个留言簿就做好了，比我以前用的 <a href="http://fis.io/simp-chinese-cbox-guestbook.html" title="Cbox 嵌入式留言簿已支持简体中文">cbox</a> 那可是好太多了 <img src='/b.gif' alt=':P' class='wp-smiley sm-tongue' />  而且最新留言也会出现在普通文章的评论一起，头像什么的更是不在话下。这个功能如果有插件能实现，估计也没有自己改好吧，主题关联度太大了。</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wordpress-guestbook-without-plugins.html/feed</wfw:commentRss>
		<slash:comments>54</slash:comments>
		</item>
		<item>
		<title>增强 Gravatar 的 WorPress 插件: WP-SnapAvatar</title>
		<link>http://fis.io/wp-snapavatar-plugin.html</link>
		<comments>http://fis.io/wp-snapavatar-plugin.html#comments</comments>
		<pubDate>Wed, 07 May 2008 03:01:27 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://fis.io/?p=242</guid>
		<description><![CDATA[Gravatar 相信不用多介绍，众多博客、社区用它来显示留言者头像，不用在每个地方去注册，就可以通过留言 email 来生成头像，地址通过 MD5 加密，不会... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 5px" title="Plugins" src="http://fis.io/wp-content/uploads/2008/05/plugins.png" alt="" border="0"><a title="Globally Recognized Avatars" href="http://www.gravatar.com/" target="_blank" class="external">Gravatar</a> 相信不用多介绍，众多博客、社区用它来显示留言者头像，不用在每个地方去注册，就可以通过留言 email 来生成头像，地址通过 MD5 加密，不会被第三方获取。OK, 这不是本文的要点，详细了解它可以参照 <a title="如何使用Wordpress 2.5内置的Gravatar头像服务 | 帕兰映像" href="http://parandroid.com/how-to-use-the-built-in-wordpress-25-portrait-services-gravatar/" target="_blank" class="external">帕兰的文章</a>。我这里要介绍的一个插件可以用来增强它，在评论者的 email 没有对应头像的时候，如果有网址，则将网址截图作为头像。这就是 <a title="插件首页" href="http://wordpress.org/extend/plugins/wp-snapavatar/" target="_blank" class="external">WP-SnapAvatar</a>.</p>
<p>评论者网址截图缓存于 <a title="我的截图" href="http://images.websnapr.com/?url=http://fis.io/">images.websnapr.com/?url=http://</a>, 只要被获取过，则使用缓存；自动更新周期未知。<img style="float: right; margin-top: 5px" title="Snap avatars" src="http://fis.io/wp-content/uploads/2008/05/site-avatars.png" alt="" border="0">如果获取的时候发生了访问错误，<a title="websnapr 首页" href="http://www.websnapr.com/" target="_blank" class="external">websnapr</a> 提供手动更新。这不失为一个弥补 Gravatar 空缺的办法，对没有对应头像的评论者，通常的做法是显示一张缺省图片，或者随机赋予一个预设头像。而提供一个他自己的网站外观做头像，应该更加亲切。</p>
<p>由于 websnapr 的服务是可以匿名外链的，在地址后加上 &amp;size= 可以获取不同尺寸的截图 (可赋值 t, s, m, l)，那么还可以用它来做图片友情链接，或者介绍一个网站的时候直接写入截图地址：自动截取链接图片而且自动更新，酷？现在就动动键盘测试一下！</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/wp-snapavatar-plugin.html/feed</wfw:commentRss>
		<slash:comments>43</slash:comments>
		</item>
		<item>
		<title>New home @hostmonster</title>
		<link>http://fis.io/new-home-at-hostmonster.html</link>
		<comments>http://fis.io/new-home-at-hostmonster.html#comments</comments>
		<pubDate>Mon, 05 May 2008 13:13:05 +0000</pubDate>
		<dc:creator>fisio</dc:creator>
				<category><![CDATA[网站 博客]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[博客]]></category>

		<guid isPermaLink="false">http://fis.io/?p=240</guid>
		<description><![CDATA[感谢 老帕的合租计划，让我犹豫在 继续 yo2 和 转向 Dreamhost 之间的时候有了一个不错的选择，平台当然还是至爱 WordPress, 花了几天时间转移数据，修改... ]]></description>
			<content:encoded><![CDATA[<p><img style="float: right; margin-left: 5px" title="Home" src="http://fis.io/wp-content/uploads/2008/05/home.png" border="0" alt="" />感谢 <a href="http://parandroid.com/molan-image-hostmonster-blog-novice-share-mainframe/" target="_blank" class="external">老帕的合租计划</a>，让我犹豫在 <a title="优博网域名绑定收费方案出台" href="http://fis.io/yo2-pay.html">继续 yo2</a> 和 转向 Dreamhost 之间的时候有了一个不错的选择，平台当然还是至爱 <a href="http://wordpress.org/" target="_blank" class="external">WordPress</a>, 花了几天时间转移数据，修改模板，配置插件，基本上和之前没多大变化，只是用我增加了的 CSS 知识完善界面细节，并再一次惊叹于 WordPress 的 <a title="WordPress 插件" href="http://wordpress.org/extend/plugins/" target="_blank" class="external">插件</a> 之丰富，它好比是 <a title="标签 Firefox 下的文章" href="http://fis.io/tag/firefox">Firefox</a>, 我喜欢用能深度自定义，想怎么改就怎么改的软件，改的过程中不断测试不断搜索，代码就学会了，嘿嘿。而这些在以前是很有限的。</p>
<p>搬家很顺利，用 ftp 转移图片，再导出所有数据，分割，导入就可以了，导出的 WXR(.xml) 需要用 UltraEdit 之类的编辑器做一些搜索替换，比如 yo2 的缓存域名，URL 中的用户 ID 等。离开 <a title="优博网" href="http://yo2.cn/" target="_blank" class="external">yo2</a> 还是有些留恋，yo2 有一流的 WordPress 博客服务，优秀的管理员 <a href="http://oneoo.com/" target="_blank" class="external">oneoo</a>, 我的博友有一半是在 yo2 结识的。这一年我推荐了很多朋友加入，<span style="text-decoration: line-through;">1个付费用户</span> 两个付费用户 <a title="和谐摄会" href="http://www.fanka.name/" target="_blank" class="external">饭卡</a> 和 <a title="Hi Mark" href="http://www.hi-mark.cn/" target="_blank" class="external">Mark</a>，而且今后对入门的朋友仍然首推 WordPress 和 yo2, 我的离开只是因为 yo2 已经满足不了我 <img src='/b.gif' alt=':D' class='wp-smiley sm-grin' />  PS: 就在搬家的时候 <a title="PR 查询" href="http://pagerank.webmasterhome.cn/pagerank.asp?domain=fisio.cn" target="_blank" class="external">PageRank 升到了 5</a>, Google 给我个乔迁之喜？</p>
<p>一个容易见到的变化是评论者 <a title="Globally Recognized Avatars" href="http://www.gravatar.com/" target="_blank" class="external">Gravatar</a> 头像，在 WordPress 2.5+ 它已经被缺省开启，而且同样可以指定尺寸、缺省图片，经常在博客留言的朋友一定要注册服务，它可不仅限于 WordPress 平台哦，可算是一个随身带到处用的网络名片了。</p>
<p>请教个问题：默认的 Archives widget 日期格式是 F Y, 启用 <a title="WordPress 2.5.1 简体中文语言包" href="http://code.google.com/p/wpcn/downloads/list" target="_blank" class="external">中文包</a> 后变为 Y年m月，如果我需要 y年n月 怎么改？</p>
]]></content:encoded>
			<wfw:commentRss>http://fis.io/new-home-at-hostmonster.html/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>

