<?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>A.shun&#039;s Blog &#187; 主题</title>
	<atom:link href="http://www.a-shun.com/archives/tag/theme/feed" rel="self" type="application/rss+xml" />
	<link>http://www.a-shun.com</link>
	<description></description>
	<lastBuildDate>Mon, 06 Sep 2010 06:08:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>博客主题评论部分修改</title>
		<link>http://www.a-shun.com/archives/21375.html</link>
		<comments>http://www.a-shun.com/archives/21375.html#comments</comments>
		<pubDate>Wed, 21 Jul 2010 12:44:41 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/?p=21375</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>又开始折腾 WordPress 了～</p>
<p>本来在上次折腾之后，打算等上 3.0 之后再弄的。不过这段时期朋友们共享了一些不错的技巧，我也心动了。</p>
<p>这回拿<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>评论模板开刀，优化了样式，解决了存在已久的嵌套问题，并添加了一些小功能。<br />
评论功能是 Blogger 之间、以及访问者互动的重要手段，是必须重视的。</p>
<p>和往常一样，做个总结手记，也分析那些让大家受益的技巧。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21375.html">博客主题评论部分修改</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>又开始折腾 WordPress 了～</p>
<p>本来在上次折腾之后，打算等上 3.0 之后再弄的。不过这段时期朋友们共享了一些不错的技巧，我也心动了。</p>
<p>这回拿<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>评论模板开刀，优化了样式，解决了存在已久的嵌套问题，并添加了一些小功能。<br />
评论功能是 Blogger 之间、以及访问者互动的重要手段，是必须重视的。</p>
<p>和往常一样，做个总结手记，也分析那些让大家受益的技巧。<br />
<span id="more-21375"></span></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">评论样式优化</h2>
<p>新的样式如图:</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_comment_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_comment_03.jpg" alt="Wordpress 主题评论模板" width="461" height="388" /></a></p>
<p>所做的主要修改：</p>
<ol>
<blockquote>
<li>添加了大量的 box-shadow 和 text-shadow 阴影效果，并去掉了一些边框。现在自我感觉良好。<br />
这些属性不支持 IE 浏览器。</li>
<li>调整布局：一些位置调整，并把回复按钮和 UA 信息弄到了评论内容的下方，避免评论者名字过长造成的重叠。</li>
<li>给<a href="http://www.a-shun.com/archives/21329.html">评论者 UA 信息</a>的图片添加 opacity 属性，看起来淡一些，毕竟是点缀作用别太吸引注意嘛。鼠标放上去才恢复不透明。<br />
当然，这个也不支持 IE 。</li>
</blockquote>
</ol>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">实现完美的 WordPress 无限嵌套回复</h2>
<p>我比较喜欢嵌套方式的评论模板，这样回复评论更有对话的感觉。<br />
之前的<strong>无限嵌套</strong>有一个问题：回复非主评论时，评论框错位了（跑到了主评论下面），回复并刷新后正常。<br />
虽然基本不影响使用，不过追求完美是好事。<br />
QiQiBoY 已经把方法折腾出来了，高手哇。效果：</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_comment_04.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_comment_04.jpg" alt="Wordpress 评论无限嵌套" width="456" height="386" /></a></p>
<p>解决方法见：<a href="http://www.qiqiboy.com/2010/07/07/perfect-solution-wordpress-nested-layers-deep-back-problems.html">完美解决WordPress嵌套回复的层深问题（无限嵌套）&lt;一&gt;</a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">为 WordPress 主评论加上楼层号</h2>
<p>有个楼层号看起来像模像样，只给主评论加上也不会显得杂乱，还支持评论分页。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_comment_02.jpg" alt="Wordpress 评论楼层号" width="202" height="248" /></p>
<p>来自 OM：<a href="http://zww.me/archives/25161">只在WP主评论加上楼层号的方法（支持评论分页）</a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">添加评论引用功能</h2>
<p>使用评论嵌套方式的话引用就少了，不过在说明某些问题的时候还是需要的。<br />
<strong>在评论模板加上引用按钮</strong>，免去了不少麻烦。</p>
<p>同样来自 QiQiBoY 的：<a href="http://www.qiqiboy.com/2010/07/15/easily-create-your-own-wordpress-quote-reply-function.html">添加引用按钮——轻松打造属于你的WordPress引用回复功能</a><br />
文章的步骤写得很详细了，不过由于那段 JavaScript 和主题的回复功能有些冲突，拜托了 om 才改好的 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' /> 。</p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">在评论框添加简单计数器</h2>
<p>折腾一回肯定要把好东西都搜刮来。<br />
这个评论文字计数器虽然没啥用，只是考虑到一小段  js 即可实现，无需改动主题其他部分，就用上了。可以增加点动感。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_comment_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_comment_01.jpg" alt="博客评论计数器" width="372" height="152" /></a></p>
<p>等看腻了就去掉吧。<br />
方法见：<a href="http://www.qiqiboy.com/2010/07/14/a-simple-comment-box-counter.html">评论框的简单计数器</a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">P.S.</h2>
<p>感谢上面提到的<span style="text-decoration: line-through;">两位同学</span>一位同学和一位老同学。</p>
<p>现在的评论风格看起来有点华丽了，和其他部分不怎么协调，留着下次折腾吧。<br />
这个 zsofa-ova 越来越不朴素了，罪过吖。 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' /> </p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="博客主题评论部分修改" href="http://www.a-shun.com/archives/21375.html"> 《博客主题评论部分修改》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="博客主题评论部分修改" href="http://www.a-shun.com/archives/21375.html">http://www.a-shun.com/archives/21375.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21375.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21375.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21375.html/feed</wfw:commentRss>
		<slash:comments>137</slash:comments>
		</item>
		<item>
		<title>WordPress折腾手记 6</title>
		<link>http://www.a-shun.com/archives/21372.html</link>
		<comments>http://www.a-shun.com/archives/21372.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 14:26:04 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/?p=21372</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>这篇距离<a href="http://www.a-shun.com/archives/21356.html">上次优化 WordPress 主题</a>的间隔比较长。<br />
<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>看起来还是老样子，我喜欢一个主题用很久的，当前主题保守估计一年以上。</p>
<p>但和以往不同，这回都是偶尔添加一些东西（绝大多数来自朋友们的博客），现在只是汇总一下。也把一些资源、教材的链接和朋友们分享。</p>
<p>这次弄好，先休息下。 WordPress 3.0 还在观望中。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21372.html">WordPress折腾手记 6</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>这篇距离<a href="http://www.a-shun.com/archives/21356.html">上次优化 WordPress 主题</a>的间隔比较长。<br />
<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>看起来还是老样子，我喜欢一个主题用很久的，当前主题保守估计一年以上。</p>
<p>但和以往不同，这回都是偶尔添加一些东西（绝大多数来自朋友们的博客），现在只是汇总一下。也把一些资源、教材的链接和朋友们分享。</p>
<p>这次弄好，先休息下。 WordPress 3.0 还在观望中。<br />
<span id="more-21372"></span></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">主题兼容性提升</h2>
<h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">1.修复 IE 6下文字过大的问题和一些错位问题</h3>
<p>考虑到 IE 用户的访客比例还是很高，虽然不鼓励 IE，但总是要留点可看性。</p>
<p>13px 的字号在IE 6下总是很大= =，导致本来就不整齐的页面进一步错位。<br />
折腾了半天原来是字体问题，把 Tahoma 改成 Verdana 解决了。</p>
<h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">2. 搜索框样式改进</h3>
<p>搜索框样式改进，主要用 <strong>CSS3 圆角</strong>和 <strong>box-shadow 效果</strong>。Opera 10.5～10.7 以及 FF3.64～4.0 下表现基本一致。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt6_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt6_02.jpg" alt="搜索框样式" width="353" height="136" /></a></p>
<p>IE 6下，搜索框不再完全变形了- -，凑合吧。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt6_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt6_01.jpg" alt="IE6样式" width="449" height="130" /></a></p>
<p>Chrome 环境下，搜索提交按钮的图标终于能显示了。但 box-shadow 的样式很奇怪。<br />
请对 CSS 比较了解的朋友们指教下。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt6_04.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt6_04.jpg" alt="box-shadow问题" width="352" height="134" /></a></p>
<p>导致出现问题的该部分代码为：</p>
<pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">box-shadow:inset 1px 1px 1px #ddd;
-moz-box-shadow:inset 1px 1px 1px #ddd;
-webkit-box-shadow:inset 1px 1px 1px #ddd;</pre>
<h3 style="font-size: 13px; border-left: 5px solid #CCC; margin-bottom: 8px;">页面滚动</h3>
<p>Opera 环境下  jQuery 滚动到顶部的画面闪烁 bug 已经修复。在用于滚动的 js 代码前添加一段 Opera 补丁即可。</p>
<pre style="width: 90%; color: #777; background-color: #f8f8f8; overflow: auto; padding: 10px; margin: 10px 10px 10px; border: 1px solid #e7e5dc; border-left: 3px solid #6ce26c;">jQuery(document).ready(function($) {
$body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body'); // opera fix
});</pre>
<p>详见：<a href="http://kan.willin.org/?p=1311">Page Scroll 的幾種方法</a>。</p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">主题的功能改进</h2>
<p><a href="http://www.a-shun.com/archives/21365.html">为博客图片添加 Shadowbox 效果</a>，加强看图体验。</p>
<p><a href="http://www.a-shun.com/archives/21363.html">启用 Lazy Load jQuery 插件</a>，延迟加载图片，让网页元素加载顺序更加合理。</p>
<p>更新 <a href="http://kan.willin.org/?p=1320">Gravatar 头像緩存</a> 和 <a href="http://kan.willin.org/?p=1278">Recent Comments 代码</a>，执行效率更高，加上缓存插件，现在的查询时间几乎都在 0.5s 以下。感谢低调的高手 Willin Kan 和 <a href="http://zww.me/">zww</a> 。</p>
<p>将分页代码替换为 <a href="http://kan.willin.org/?p=1323">Mini Pagenavi</a>，代同样出自 Willin Kan，比起我以前从 wp-pagenavi 直接挖出来的精简很多。感谢 om <a href="http://zww.me/archives/25180">为 Mini Pagenavi 添加“上一页”、“下一页”链接</a>。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt6_06.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt6_06.jpg" alt="Mini Pagenavi" width="413" height="58" /></a></p>
<p>仿照 Rss <span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>按钮，为 Follow me 添加了一个菜单，效果见导航栏右侧，方法见：<a href="http://www.neoease.com/jquery-slideup-and-slidedown/">jQuery 的 slideUp 和 slideDown 动画</a>。</p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">主题的其他修改</h2>
<p><strong>为链接添加 transition （CSS 渐变效果）</strong>，由于我的颜色搭配，这并不明显。方法详见：<a href="http://axiu.me/learning_notes/transition_effect/">利用CSS添加渐变（Transition）效果</a>。</p>
<p><strong>为获取焦点后的文本框添加 box-shadow 效果</strong>。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt6_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt6_03.jpg" alt="box-shadow效果" width="437" height="219" /></a></p>
<p>使用 IE 条件注释，为 IE 浏览器访客添加提示，效果见图2。</p>
<p>侧栏模块顺序调整，分类和日志下拉框样式调整。</p>
<p>其他一些细节调整。</p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="WordPress折腾手记 6" href="http://www.a-shun.com/archives/21372.html"> 《WordPress折腾手记 6》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="WordPress折腾手记 6" href="http://www.a-shun.com/archives/21372.html">http://www.a-shun.com/archives/21372.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21372.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21372.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请订阅备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21372.html/feed</wfw:commentRss>
		<slash:comments>103</slash:comments>
		</item>
		<item>
		<title>WP 文章定时发布 &amp; 继续优化当前主题</title>
		<link>http://www.a-shun.com/archives/21356.html</link>
		<comments>http://www.a-shun.com/archives/21356.html#comments</comments>
		<pubDate>Tue, 27 Apr 2010 00:30:25 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/?p=21356</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>又花了不少时间在这个主题上，罪过啊，不过折腾下来还是挺满意的。<br />
这次zsofa-ova在总体上变化不大，都是细节上的优化。像<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>这样一个<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>用很长时间的，当然是不断的追求精致。</p>
<p>现在继续来总结一下这次的折腾，顺便分享一些相关的教程。<br />
其实这个应该叫做wp折腾手记 5的，不过偶尔换下名字也不错。</p>
<p>昨天就弄好了，这回顺便尝试下<strong>WordPress定时发布</strong><strong></strong><strong>文章</strong>。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21356.html">WP 文章定时发布 &#038; 继续优化当前主题</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>又花了不少时间在这个主题上，罪过啊，不过折腾下来还是挺满意的。<br />
这次zsofa-ova在总体上变化不大，都是细节上的优化。像<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>这样一个<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>用很长时间的，当然是不断的追求精致。</p>
<p>现在继续来总结一下这次的折腾，顺便分享一些相关的教程。<br />
其实这个应该叫做wp折腾手记 5的，不过偶尔换下名字也不错。</p>
<p>昨天就弄好了，这回顺便尝试下<strong>WordPress定时发布<strong><strong>文章</strong></strong></strong>。<br />
<span id="more-21356"></span></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">WordPress文章定时发布功能</h2>
<p>这是wp自带的功能，无需任何插件。<br />
如下图所示，编辑好日志之后在“发布”那里点击编辑，把发布时间设定为当前时间之后，发布的按钮就会自动变成定时，点击即可。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/theme_zosfa_zt_04.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/theme_zosfa_zt_04.jpg" alt="wordpress定时发布文章设置" /></a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">主题header部分</h2>
<p>最开始，<a href="http://www.a-shun.com/archives/21340.html">zsofa-ova</a>的搜索框设计在了header的中间，比较方便和醒目。<br />
不过有的访客朋友看法不同：“搜索框放中间了感觉怪怪的”、“搜索框放的位置有些不太美观”。。。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/theme_zosfa_zt_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/theme_zosfa_zt_01.jpg" alt="wp主题header修改" /></a></p>
<p>之前因为右侧有twitter输出和<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>按钮，把这些放中间也不合适。现在重新调整了布局。<br />
去掉了feedsky的按钮，和feedburner.com放在了导航栏，twitter按钮的旁边。搜索框回到了靠右地方，嗯，感觉良好。</p>
<p>当然，也顺手减少了header的高度。这样可以在不滚动页面的时候显示更多内容。</p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">评论部分</h2>
<p>把comments-ajax更新到v1.29，点击主评论回复按钮有了平滑滚动效果。<br />
具体看这篇：《<a href="http://willin.atbhost.net/?p=1271" target="_blank">WordPress 內置嵌套評論專用 Ajax comments</a>》，Willin Kan真是低调的大师。</p>
<p>评论样式也重新设计，评论者名字、发表时间、和ua信息弄成一排了。这个其实个人不是特别满意，只是换换布局。<br />
看上去很紧凑，这也可以在一定程度上缩短了页面高度。</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/theme_zosfa_zt_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/theme_zosfa_zt_02.jpg" alt="wp主题评论样式修改" width="509" height="280" /></a></p>
<p>主评论隔行使用不同的背景色，比较一目了然。简单的两行代码即可实现，这是特地请教om的。</p>
<pre>ol.commentlist li.thread-even{background:#F2F2F2;}
ol.commentlist li.thread-odd{background:#eee;}</pre>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">其他细节</h2>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/theme_zosfa_zt_03.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/theme_zosfa_zt_03.jpg" alt="文章分类和月份存档下拉选择框" width="298" height="97" /></a></p>
<ol>
<blockquote>
<li>侧栏加入了文章分类、月份存档下拉选择框。比较实用，不占地方。<br />
相关的代码可以看这篇：《<a href="http://zww.me/archives/25116" target="_blank">WordPress 月度存档、文章分类下拉框代码</a>》。</li>
<li>由于分类下拉框取代了分类列表，所以把友情链接也改成双排的，各种徽标弄到下面去。</li>
<li>content的背景色和整个页面的色调统一起来。</li>
<li>去掉了日志信息、评论数和转到评论区等之前的小图标，页面更加简洁，也调整了其他背景图标的间距。</li>
<li>其他若干细节：简化日志底部的收藏和订阅链接、更多的运用了css3圆角。。。</li>
</blockquote>
</ol>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">已知问题</h2>
<ol>
<blockquote>
<li>评论者名子过长的话（比如Lazyyyyyyyyyyyyyy），时间和ua信息就要挤到一起了。</li>
<li>两层以上的嵌套问题非常大。。暂时改回两层，不过以前就弄得很乱，无所谓了。</li>
<li>IE6的显示继续杯具，特别是文字大小。</li>
<li>Chrome环境下的搜索按钮不显示。</li>
<li>Opera下底部的top按钮的问题不打算修复了，反正有手势。</li>
</blockquote>
</ol>
<p>累了，以后再折腾吧。</p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="WP 文章定时发布 &#038; 继续优化当前主题" href="http://www.a-shun.com/archives/21356.html"> 《WP 文章定时发布 &#038; 继续优化当前主题》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="WP 文章定时发布 &#038; 继续优化当前主题" href="http://www.a-shun.com/archives/21356.html">http://www.a-shun.com/archives/21356.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21356.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21356.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请订阅备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21356.html/feed</wfw:commentRss>
		<slash:comments>147</slash:comments>
		</item>
		<item>
		<title>WordPress折腾手记4</title>
		<link>http://www.a-shun.com/archives/21342.html</link>
		<comments>http://www.a-shun.com/archives/21342.html#comments</comments>
		<pubDate>Sun, 21 Mar 2010 18:38:17 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/?p=21342</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>自从更换了新主题<a href="http://www.a-shun.com/archives/21340.html">zsofa-ova</a>以来，就没再怎么折腾了。然而存在的问题依然很多。</p>
<p>趁这几天比较有空，对其进行一些细节的修改。</p>
<p>这次算是小折腾，以后要继续完善才行。</p>
<p>继续发扬<span style="color: #ff0000;">折腾永无止境</span>的精神。。。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21342.html">WordPress折腾手记4</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>自从更换了新主题<a href="http://www.a-shun.com/archives/21340.html">zsofa-ova</a>以来，就没再怎么折腾了。然而存在的问题依然很多。</p>
<p>趁这几天比较有空，对其进行一些细节的修改。</p>
<p>这次算是小折腾，以后要继续完善才行。</p>
<p>继续发扬<span style="color: #ff0000;">折腾永无止境</span>的精神。。。<br />
<span id="more-21342"></span></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">样式调整</h2>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt4_1.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt4_1.jpg" alt="Rss下拉菜单" width="202" height="139" /></a></p>
<ol>
<blockquote>
<li><span style="color: #008000;">添加了Rss<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>下滑菜单</span>，提供几个常见阅读器的一键订阅。<br />
渐变下拉菜单的实现方法见<a href="http://zww.me/archives/25105" target="_blank">old man</a>的这篇文章，需要jQuery支持，图片是从以前inove弄出来的。</li>
<li>去掉了twitter的输出。之前那链接格式不规范，再说我推得也不多。换成一小个按钮了。并加上去了“随便看看”和“wap”两个按钮。</li>
<li>稍微调整了导航栏，调整侧栏标题样式，特别是那个tab</li>
<li>替换了部分小图标，修改了前后文章的链接样式，以及其他若干细节</li>
<li>原来的-moz-border-radius和-webkit-border-radius替换为更加标准的border-radius，能通过Css3验证。</li>
</blockquote>
</ol>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;">添加了博客的wap版本</h2>
<p>个人觉得wap版本是有存在意义的。</p>
<p>还是用少量朋友使用手机访问的。而且碰到我自己网速杯具的时候还可以凑合下。</p>
<p><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>使用的是<span style="color: #008000;">WP-T-WAP</span>。<br />
国人原创插件，设置方便。除了正常的浏览，还支持评论，文章、评论编辑，还有相关日志等。。功能很强大的说。</p>
<p>大家可以点导航栏靠右侧的按钮浏览。或者直接访问<a href="http://wap.a-shun.com/">wap.a-shun.com</a></p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_zt4_wap.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_zt4_wap.jpg" alt="博客wap站点" width="218" height="644" /></a></p>
<p>下载地址：<a href="http://wordpress.org/extend/plugins/wp-t-wap/" target="_blank">http://wordpress.org/extend/plugins/wp-t-wap/</a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px;"><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>存在的问题</h2>
<ol>
<blockquote>
<li>缓存插件的存在导致了“随便逛逛”在缓存过期之前（5分钟）会跳转到同一篇日志。</li>
<li>FF3.5.x和IE，搜索框依然有些许错位。但在3.6和3.7中表现完好，看来新版更为规范，也就不折腾了。</li>
<li>Opera环境下底部的top按钮依然有问题，不过非IE用户基本上不需要那个功能，暂且搁置。</li>
<li>换回border-radius后，FF和Safari下无法显示圆角，杯具的标准。更杯具的是FF3.7a也是一样，唉，还是把-moz-border-radius暂时加回去。</li>
<li>IE6环境下比以前更乱了。。。不管</li>
</blockquote>
</ol>
<p>看来折腾之路任重道远～</p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="WordPress折腾手记4" href="http://www.a-shun.com/archives/21342.html"> 《WordPress折腾手记4》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="WordPress折腾手记4" href="http://www.a-shun.com/archives/21342.html">http://www.a-shun.com/archives/21342.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/plugins" rel="tag">plugins</a>, <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21342.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21342.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请订阅备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21342.html/feed</wfw:commentRss>
		<slash:comments>119</slash:comments>
		</item>
		<item>
		<title>启用新主题zsofa-ova，欢迎围观</title>
		<link>http://www.a-shun.com/archives/21340.html</link>
		<comments>http://www.a-shun.com/archives/21340.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 08:55:40 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/archives/21340.html</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>折腾了好长时间，遇到各种各样的问题。感叹下，对我来说，折腾主题绝对是体力活。</p>
<p>now，新的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/wordpress" title="查看 Wordpress 的全部文章" target="_blank">Wordpress</a></span><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>zsofa-ova总算搞定了，欢迎围观～</p>
<p>希望同学们喜欢<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>'s Blog新的面貌。</p>
<p>如你所见，这就是新的样式了，还算简洁。布局上和之前基本上差不多，主要是色调改变、还有评论功能增强了。</p>
<p>在各浏览器下表现基本一致（ie6除外），有发现问题的同学麻烦提醒下。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21340.html">启用新主题zsofa-ova，欢迎围观</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>折腾了好长时间，遇到各种各样的问题。感叹下，对我来说，折腾主题绝对是体力活。</p>
<p>now，新的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/wordpress" title="查看 Wordpress 的全部文章" target="_blank">Wordpress</a></span><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>zsofa-ova总算搞定了，欢迎围观～</p>
<p>希望同学们喜欢<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/" title="A.shun" rel="nofollow" target="_blank">A.shun</a></span>'s Blog新的面貌。</p>
<p>如你所见，这就是新的样式了，还算简洁。布局上和之前基本上差不多，主要是色调改变、还有评论功能增强了。</p>
<p>在各浏览器下表现基本一致（ie6除外），有发现问题的同学麻烦提醒下。<br />
<span id="more-21340"></span><br />
<a href="http://img.a-shun.com/wp/wp_theme_zsofa-ova_o.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_theme_zsofa-ova.jpg" alt="zsofa-ova" /></a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px; margin-bottom: 10px;">zsofa</h2>
<p><span style="color: #008000;">新的主题是在zsofa的基础上折腾出来的，主题它爸是<a href="http://zww.me/" target="_blank">zww</a>。</span><br />
本身就非常简洁那种，除了那些小图标之外，不使用背景图片，几乎是纯css打造。<br />
体积很小巧，除404.php 外只用一个index.php文件，当然是靠判断来加载不同页面效果。还有n层评论嵌套设计。</p>
<p>拥有这么多优点，<span class='wp_keywordlink'><a href="http://zww.me/" title="老男人" rel="nofollow" target="_blank">old man</a></span>又热心。so，隆重推荐给大家：<br />
官方下载页：<a href="http://wordpress.org/extend/themes/zsofa" target="_blank">http://wordpress.org/extend/themes/zsofa</a></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px; margin-bottom: 10px;">折腾的力量</h2>
<p>当然，这个主题虽好，但总是要追求个性嘛。<br />
经过我一番折腾着：<br />
修改了背景、链接的颜色，修改了侧栏布局，重新设计了header，新的页面导航栏（借鉴了<span class='wp_keywordlink'><a href="http://www.neoease.com/" title="mg12" rel="nofollow" target="_blank">mg12</a></span>私人主题的样式），调整了首页文章信息位置，加入了大量的hover样式和css3圆角...</p>
<p>文章部分和相关日志基本上沿用之前主题的样式。不影响排版。</p>
<p>总之，面目全非了。说得好听点就是个性了。<br />
<span style="color: #ff0000;">不会做主题但又想要独一无二的朋友不妨也折腾折腾吧。</span></p>
<h2 style="background: #E3E4E6; font-size: 14px; border-bottom: 1px solid #CCC; border-left: 5px solid #CCC; padding-top: 3px; padding-bottom: 2px; margin-bottom: 10px;">问题</h2>
<p>稍微测试了下，主题在Opera10.5和chrome5.0、FF3.6下表现基本一致。<br />
op10.1和IE8也正常，但是不支持css3圆角。</p>
<p>当然了，由于我的折腾也带来了不少问题。比如：<br />
FF环境下的搜索框错位。<br />
chrome环境侧栏Categories下的图标行距过大。<br />
IE6环境下字体过大。<br />
还有Opera环境下，底部的top按钮不正常。</p>
<p>这些影响不大，往后再慢慢解决。</p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="启用新主题zsofa-ova，欢迎围观" href="http://www.a-shun.com/archives/21340.html"> 《启用新主题zsofa-ova，欢迎围观》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="启用新主题zsofa-ova，欢迎围观" href="http://www.a-shun.com/archives/21340.html">http://www.a-shun.com/archives/21340.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21340.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21340.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21340.html/feed</wfw:commentRss>
		<slash:comments>199</slash:comments>
		</item>
		<item>
		<title>新年新气象：归来&amp;准备更换主题</title>
		<link>http://www.a-shun.com/archives/21339.html</link>
		<comments>http://www.a-shun.com/archives/21339.html#comments</comments>
		<pubDate>Fri, 19 Feb 2010 13:44:12 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/archives/21339.html</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>春节算是过去了。各位可还玩得愉快？</p>
<p>我还想继续叨念今年过年实在太冷了。受到天气影响周围也冷冷清清的，往年在我们家门口不远处聚赌的还挺热闹，现在则不然。当然，我是不参加的，只是天气冷就没有出门的欲望。不过到相互拜年，还有小规模的同学聚会还是有的。</p>
<p>最近都没打理博客，现在是该好好整理一下了。</p>
<p>[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21339.html">新年新气象：归来&#038;准备更换主题</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" src="http://img.a-shun.com/tag/wp.gif" alt="Wordpress" /></a>春节算是过去了。各位可还玩得愉快？</p>
<p>我还想继续叨念今年过年实在太冷了。受到天气影响周围也冷冷清清的，往年在我们家门口不远处聚赌的还挺热闹，现在则不然。当然，我是不参加的，只是天气冷就没有出门的欲望。不过到相互拜年，还有小规模的同学聚会还是有的。</p>
<p>最近都没打理博客，现在是该好好整理一下了。</p>
<p><span id="more-21339"></span></p>
<p>第一步就是更换<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>。</p>
<p>对于Blogger来说，更换<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>基本上是家常便饭了。</p>
<p>不过对于我却是大事情，这么说吧，从搭建这个wp以来，我都一直用着inove。10个多月算感情深厚了，嘿嘿 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  。</p>
<p>截图留念：</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_inove_2009.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_inove_2009.jpg" alt="inove" width="288" height="521" /></a></p>
<p>更换原因倒也不是看腻了。只是新年新气象嘛。刚好过年之前没时间折腾，现在继续。</p>
<p>新主题暂时不说，下回就知道。当然，不是我写的。总之会更加简洁。</p>
<p>目前还在折腾中，今天被搞得焦头烂额。果然需要好好学习 <img src='http://www.a-shun.com/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' />   。不过不久就会搞定。这么一换，要是没有意外也会用很久。</p>
<p>另外还有其他若干调整。比如：升级到wp2.92，调整分类，去掉几个插件和比较影响速度的cnzz统计等。</p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="新年新气象：归来&#038;准备更换主题" href="http://www.a-shun.com/archives/21339.html"> 《新年新气象：归来&#038;准备更换主题》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="新年新气象：归来&#038;准备更换主题" href="http://www.a-shun.com/archives/21339.html">http://www.a-shun.com/archives/21339.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21339.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21339.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21339.html/feed</wfw:commentRss>
		<slash:comments>99</slash:comments>
		</item>
		<item>
		<title>WordPress折腾手记3</title>
		<link>http://www.a-shun.com/archives/21300.html</link>
		<comments>http://www.a-shun.com/archives/21300.html#comments</comments>
		<pubDate>Sat, 31 Oct 2009 18:41:43 +0000</pubDate>
		<dc:creator>A.shun</dc:creator>
				<category><![CDATA[博客手记]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://www.a-shun.com/archives/21300.html</guid>
		<description><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" title="blog" src="http://img.a-shun.com/tag/blog.gif" alt="blog" width="88" height="88" /></a>每次逛朋友们的博客上看到一些关于wordpress的主意和修改，都很感兴趣。<br />
折腾后的成就感是相当不错的。无奈最近比较忙，只能心痒痒。</p>
<p>直到前两天，决定对现在的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>和插件来一次大修整。</p>
<p>经历了重重困难（对这些方面接触较少- -），昨天终于基本完工。<br />
这个文章本应该昨天发的，无奈流量几乎耗尽，这几天都盼着11月份的到来。<br />
[......]</p><p class="read-more">继续阅读：<a rel="nofollow" href="http://www.a-shun.com/archives/21300.html">WordPress折腾手记3</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.a-shun.com/archives/tag/wordpress"><img style="float: right;" title="blog" src="http://img.a-shun.com/tag/blog.gif" alt="blog" width="88" height="88" /></a>每次逛朋友们的博客上看到一些关于wordpress的主意和修改，都很感兴趣。<br />
折腾后的成就感是相当不错的。无奈最近比较忙，只能心痒痒。</p>
<p>直到前两天，决定对现在的<span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>和插件来一次大修整。</p>
<p>经历了重重困难（对这些方面接触较少- -），昨天终于基本完工。<br />
这个文章本应该昨天发的，无奈流量几乎耗尽，这几天都盼着11月份的到来。<br />
<span id="more-21300"></span></p>
<h4><span class='wp_keywordlink_affiliate'><a href="http://www.a-shun.com/archives/tag/theme" title="查看 主题 的全部文章" target="_blank">主题</a></span>调整</h4>
<p>外观从整体上看来区别不大。都是细节调整。</p>
<p>把inove升级到了1.4.6。<span class='wp_keywordlink'><a href="http://www.neoease.com/" title="mg12" rel="nofollow" target="_blank">mg12</a></span>考虑得很周到，很多东西其实都写好了。但是，其他的对我来说修改起来很困难。所以只能硬着头皮，慢慢研究了。</p>
<p>这主题用的人很多，多到满街都是来形容也不为过。而且原生嵌套的问题，我依然没有解决。<strong>不过都不会成为我抛弃inove的理由。</strong></p>
<p>文字大小方面，之前用14px虽然方便老年人，不过也造成了比例不协调。特别是在侧栏导致了大量不必要的换行。。侧栏改到13px使布局更加合理。<br />
到全部弄好之后还是觉得正文也13px，让整体协调下，还可以稍微减少显示面积。。眼睛不好的同学们讲究吧，也可以在浏览器里面限制最小字体。</p>
<h4>修改评论样式</h4>
<p><strong>WordPress Thread Commen</strong>t是个优秀的插件，但是有些小问题。虽然说插件越少越好，但我还没折腾出inove的<strong>原生嵌套</strong>，只得继续依赖它了。</p>
<p>不过原来的评论样式不太好看，好在这个插件提供了自定义css的功能。一番折腾后头像不再独占一行，，减少屏幕空间占用，颜色搭配上更加协调，这有<span class='wp_keywordlink'><a href="http://vicia.me/" title="小屏幕星人" rel="nofollow" target="_blank">Vicia</a></span>的功劳。<br />
之前的：</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_inove_01.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_inove_01.jpg" alt="WP Thread Comment" width="300" height="311" /></a></p>
<p>现在的:</p>
<p style="text-align: center;"><a href="http://img.a-shun.com/wp/wp_inove_02.jpg"  rel="shadowbox"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_inove_02.jpg" alt="嵌套回复" width="300" height="283" /></a></p>
<p>5层嵌套需要的空间远远小于之前的4层，so，决定开到6层。</p>
<h4>侧栏调整</h4>
<p>侧栏布局并没有太大变化，但<strong>现在这次侧栏并不依赖任何插件，也不使用widget。</strong>全部功能都写在php里面了。</p>
<p>其实实现起来也很简单，mg12把很多东西都写好了，用widget能实现的都有了，我只是调整了东南西北几个侧栏的东西，然后去掉了一些判断语句。</p>
<p>停用了Top Commentators Widget插件，用代码实现“本月评论最多的朋友 ”，改为显示头像，并移到了侧栏最上方。实现方法可以参考《<a href="http://zww.me/archives/24671" target="_blank">用代码武装你的wordpress</a>》</p>
<h4>性能优化</h4>
<p>大量减少插件数量，现在是15个，虽然还是不少，但比起之前的22个那好多了。接下来会进一步精简。改天来晒下插件吧。</p>
<p>主题里面大张的图片都压缩了，特别是那种banner，看起来稍微丑了点，不过还在可以接受的范围之内。</p>
<p>把主题里面的一些判断语句去掉，一些函数替换为固定的文本和链接。开了插件后查询数在5～7，比以前好多了。</p>
<h4>其他</h4>
<p><strong>1.给一些特殊的链接加入提示图标效果</strong>如图。</p>
<p style="text-align: center;"><img class="aligncenter" src="http://img.a-shun.com/wp/wp_inove_03.jpg" alt="链接提示图标" width="241" height="169" /></p>
<p>这些出现的频率不会太高，而且图标体积很小，对流量不会有太大影响，但是能提高浏览者的体验。当然，ie6无效。道版自<a href="http://immmmm.com/add-different-types-of-attachment-icon.html" target="_blank">木木</a>同学。</p>
<p>2.在文章底部增加了用两排收藏和<span class='wp_keywordlink_affiliate'><a href="http://feeds2.feedburner.com/ashun" title="订阅" rel="nofollow" target="_blank">订阅</a></span>链接取代之前的社会化书签收藏按钮。道版自<span style="text-decoration: line-through;">老男人</span>成熟男人。</p>
<p>3.加入了<a href="http://hieudt.info/wp-plugins/comment-info-detector/" target="_blank">Comment Info Detector</a>，显示留言者浏览器和系统信息。个人认为浏览器和系统并没有牵扯到隐私问题，纯属好看，国旗就不显示了。<br />
这是在<a href="http://zou.lu/comment-info-detector/" target="_blank">Showfom小盆友</a>那里看到的。那个自带的op图标太模糊了，修改了一下，嘿。</p>
<p>还有，其他细节若干～～</p>
<p>如果发现什么问题，或者有好的建议，就麻烦反馈一下。</p>
<p>最好，一定要来这么一句:<strong><span style="color: #ff0000;">折腾永无止境。。。</span></strong></p>
<p>&raquo; 转载请以超链接形式注明来源：<a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> &raquo; <a rel="bookmark" title="WordPress折腾手记3" href="http://www.a-shun.com/archives/21300.html"> 《WordPress折腾手记3》</a><br />&raquo; 本文链接地址：<a rel="bookmark" title="WordPress折腾手记3" href="http://www.a-shun.com/archives/21300.html">http://www.a-shun.com/archives/21300.html</a></p><div id="related_posts"><h3>更多关于  <a href="http://www.a-shun.com/archives/tag/wordpress" rel="tag">WordPress</a>, <a href="http://www.a-shun.com/archives/tag/theme" rel="tag">主题</a>, <a href="http://www.a-shun.com/archives/tag/blog" rel="tag">博客手记</a> 的文章：</h3><ul><li><a href="http://www.a-shun.com/archives/21381.html" title="升级到 WordPress 3.01">升级到 WordPress 3.01</a></li><li><a href="http://www.a-shun.com/archives/21377.html" title="反垃圾评论：WP Anti Spam + Spam To Blacklist">反垃圾评论：WP Anti Spam + Spam To Blacklist</a></li><li><a href="http://www.a-shun.com/archives/21375.html" title="博客主题评论部分修改">博客主题评论部分修改</a></li><li><a href="http://www.a-shun.com/archives/21372.html" title="WordPress折腾手记 6">WordPress折腾手记 6</a></li><li><a href="http://www.a-shun.com/archives/21363.html" title="启用 Lazy Load jQuery 插件">启用 Lazy Load jQuery 插件</a></li></ul></div><p style='border-top:3px solid #CCC;'>© <a title="A.shun&#039;s Blog" href="http://www.a-shun.com">A.shun&#039;s Blog</a> 2009-2010 | <a rel="bookmark" href="http://www.a-shun.com/archives/21300.html#respond">发表评论 </a> | <a rel="bookmark" href="http://www.a-shun.com/archives/21300.html#comments">阅读评论 </a> | <a href="https://twitter.com/ashunyi"> Twitter</a> | 0b509d655a529f3b7820d7fb7e63fb0e<br />由于 Feedburner 已经被屏蔽，国内阅读器请订阅备用的RSS <a href="http://feed.a-shun.com/">feed.a-shun.com</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.a-shun.com/archives/21300.html/feed</wfw:commentRss>
		<slash:comments>185</slash:comments>
		</item>
	</channel>
</rss>
