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

<channel>
	<title>漠天博客 &#187; 博客之道</title>
	<atom:link href="http://motian.org/topics/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://motian.org</link>
	<description>关注云计算发和物联网的发展，研究和开发开源操作系统，致力于开源项目的发展的技术性博客！</description>
	<lastBuildDate>Thu, 09 Sep 2010 15:20:26 +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>WordPress 3.0.1中文版发布</title>
		<link>http://motian.org/post/wordpress-3-0-1-press-606.html</link>
		<comments>http://motian.org/post/wordpress-3-0-1-press-606.html#comments</comments>
		<pubDate>Tue, 17 Aug 2010 05:29:02 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/?p=606</guid>
		<description><![CDATA[WordPress 是一个注重美学、易用性和网络标准的个人信息发布平台。WordPress 虽为免费的开源软件，但其价值无法用金钱来衡量。 使用 WordPress 可以搭建功能强大的网络信息发布平台，但更多的是应用于个性化的博客。针对博客的应用，WordPress 能让您省却对后台技术的担心，集中精力做好网站的内容。 我们决定推出 WordPress 3.0.1 语言包补充更新。本次更新将： 修正已发现的翻译错误 添加“站点网络”部分的翻译 添加后台样式优化补丁 本次字体样式优化补丁和原来不同，我制作了配置页面，随语言包自动添加，允许您选择是否使用这些优化补丁，截图如下： 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 (1.000)Wordpress插件WP-PostViews使用 (1.000)WordPress数据库优化——插件篇 (1.000)WordPress模板常用函数 (1.000)Wordpress常用函数 (1.000)Wordpress内置模板条件判断函数 (1.000)[整理]wordpress插件制作入门教程 (1.000)十大WordPress手机插件 (1.000)WordPress插件EasyArchives 使用方法 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 2 comments &#124;标签: WordPress 收藏分享本文：]]></description>
			<content:encoded><![CDATA[<p><strong><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span></strong> 是一个注重美学、易用性和网络标准的个人信息发布平台。<strong><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span></strong> 虽为免费的开源软件，但其价值无法用金钱来衡量。</p>
<p>使用 <strong>WordPress</strong> 可以搭建功能强大的网络信息发布平台，但更多的是应用于个性化的博客。针对博客的应用，<strong>WordPress</strong> 能让您省却对后台技术的担心，集中精力做好网站的内容。</p>
<p>我们决定推出 WordPress 3.0.1 语言包补充更新。本次更新将：</p>
<ul>
<li>修正已发现的翻译错误</li>
<li>添加“站点网络”部分的翻译</li>
<li>添加后台样式优化补丁</li>
</ul>
<p>本次字体样式优化补丁和原来不同，我制作了配置页面，随语言包自动添加，<strong>允许您选择是否使用这些优化补丁</strong>，截图如下：</p>
<p><img class="alignnone" title="WordPress 中文 优化" src="http://img.motian.org/images/wordpressc.png" alt="WordPress 中文 优化" width="579" height="307" /></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-3-0-1-press-606.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-3-0-1-press-606.html#comments">2 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-3-0-1-press-606.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress电子书制作插件-Anthologize</title>
		<link>http://motian.org/post/wordpress-anthologize-602.html</link>
		<comments>http://motian.org/post/wordpress-anthologize-602.html#comments</comments>
		<pubDate>Mon, 16 Aug 2010 15:17:01 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/?p=602</guid>
		<description><![CDATA[WordPress 3.0有一个专门用来选辑文章制作电子书的plugin叫作Anthologize。 Anthologize这个字，原意就是汇编、选辑成册的意思。 而支援WordPress 3.0的这个Anthologize外挂，正如它字面上的意思，就是用来装置在WordPress 3.0博客平台上，供作者从自己的博客里挑选文章，制作属于自己的电子书。 当然是一个电子书，但是你知道我们说的是什么。这个插件可以将你的博客内容重排序成章节的形式，这样就可以以多种电子书友好的格式输出。这些电子书格式包括了PDF，ePub，和TEI，TEI是一种开放的XML。如果你能写博客，但是不能格式化地保存你的生活记录，你将不能以另一种新的形式发布你以前的作品。 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 (1.000)Wordpress插件WP-PostViews使用 (1.000)WordPress数据库优化——插件篇 (1.000)WordPress模板常用函数 (1.000)Wordpress常用函数 (1.000)Wordpress内置模板条件判断函数 (1.000)[整理]wordpress插件制作入门教程 (1.000)十大WordPress手机插件 (1.000)WordPress插件EasyArchives 使用方法 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 3 comments &#124;标签: WordPress 收藏分享本文：]]></description>
			<content:encoded><![CDATA[<p><strong><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> 3.0</strong>有一个专门用来选辑文章制作电子书的<strong>plugin</strong>叫作<strong>Anthologize</strong>。 <strong>Anthologize</strong>这个字，原意就是汇编、选辑成册的意思。 而支援<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> 3.0的这个Anthologize外挂，正如它字面上的意思，就是用来装置在<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> 3.0博客平台上，供作者从自己的博客里挑选文章，制作属于自己的电子书。</p>
<p>当然是一个电子书，但是你知道我们说的是什么。这个插件可以将你的博客内容重排序成章节的形式，这样就可以以多种电子书友好的格式输出。这些电子书格式包括了PDF，ePub，和TEI，TEI是一种开放的XML。如果你能写博客，但是不能格式化地保存你的生活记录，你将不能以另一种新的形式发布你以前的作品。</p>
<div class="wp-caption alignnone" style="width: 352px"><img title="Anthologize" src="http://img.motian.org/images/anthologiz.jpg" alt="Anthologize" width="342" height="200" /><p class="wp-caption-text">Anthologize</p></div>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-anthologize-602.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-anthologize-602.html#comments">3 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-anthologize-602.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>如何才能成为百强网站</title>
		<link>http://motian.org/post/how-handuse-sites-586.html</link>
		<comments>http://motian.org/post/how-handuse-sites-586.html#comments</comments>
		<pubDate>Thu, 08 Jul 2010 16:05:40 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[互联网]]></category>

		<guid isPermaLink="false">http://motian.org/?p=586</guid>
		<description><![CDATA[大家都知道真正的大网站访客有无数。但究竟有多少？前一段时间谷歌发布了 全球前1000名 网站的榜单，瑞典互联网检测机构Pingdom以此为基础进行了本次研究，得出以下结论： 要成为全球前1000大网站，你的网站每月至少得有410万的独立用户访问量。 要成为全球前500大网站，你的网站每月至少得有740万的独立用户访问量。 要成为全球 前100大网站，你的网站每月至少得有2200万的独立用户访问量。 要成为全球 前50大网站，你的网站每月至少得有4100万的独立用户访问量。 要成为全球前10网站，你的网站每月至少得有 2.3亿的独立用户访问量。 要成为全球第一大网站（Facebook），每月独立用户访问量就需要达到5.4亿。 顶级网站的访问量 为了让大家更加清楚这些顶级网站访问量的分布，Pingdom还绘制了下面两个图表，第一个显示的是全球前100大网站每月的独立用户访问 量 分布，第二个显示的是全球前1000大网站每月的独立用户访问量分布。 首先是前100大网站的分布图： 从上图就可以看出，对于排名靠前的网站来说，越靠前的网站每月独立用户访问量会大幅增加，而后面随着排名的降低，分布的线条形态就趋于缓和，也就是说访问量的差别就越小，这正印证了著名的“长尾” 理论。从下面的1000大网站访问量的分布来看的话，这种长尾形态就更明显了。 全球1000大网站每月独立用户访问量分布 长尾效应 从上面两幅图可以看出，网站的独立用户访问量呈长尾分布。 如果你将每个网站的独立用户访问量相加，然后再与前10、前100、前1000名的网站所占的比例进行计算，就会得出以下的数据。 排名前10的网站占据了 排名前100的网站独立用户访问量的 42%，占据了排名前1000的网站独立访问量的21%。 排名前100的网站占据了排名前1000网站的独立用户访问量的50%，也就是说排名前100的网站与后面900个网站的独立用户访问 量持平。 由于用户访问量有点特殊，一个用户不止访问一个网站，因此各个网站之间的独立用户访问量会有重合，排名越高的网站，重合的用户就会越多。 最后 如果你想闯进前100强网站，你至少每月得有2200万独立用户访问，就算是要闯入1000名，你也至少每个月要保证410万的独立用户访问。想想够难吧？ 扩展阅读"Windows 7 Party"开放申请 (1.000)消息称Twitter最新融资5千万 (1.000)腾讯将在高校招聘1000名员工 (1.000)众乐网-可不可使国人众乐乐 (1.000)Actuate：中国大陆公司开源软件使用率达80.3% (1.000)谷歌百度搜索排名权重上一些差异 (1.000)白名单制度率先被工信部使用 (1.000)开源中国2009年度五大开源事件 (1.000)2010,邮箱大佬网易为什么动作连连 (1.000)CN命运已明朗，允许个人持有CN老域名 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; One comment &#124;标签: [...]]]></description>
			<content:encoded><![CDATA[<p>大家都知道真正的大网站访客有无数。但究竟有多少？前一段时间谷歌发布了<a href="http://www.google.com/adplanner/static/top1000/" target="_blank"> 全球前1000名</a> 网站的榜单，瑞典<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/internet" title="查看 互联网 的全部文章" target="_blank">互联网</a></span>检测机构Pingdom以此为基础进行了本次研究，得出以下结论：</p>
<ul>
<li>要成为全球<strong>前1000</strong>大网站，你的网站每月至少得有<strong>410万</strong>的独立用户访问量。</li>
<li>要成为全球<strong>前500</strong>大网站，你的网站每月至少得有<strong>740万</strong>的独立用户访问量。</li>
<li>要成为全球<strong> 前100</strong>大网站，你的网站每月至少得有<strong>2200万</strong>的独立用户访问量。</li>
<li>要成为全球<strong> 前50</strong>大网站，你的网站每月至少得有<strong>4100万</strong>的独立用户访问量。</li>
<li>要成为全球<strong>前10</strong>网站，你的网站每月至少得有 <strong>2.3亿</strong>的独立用户访问量。</li>
<li>要成为全球<strong>第一大网站（Facebook）</strong><strong>，</strong>每月独立用户访问量就需要达到<strong>5.4亿</strong>。</li>
</ul>
<h3>顶级网站的访问量</h3>
<p>为了让大家更加清楚这些顶级网站访问量的分布，Pingdom还绘制了下面两个图表，第一个显示的是全球前100大网站每月的独立用户访问 量  分布，第二个显示的是全球前1000大网站每月的独立用户访问量分布。</p>
<p>首先是前100大网站的分布图：</p>
<p><img src="http://img.motian.org/images/site.jpg" alt="全球1000大网站每月独立用户访问量分布" width="400" height="276" /></p>
<p>从上图就可以看出，对于排名靠前的网站来说，越靠前的网站每月独立用户访问量会大幅增加，而后面随着排名的降低，分布的线条形态就趋于缓和，也就是说访问量的差别就越小，这正印证了著名的“长尾”  理论。从下面的1000大网站访问量的分布来看的话，这种长尾形态就更明显了。</p>
<p><img src="http://img.motian.org/images/sites.jpg" alt="全球1000大网站每月独立用户访问量分布" width="400" height="276" /></p>
<p>全球1000大网站每月独立用户访问量分布</p>
<p>长尾效应</p>
<p>从上面两幅图可以看出，网站的独立用户访问量呈长尾分布。</p>
<p>如果你将每个网站的独立用户访问量相加，然后再与前10、前100、前1000名的网站所占的比例进行计算，就会得出以下的数据。</p>
<ul>
<li>排名前10的网站占据了 排名前100的网站独立用户访问量的  <strong>42%</strong>，占据了排名前1000的网站独立访问量的<strong>21%</strong>。</li>
<li>排名前100的网站占据了排名前1000网站的独立用户访问量的<strong>50%，</strong>也就是说排名前100的网站与后面900个网站的独立用户访问  量持平。</li>
</ul>
<p>由于用户访问量有点特殊，一个用户不止访问一个网站，因此各个网站之间的独立用户访问量会有重合，排名越高的网站，重合的用户就会越多。</p>
<h3>最后</h3>
<p>如果你想闯进前100强网站，你至少每月得有2200万独立用户访问，就算是要闯入1000名，你也至少每个月要保证410万的独立用户访问。想想够难吧？</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/windows-7-party-buy-48.html">"Windows 7 Party"开放申请</a> (1.000)</li><li><a href="http://motian.org/post/it-internet-twitter-rongzi-77.html">消息称Twitter最新融资5千万</a> (1.000)</li><li><a href="http://motian.org/post/it-internet-tencent-zhaoping-91.html">腾讯将在高校招聘1000名员工</a> (1.000)</li><li><a href="http://motian.org/post/diary-internet-zhonglewang-104.html">众乐网-可不可使国人众乐乐</a> (1.000)</li><li><a href="http://motian.org/post/it-soft-actuat-kaiyuan-113.html">Actuate：中国大陆公司开源软件使用率达80.3%</a> (1.000)</li><li><a href="http://motian.org/post/it-google-baidu-qubie-173.html">谷歌百度搜索排名权重上一些差异</a> (1.000)</li><li><a href="http://motian.org/post/it-news-nobeian-fangwen-256.html">白名单制度率先被工信部使用</a> (1.000)</li><li><a href="http://motian.org/post/2009-5-os-shijian-355.html">开源中国2009年度五大开源事件</a> (1.000)</li><li><a href="http://motian.org/post/2010-netease-mail-366.html">2010,邮箱大佬网易为什么动作连连</a> (1.000)</li><li><a href="http://motian.org/post/cn-mingyun-minglang-380.html">CN命运已明朗，允许个人持有CN老域名</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/how-handuse-sites-586.html">永久链接</a> |
<a href="http://motian.org/post/how-handuse-sites-586.html#comments">One comment</a> |标签: <a href="http://motian.org/tag/internet" rel="tag">互联网</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/how-handuse-sites-586.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0正式版发布</title>
		<link>http://motian.org/post/wordpress-3-0-572.html</link>
		<comments>http://motian.org/post/wordpress-3-0-572.html#comments</comments>
		<pubDate>Fri, 18 Jun 2010 01:33:07 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/?p=572</guid>
		<description><![CDATA[来自WordPress官方博客的消息，超过218名WordPress爱好者测试，历时半年，经过两个Beta，三个RC，WordPress 3.0正式版发布。 WordPress命名及简介： WordPress 3.0正式版被WordPress官方命名为：Thelonious。是为了纪念美国著名的爵士乐音乐家Thelonious Monk。 Thelonious Monk简介： 1917年Thelonious Monk出生于北卡罗莱纳州的洛基山。五岁时，Monk全家搬到纽约，一年以后开始学习钢琴演奏，十一岁时开始接受正规的钢琴教育。在高中时期他的物理和数学比较出色，有时也在教堂演奏管风琴。三十年代后期，他与一个福音乐团巡演，随后开始在俱乐部演奏，1941年至1942年间，他加入了Kenny Clarke的乐队任钢琴手，在敏顿俱乐部演出。1943年至1945年Monk在Coleman Hawkins的六重奏待过，1946年又加入Dizzy Gillespie的大乐队，1947年他开始领导自己的乐团。Coleman Hawkins为他提供了首次录音的机会，细心的人可以发现在乐曲“Flyin’　Hawk”中有Monk的一段精彩的独奏。然而，直到1947年Blue Note的一组唱片发行才使他成为众所周知的人物。 Thelonious Monk具有一种独一无二的能力，能将精致、令人惊讶的和声转接以及古怪的节奏融进疯克味十足的Riff中，他的作品实际上比其他人的更有穿透力，对爵士乐来讲，这是种最高的赞扬。 WordPress 3.0新功能汇总： 一，启用新的WordPress默认主题，名叫：Twenty Ten。 二，用户方便设置博客整体背景。 三，支持多站点设置。 四，增强WordPress菜单功能。 五，增强WordPress程序功能，支持日志分类和日志标签互导；同时还具有了更多选择的博客导出功能。 六，控制面板后台UI也有改动，整体色调更加明亮。 七，支持主题在线升级。在之前的版本，已经支持插件在线更新，而从WordPress 3.0开始，WordPress主题也可以在线更新了，这样不但可以用户对某个主题的依赖度，也可以使WordPress拥有更多的使用者，当然，也许将来，WordPress后台也会支持付费主题和付费插件的在线购买。 八，强化主题，插件的安装，支持多个插件一键升级。 九，WordPress默认安装界面增强自定义功能，可以自定义博客登陆用户名和密码。 十，最后，还有八大WordPress 3.0特色功能。 WordPress 3.0官方文档： WordPress官方WordPress 3.0文档也已经上线，对一些功能和函数有详细的介绍和解释，WordPress 3.0’s Codex page。 WordPress的未来及WordPress 3.1: 在文章中，WordPress官方还提到了WordPress的未来，虽然WordPress开发团队已经在为WordPress 3.1开始工作，但是他们的工作却比我们想象的要多的多，特别是WordPress 2.9版本超过1千万次的下载量，让WordPress开发团队感受到了更大的压力。在未来，他们有更多的需要梳理，整理，完善。 WordPress 3.0正式版下载： 目前WordPress官方主站（http://www.WordPress.org）已经开始推广WordPress 3.0；WordPress博客后台也已经开始推送WordPress 3.0新版。 WordPress 3.0下载地址：http://wordpress.org/latest.zip（请勿使用迅雷等P2P软件下载。） Wopus已经在制作WordPress 3.0的中文语言包，制作完成之后，将第一时间发布和大家一起分享。 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 [...]]]></description>
			<content:encoded><![CDATA[<p>来自<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>官方博客的消息，超过218名<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>爱好者测试，历时半年，经过两个Beta，三个RC，WordPress 3.0正式版发布。</p>
<h3>WordPress命名及简介：</h3>
<p style="padding-left: 30px;">WordPress 3.0正式版被WordPress官方命名为：Thelonious。是为了纪念美国著名的爵士乐音乐家Thelonious Monk。</p>
<p style="padding-left: 30px;"><strong>Thelonious Monk简介：</strong></p>
<p style="padding-left: 30px;">1917年Thelonious Monk出生于北卡罗莱纳州的洛基山。五岁时，Monk全家搬到纽约，一年以后开始学习钢琴演奏，十一岁时开始接受正规的钢琴教育。在高中时期他的物理和数学比较出色，有时也在教堂演奏管风琴。三十年代后期，他与一个福音乐团巡演，随后开始在俱乐部演奏，1941年至1942年间，他加入了Kenny Clarke的乐队任钢琴手，在敏顿俱乐部演出。1943年至1945年Monk在Coleman Hawkins的六重奏待过，1946年又加入Dizzy Gillespie的大乐队，1947年他开始领导自己的乐团。Coleman Hawkins为他提供了首次录音的机会，细心的人可以发现在乐曲“Flyin’　Hawk”中有Monk的一段精彩的独奏。然而，直到1947年Blue Note的一组唱片发行才使他成为众所周知的人物。 Thelonious Monk具有一种独一无二的能力，能将精致、令人惊讶的和声转接以及古怪的节奏融进疯克味十足的Riff中，他的作品实际上比其他人的更有穿透力，对爵士乐来讲，这是种最高的赞扬。</p>
<h3>WordPress 3.0新功能汇总：</h3>
<p style="padding-left: 30px;">一，启用新的WordPress默认主题，名叫：Twenty Ten。</p>
<p style="padding-left: 30px;">二，用户方便设置博客整体背景。</p>
<p style="padding-left: 30px;">三，支持多站点设置。</p>
<p style="padding-left: 30px;">四，增强WordPress菜单功能。</p>
<p style="padding-left: 30px;">五，增强WordPress程序功能，支持日志分类和日志标签互导；同时还具有了更多选择的博客导出功能。</p>
<p style="padding-left: 30px;">六，控制面板后台UI也有改动，整体色调更加明亮。</p>
<p style="padding-left: 30px;">七，支持主题在线升级。在之前的版本，已经支持插件在线更新，而从WordPress 3.0开始，WordPress主题也可以在线更新了，这样不但可以用户对某个主题的依赖度，也可以使WordPress拥有更多的使用者，当然，也许将来，WordPress后台也会支持付费主题和付费插件的在线购买。</p>
<p style="padding-left: 30px;">八，强化主题，插件的安装，支持多个插件一键升级。</p>
<p style="padding-left: 30px;">九，WordPress默认安装界面增强自定义功能，可以自定义博客登陆用户名和密码。</p>
<p style="padding-left: 30px;">十，最后，还有八大WordPress 3.0特色功能。</p>
<h3>WordPress 3.0官方文档：</h3>
<p style="padding-left: 30px;">WordPress官方WordPress 3.0文档也已经上线，对一些功能和函数有详细的介绍和解释，<a href="http://codex.wordpress.org/Version_3.0" target="_blank">WordPress 3.0’s Codex page</a>。</p>
<h3>WordPress的未来及WordPress 3.1:</h3>
<p style="padding-left: 30px;">在文章中，WordPress官方还提到了WordPress的未来，虽然WordPress开发团队已经在为WordPress 3.1开始工作，但是他们的工作却比我们想象的要多的多，特别是WordPress 2.9版本超过1千万次的下载量，让WordPress开发团队感受到了更大的压力。在未来，他们有更多的需要梳理，整理，完善。</p>
<h3>WordPress 3.0正式版下载：</h3>
<p style="padding-left: 30px;">目前WordPress官方主站（<a href="http://www.wordpress.org/" target="_blank">http://www.WordPress.org</a>）已经开始推广WordPress 3.0；WordPress博客后台也已经开始推送WordPress 3.0新版。</p>
<p style="padding-left: 30px;"><strong>WordPress 3.0下载地址</strong>：<a href="http://wordpress.org/latest.zip">http://wordpress.org/latest.zip</a>（请勿使用迅雷等P2P软件下载。）</p>
<p style="padding-left: 30px;">Wopus已经在制作WordPress 3.0的中文语言包，制作完成之后，将第一时间发布和大家一起分享。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-3-0-572.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-3-0-572.html#comments">9 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-3-0-572.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>WordPress日历插件events-calendar</title>
		<link>http://motian.org/post/wordpress-eventscalendarlarge-570.html</link>
		<comments>http://motian.org/post/wordpress-eventscalendarlarge-570.html#comments</comments>
		<pubDate>Wed, 16 Jun 2010 14:56:28 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/wordpress-eventscalendarlarge-570.html</guid>
		<description><![CDATA[最近在WordPress官方网站上找到了一款日历插件，功能强大，可以像Google的日历一样，于是今天在这分享出来。 Events-Calendar 简介 Events-Calendar 一款功能强大的、可以代替WordPress自带的日历功能的插件。这款插件提供日历显示、并且可添加和删除事务的、易于博主使用的插件。 Events-Calendar 可以用于&#8221;小工具&#8221;，我们可以容易的为侧栏添加小日历，并且显示日历中所添加的事务，并且当我们点击某天时可以在不离开当前页面下显示事务的详细内容。 Events-Calendar 安装 1、上传&#8221;Events-Calendar &#8220;插件到&#8221;/wp-content/plugins/ &#8220;目录下。 2.、启用Events-Calendar 插件。 3、设置Events-Calendar 选项 Events-Calendar 应用： Events-Calendar 有两种显示方式，一种是侧栏显示，另一种是页面显示。 侧栏显示： 只要我们在&#8221;小工具&#8221;中将添加相应的选项即可，如果你的主题不支持小工具，你可以添加如下代码： &#60;?php sidebarEventsCalendar();?&#62;或者 &#60;?php sidebarEventsList($number_of_items);?&#62; 独立页面： 我们可使用页面显示大日历，首先我们&#8221;添加页面&#8221;，添加“[[EventsCalendarLarge]] ”引号中的内容到内容框中。   注：网盘下载的为汉化版的，鉴于本人英语水平，有些地方翻译感觉有点蹩脚，敬请原谅。 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 (1.000)Wordpress插件WP-PostViews使用 (1.000)WordPress数据库优化——插件篇 (1.000)WordPress模板常用函数 (1.000)Wordpress常用函数 (1.000)Wordpress内置模板条件判断函数 (1.000)[整理]wordpress插件制作入门教程 (1.000)十大WordPress手机插件 (1.000)WordPress插件EasyArchives 使用方法 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 4 comments &#124;标签: WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>最近在<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>官方网站上找到了一款日历插件，功能强大，可以像Google的日历一样，于是今天在这分享出来。</p>
<h3>Events-Calendar 简介</h3>
<p>Events-Calendar 一款功能强大的、可以代替<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>自带的日历功能的插件。这款插件提供日历显示、并且可添加和删除事务的、易于博主使用的插件。</p>
<p>Events-Calendar 可以用于&#8221;小工具&#8221;，我们可以容易的为侧栏添加小日历，并且显示日历中所添加的事务，并且当我们点击某天时可以在不离开当前页面下显示事务的详细内容。</p>
<h3>Events-Calendar 安装</h3>
<p>1、上传&#8221;Events-Calendar &#8220;插件到&#8221;/wp-content/plugins/ &#8220;目录下。</p>
<p>2.、启用Events-Calendar 插件。</p>
<p>3、设置Events-Calendar 选项</p>
<h3>Events-Calendar 应用：</h3>
<p>Events-Calendar 有两种显示方式，一种是侧栏显示，另一种是页面显示。</p>
<p><strong>侧栏显示：</strong></p>
<p>只要我们在&#8221;小工具&#8221;中将添加相应的选项即可，如果你的主题不支持小工具，你可以添加如下代码：</p>
<p>&lt;?php sidebarEventsCalendar();?&gt;或者</p>
<p>&lt;?php sidebarEventsList($number_of_items);?&gt;</p>
<p><strong>独立页面：</strong></p>
<p>我们可使用页面显示大日历，首先我们&#8221;添加页面&#8221;，添加“[[EventsCalendarLarge]] ”引号中的内容到内容框中。</p>
<p> <img class="alignnone" title="event-calendar1 " src="http://img.motian.org/images/event-calendar1.png" alt="event-calendar1 " width="550" height="310" /></p>
<p><img class="alignnone" title="event-calendar2" src="http://img.motian.org/images/event-calendar2.png" alt="event-calendar1 " width="550" height="495" /></p>
<p><strong><span style="color: #ff0000;">注：网盘下载的为汉化版的，鉴于本人英语水平，有些地方翻译感觉有点蹩脚，敬请原谅。</span></strong></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-eventscalendarlarge-570.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-eventscalendarlarge-570.html#comments">4 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-eventscalendarlarge-570.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>扩展wordpress的另类用途</title>
		<link>http://motian.org/post/blog-wordpress-extends-542.html</link>
		<comments>http://motian.org/post/blog-wordpress-extends-542.html#comments</comments>
		<pubDate>Sun, 16 May 2010 15:52:56 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/blog-wordpress-extends-542.html</guid>
		<description><![CDATA[WordPress本身只是一款开源的、基于PHP的博客软件，但是由于WordPress的源码开源、结构优良、插件丰富、主题繁多，以至于是WordPress成为世界上最流行的博客程序。《WordPress获得2009年度开源CMS大奖最佳综合表现奖》 没错，WordPress是世界上最好的博客程序，但是如果你单纯的认为WordPress只是一款博客程序的话，那就大错特错。通过WordPress插件和主题，我们可以将这款博客程序扩展成我们需要的、功能不凡的另类用途，例如CMS、链接目录、论坛、WIKI、电子商务、项目管理、微博、SNS、视频、图片网站等等。 其实还有一个令我们欣喜的、WordPress团队正在开发的WordPress 3.0，这个版本的程序在CMS功能得到了大大的加强，尤其为那些想建立多个博客的博主们提供了更好的功能。《WordPress 3.0 五大新特征》《WordPress 3.0 十大看点》 CMS CMS是Content Management System的缩写，意为&#8221;内容管理系统&#8220;，可以让你不需要学习复杂的建站技术，不需要学习太多复杂的HTML语言，你就能够利用CMS构建出一个风格统一功能强大的专业网站。 在这推荐一款插件Filosofo Home-Page Control，以及两篇文章： 《5个简单的步骤把 WordPress 打造成 CMS》 《11款CMS风格的Wordpress主题模板收集》 链接目录 链接目录一个通过分类和子分类进行分类排序的网页链接集。 免费的目录脚本是非常好的，但是他们运行于 WordPress 之外，所以并不是我们想要得。和往常一样，有人已经写出一个能够添加漂亮的链接目录功能到 WordPress的插件：WP Link Directory WP Link Directory是一个WordPress的链接目录插件，让你保持一个链接目录，并允许其他网站管理员申请链接到您的网站。它可以检查链接情况，甚至检查其他网站的Pagerank并接受或拒绝您指定的标准为基础的环节。 其主要特点是： •自动检查由指定的Pagerank网页链接。 •在目录中显示所有站点的PageRank。 •显示每个链接的详细信息。 •提供多种语言。 •当有新的网址提交时，会自动通知管理员。 •可以和你当前使用的主题无缝的结合 论坛 论坛作为一个社区网站是必备的一个功能模块，但是当我们使用discuz、phpwind、phpbb等这些优秀的论坛程序时，不得不佩服他的功能强大，但是我们有没有自问过：&#8221;自己的网站需要这么复杂的程序吗？&#8221;，于是许多优秀的、注重效率、满足基本功能的论坛程序受到小站长的追捧。 WordPress团队开发了一个简单的论坛程序bbpress（有点像百度贴吧）但是我们有时就是需要再简单点的论坛，这时我们可以使用WordPress插件论坛来扩展：Simple:Press (《WordPress 论坛插件：Simple Forum》) WP-Forum（《wordpress插件之WP-Forum：打造一个轻量级的wordpress论坛》） WIKI Wiki系统属于一种人类知识网格系统，我们可以在Web的基础上对Wiki文本进行浏览、创wiki建、更改，而且创建、更改、发布的代价远比HTML文本小；同时Wiki系统还支持面向社群的协作式写作，为协作式写作提供必要帮助；最后，Wiki的写作者自然构成了一个社群，Wiki系统为这个社群提供简单的交流工具。与其它超文本系统相比，Wiki有使用方便及开放的特点，所以Wiki系统可以帮助我们在一个社群内共享某领域的知识。 插件推荐：WP-WIKI 安装WP-WIKI插件后，添加了发布WordPress的页面或文章的&#8221;wiki维基编辑&#8221; 功能，当你编辑文章或者页面的屏幕的主编辑框下面会添加一个新的Wordpress Wiki复选框，你选中它后，那么就意味着任何人可以登陆到你的网站以一个WikiEditor维基编辑人的身份编辑这些特定的页面(测试时好像需要用户名和密码)，如果你点击一个旧的修订链接，他只是展示让你详阅所有旧的修订链接。 电子商务 用WordPress做个电子商务网站，工作之余在网上卖点小东西，呵呵，是不是很不错的想法，如果你有这样的想法，那么，你就去做吧，为你介绍一款强大的插件WP e-Commerce。 WP [...]]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>本身只是一款开源的、基于PHP的博客软件，但是由于<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>的源码开源、结构优良、插件丰富、主题繁多，以至于是WordPress成为世界上最流行的博客程序。《<a href="http://www.cnbeta.com/articles/100044.htm" target="_blank"><span style="color: #2970a6;">WordPress获得2009年度开源CMS大奖最佳综合表现奖</span></a>》</p>
<p>没错，WordPress是世界上最好的博客程序，但是如果你单纯的认为WordPress只是一款博客程序的话，那就大错特错。通过WordPress插件和主题，我们可以将这款博客程序扩展成我们需要的、功能不凡的另类用途，例如CMS、链接目录、论坛、WIKI、电子商务、项目管理、微博、SNS、视频、图片网站等等。</p>
<p>其实还有一个令我们欣喜的、WordPress团队正在开发的WordPress 3.0，这个版本的程序在CMS功能得到了大大的加强，尤其为那些想建立多个博客的博主们提供了更好的功能。《<a title="WordPress 3.0" href="http://www.cnbeta.com/articles/110869.htm" target="_blank">WordPress 3.0 五大新特征</a>》《<a title="wordpress 3.o 十大看点" href="http://liwhite.com/articles/wordpress-3-0十大看点-cms功能进一步增强.html" target="_blank">WordPress 3.0 十大看点</a>》</p>
<h3>CMS</h3>
<p>CMS是Content Management System的缩写，意为&#8221;<a href="http://baike.baidu.com/view/857578.htm" target="_blank">内容管理系统</a>&#8220;，可以让你不需要学习复杂的建站技术，不需要学习太多复杂的HTML语言，你就能够利用CMS构建出一个风格统一功能强大的专业网站。</p>
<p>在这推荐一款插件<a href="http://ilfilosofo.com/blog/home-page-control/" target="_blank"><span style="color: #2970a6;">Filosofo Home-Page Control</span></a>，以及两篇文章：</p>
<p>《<a title="WordPress cms" href="http://fairyfish.net/2007/04/29/wordpress-as-cms-in-five-steps/" target="_blank">5个简单的步骤把 WordPress 打造成 CMS</a>》</p>
<p>《<a title="11款CMS风格的Wordpress主题模板收集" rel="bookmark" href="http://paranimage.com/11-cms-style-wordpress-theme/" target="_blank">11款CMS风格的Wordpress主题模板收集</a>》</p>
<h3>链接目录</h3>
<p>链接目录一个通过分类和子分类进行分类排序的网页链接集。</p>
<p>免费的目录脚本是非常好的，但是他们运行于 WordPress 之外，所以并不是我们想要得。和往常一样，有人已经写出一个能够添加<a class="external" title="WordPress link directory Plugin" href="http://www.seanbluestone.com/wp-link-directory" target="_blank">漂亮的链接目录功能到 WordPres</a>s的插件：<a title="WP Link Directory" href="http://www.seanbluestone.com/wp-link-directory" target="_blank">WP Link Directory</a></p>
<p><a title="WP Link Directory" href="http://www.seanbluestone.com/wp-link-directory" target="_blank">WP Link Directory</a>是一个WordPress的链接目录插件，让你保持一个链接目录，并允许其他网站管理员申请链接到您的网站。它可以检查链接情况，甚至检查其他网站的Pagerank并接受或拒绝您指定的标准为基础的环节。</p>
<p>其主要特点是：</p>
<p>•自动检查由指定的Pagerank网页链接。<br />
•在目录中显示所有站点的PageRank。<br />
•显示每个链接的详细信息。<br />
•提供多种语言。<br />
•当有新的网址提交时，会自动通知管理员。<br />
•可以和你当前使用的主题无缝的结合</p>
<h3>论坛</h3>
<p>论坛作为一个社区网站是必备的一个功能模块，但是当我们使用discuz、phpwind、phpbb等这些优秀的论坛程序时，不得不佩服他的功能强大，但是我们有没有自问过：&#8221;自己的网站需要这么复杂的程序吗？&#8221;，于是许多优秀的、注重效率、满足基本功能的论坛程序受到小站长的追捧。</p>
<p>WordPress团队开发了一个简单的论坛程序<a title="bbress" href="http://bbpress.org/" target="_blank">bbpress</a>（有点像百度贴吧）但是我们有时就是需要再简单点的论坛，这时我们可以使用WordPress插件论坛来扩展：<a href="http://simplepressforum.com/" target="_blank"><span style="color: #2970a6;">Simple:Press</span></a> (《<a title="simple forum" href="http://fairyfish.net/2007/05/23/simple-forum/" target="_blank">WordPress 论坛插件：Simple Forum</a>》)</p>
<p><a title="wp-forum" href="http://www.fahlstad.se/wp-plugins/wp-forum/" target="_blank">WP-Forum</a>（《<a title="Permanent Link to wordpress插件之WP-Forum：打造一个轻量级的wordpress论坛" rel="bookmark" href="http://blogunion.org/wordpress/wordpress-plugins/wp-forum.html">wordpress插件之WP-Forum：打造一个轻量级的wordpress论坛</a>》）</p>
<h3>WIKI</h3>
<p>Wiki系统属于一种人类知识网格系统，我们可以在Web的基础上对Wiki文本进行浏览、创wiki建、更改，而且创建、更改、发布的代价远比HTML文本小；同时Wiki系统还支持面向社群的协作式写作，为协作式写作提供必要帮助；最后，Wiki的写作者自然构成了一个社群，Wiki系统为这个社群提供简单的交流工具。与其它超文本系统相比，Wiki有使用方便及开放的特点，所以Wiki系统可以帮助我们在一个社群内共享某领域的知识。</p>
<p>插件推荐：<a title="wp-wiki" href="http://wp-wiki.org/" target="_blank">WP-WIKI</a></p>
<p>安装WP-WIKI插件后，添加了发布WordPress的页面或文章的&#8221;wiki维基编辑&#8221; 功能，当你编辑文章或者页面的屏幕的主编辑框下面会添加一个新的Wordpress Wiki复选框，你选中它后，那么就意味着任何人可以登陆到你的网站以一个WikiEditor维基编辑人的身份编辑这些特定的页面(测试时好像需要用户名和密码)，如果你点击一个旧的修订链接，他只是展示让你详阅所有旧的修订链接。</p>
<h3>电子商务</h3>
<p>用WordPress做个电子商务网站，工作之余在网上卖点小东西，呵呵，是不是很不错的想法，如果你有这样的想法，那么，你就去做吧，为你介绍一款强大的插件<a title="wp-ecommerce" href="http://www.instinct.co.nz/" target="_blank">WP e-Commerce</a>。</p>
<p>WP e-Commerce是一款电子商务购物车插件程序，它不仅操作方便并且功能强大，可以独立页面显示也可以嵌入到侧边栏中，非常适合在线销售你的服务和产品。此外它还内置多种包括Paypal等在内的支付网关，让收款和资金周转更加快捷有效！</p>
<ul class="noindent">
<li>支付网关：让你轻松接受在线支付</li>
<li>简化结算：让客户有更好的购物体验</li>
<li>社会化网络：更轻松的推荐你的产品</li>
<li>紧凑的WordPress整合：安装方便</li>
<li>更多的点击和更好的销售：让更多的人了解你的新产品</li>
</ul>
<h3>项目管理</h3>
<p>在WordPress上轻松的创建并展示你的项目，跟踪项目和任务的进度。</p>
<p>推荐插件：<a href="http://wordpress.org/extend/plugins/wp-project/" target="_blank"><span style="color: #2970a6;">WP-Project</span></a>、<a title="wp-advanced-trac" href="http://wordpress.org/extend/plugins/wp-advanced-trac/" target="_blank">WP-Advanced-Trac</a></p>
<h3>微博</h3>
<p>现在微博很火，就像当年的博客进入中国一样。但是中国微博异于twitter，在中国微博：娱乐、资讯，而twitter上是：资讯、娱乐。</p>
<p>在这微博混战的年代、在这追求新鲜与个性的时代，我注册了几乎所有能注册的微博，但是真正使用的也就是几个。</p>
<p>在这推荐一个非常强大的WordPress主题：<a title="p2主题" href="http://wordpress.org/extend/themes/p2" target="_blank">P2主题</a>，这是一款专门的微博主题。</p>
<p>《<a title="P2 漠天" href="http://motian.org/post/wordpress-p2-weibo-431.html" target="_blank">P2主题打造真正的多用户微博</a>》</p>
<h3>SNS</h3>
<p>又是一个当下非常火的网络服务，但是微博来临的时候，SNS却黯然失色啦，只能说互联网的兴奋点只能是新生事物</p>
<p>推荐插件：<a href="http://buddypress.org/" target="_blank"><span style="color: #2970a6;">BuddyPress</span></a>，与WordPress师出同门，质量还是可以保证的。BuddyPress主要包含了个人信息、博客、朋友圈、小组、微博客、状态更新和相册等功能</p>
<h3>视频网站</h3>
<p>WordPress通过在2.9版本中增强了视频嵌入功能，尤其是对国外网站视频的插入更是智能化。</p>
<p>如果我们想通过WordPress建立一个视频网站的话，我想没有比采用 <a href="http://www.press75.com/demos/vodpod-theme/" target="_blank">VodPod</a>主题更好了。《<a href="http://www.wopus.org/wordpress-deepin/tech/1783.html" target="_blank">WordPress视频主题VodPod使用教程</a>》</p>
<h3>图片网站</h3>
<p>如果是单纯的添加一个相册的话，我想采用<a href="http://alexrabe.de/wordpress-plugins/nextgen-gallery/" target="_blank">NextGEN Gallery</a>插件最好不过啦《<a title="21款Wordpress图片相册插件/ Gallery Plugins" rel="bookmark" href="http://paranimage.com/wordpress-plugin-for-picture-album/">21款Wordpress图片相册插件/ Gallery Plugins</a>》。</p>
<p>但是如果是建立一个图片网站的话，那么选择一款好的图片主题更为重要：《<a title="Permanent Link to 推荐8款wordpress图片模板" rel="bookmark" href="http://blogunion.org/wordpress/wordpress-themes/8-photoblog-themes.html">推荐8款wordpress图片模板</a>》。</p>
<p>另外在推荐两款插件：<a class="external" title="Photoblog WoordPress Plugin" href="http://johannes.jarolim.com/blog/wordpress/yet-another-photoblog/" target="_blank">Yet another photoblog</a> 和 <a class="external" title="Photoblog WoordPress Plugin" href="http://www.whoismanu.com/blog/2007/01/photoq-wordpress-plugin/" target="_blank">PhotoQ WordPress Photoblog Plugin</a></p>
<p><strong>注：在整理这篇文章难免会出现错误，请读者给以校正。</strong></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-extends-542.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-extends-542.html#comments">12 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-extends-542.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>WordPress投票插件wp-polls使用教程</title>
		<link>http://motian.org/post/blog-wordpress-wp-polls-477.html</link>
		<comments>http://motian.org/post/blog-wordpress-wp-polls-477.html#comments</comments>
		<pubDate>Sat, 01 May 2010 14:05:36 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/blog-wordpress-wp-polls-477.html</guid>
		<description><![CDATA[我想作为博主一定为增强与访客的互动会大动脑筋，往往会安装一些互动性的插件，来提高与访客的交流。在这我推荐一款投票插件&#8211;wp-polls。这款插件使用简单、功能强大、可使用性强。 在博客中，我们通过使用wp-polls插件可以设置一些关于本博客意见统计、关联文章的内容投票、社会热点调查。通过简单的问题选项设置，我们可以很容易的掌握一些访客的观点。 wp-polls插件简介： WP-Polls投票插件功能非常的强大，使用这款插件，你可以在WordPress BLog中添加一个AJAX的调查系统，这样就可以在文章的某个页面或者文章中包含一个投票，WP-Polls也可以定制模板和CSS样式，并且有很多选项可以保证它的正常运行，现在网上也没有非常好用的汉化版，所以笔者介绍的是英文版，待有好用的汉化版笔者再进行介绍。 wp-polls插件安装： 下载WP-Polls插件，将压缩包解压后，把其中的polls文件夹上传到wp-content/plugins/目录下。 登录WordPress管理后台，点击&#8221;Plugins&#8221;找到上传的插件，激活WP-Polls和WP-Polls Widget（可以在当前的模板中显示，在Widgets中进行添加）。 激活插件后，这时页面的左下方，会出现&#8221;Polls&#8221;版块，点击&#8221;Polls&#8221;图标进行相关的设置， wp-polls插件设置 1、Manage Polls（管理投票）:点击Manage Polls链接，这有所有的投票状态以及投票日志、再编辑、删除。 2、Add Polls（添加投票）:Add Polls添加投票非常的简单，在Poll Quesition下的Question里输入需要投票的问题，然后在Poll Answers中添加投票的选项，添加好后，设置Poll StarT/End Date的时间，设置好后，然后点击Add Poll，就OK了。 3、Poll Optins（投票选项）:这个页面主要是对投票的相关样式进行设定，这里不一一说明，需要注意的是，在Allow To Vote设置投票的可用性，即允许那些人可以进行投票，有三项，你可以根据自己的情况进行设置： Guests Only（仅访客）,Registered Users Only（仅注册用户）,Registered Users And Guests（两者皆可）,另外，你需要激活当前正在进行的投票，否则，前台无法显示， 4、Poll Templates(投票模板) :这个一般不需要进行修改，如果你是一个CSS高手或PHP高手，那么，你可以对投票的一些样式进行修改。不过你可以对模板进行简单的汉化。 5、Unistall WP-Polls：卸载投票卸载投票插件点击此链接，即可进行卸载。 wp-polls插件使用： （这也是本文要重点介绍的，因为我在使用这款插件的过程中发现，关于插件简介、插件安装和插件的设置的内容有很多，但是关于使用时却内容缺乏。） 其中最简单的使用是在侧栏中使用：控制面板-&#62;外观-&#62;小工具-&#62;polls。 这样使用虽然比较傻瓜，但是相对于直接调用代码来说设置受限。 （1）、侧栏使用投票（代码） 1、打开wp-content/themes/&#60;YOUR THEME NAME&#62;/sidebar.php 2、在合适的位置添加如下代码： &#60;?php if (function_exists(&#8216;vote_poll&#8217;) &#38;&#38; !in_pollarchive()): ?&#62; &#60;li&#62; &#60;h2&#62;投票&#60;/h2&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>我想作为博主一定为增强与访客的互动会大动脑筋，往往会安装一些互动性的插件，来提高与访客的交流。在这我推荐一款投票插件&#8211;wp-polls。这款插件使用简单、功能强大、可使用性强。</p>
<p>在博客中，我们通过使用wp-polls插件可以设置一些关于本博客意见统计、关联文章的内容投票、社会热点调查。通过简单的问题选项设置，我们可以很容易的掌握一些访客的观点。</p>
<h3>wp-polls插件简介：</h3>
<p>WP-Polls投票插件功能非常的强大，使用这款插件，你可以在<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> BLog中添加一个AJAX的调查系统，这样就可以在文章的某个页面或者文章中包含一个投票，WP-Polls也可以定制模板和CSS样式，并且有很多选项可以保证它的正常运行，现在网上也没有非常好用的汉化版，所以笔者介绍的是英文版，待有好用的汉化版笔者再进行介绍。<br />
wp-polls插件安装：</p>
<ol>
<li><a href="http://d.wordpress.la:86/plugins/wp-polls.2.40.zip">下载WP-Polls插件</a>，将压缩包解压后，把其中的polls文件夹上传到wp-content/plugins/目录下。</li>
<li>登录<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>管理后台，点击&#8221;Plugins&#8221;找到上传的插件，激活WP-Polls和WP-Polls Widget（可以在当前的模板中显示，在Widgets中进行添加）。</li>
<li>激活插件后，这时页面的左下方，会出现&#8221;Polls&#8221;版块，点击&#8221;Polls&#8221;图标进行相关的设置，</li>
</ol>
<h3>wp-polls插件设置</h3>
<p>1、Manage Polls（管理投票）:点击Manage Polls链接，这有所有的投票状态以及投票日志、再编辑、删除。</p>
<p>2、Add Polls（添加投票）:Add Polls添加投票非常的简单，在Poll Quesition下的Question里输入需要投票的问题，然后在Poll Answers中添加投票的选项，添加好后，设置Poll StarT/End Date的时间，设置好后，然后点击Add Poll，就OK了。</p>
<p>3、Poll Optins（投票选项）:这个页面主要是对投票的相关样式进行设定，这里不一一说明，需要注意的是，在Allow To Vote设置投票的可用性，即允许那些人可以进行投票，有三项，你可以根据自己的情况进行设置： Guests Only（仅访客）,Registered Users Only（仅注册用户）,Registered Users And Guests（两者皆可）,另外，你需要激活当前正在进行的投票，否则，前台无法显示，</p>
<p>4、Poll Templates(投票模板) :这个一般不需要进行修改，如果你是一个CSS高手或PHP高手，那么，你可以对投票的一些样式进行修改。不过你可以对模板进行简单的汉化。</p>
<p>5、Unistall WP-Polls：卸载投票卸载投票插件点击此链接，即可进行卸载。</p>
<h3>wp-polls插件使用：</h3>
<p>（这也是本文要重点介绍的，因为我在使用这款插件的过程中发现，关于插件简介、插件安装和插件的设置的内容有很多，但是关于使用时却内容缺乏。）</p>
<p>其中最简单的使用是在侧栏中使用：控制面板-&gt;外观-&gt;小工具-&gt;polls。</p>
<p>这样使用虽然比较傻瓜，但是相对于直接调用代码来说设置受限。</p>
<p><strong>（1）、侧栏使用投票（代码）</strong></p>
<p>1、打开wp-content/themes/&lt;YOUR THEME NAME&gt;/sidebar.php</p>
<p>2、在合适的位置添加如下代码：</p>
<blockquote><p>&lt;?php if (function_exists(&#8216;vote_poll&#8217;) &amp;&amp; !in_pollarchive()): ?&gt;<br />
&lt;li&gt;<br />
&lt;h2&gt;投票&lt;/h2&gt;<br />
&lt;ul&gt;<br />
&lt;li&gt;&lt;?php get_poll();?&gt;&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;?php display_polls_archive_link(); ?&gt;<br />
&lt;/li&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>&lt;?php get_poll(<strong>2</strong>); ?&gt; ：去显示ID为2的投票；</p>
<p>&lt;?php get_poll(<strong>2</strong>); ?&gt; ：随机显示投票；</p>
<p><strong>（2）、投票归档</strong></p>
<p><img class="alignnone" title="投票归档" src="http://img.motian.org/images/poll.png" alt="" width="271" height="144" /></p>
<p><strong>（3）、在文章中嵌入投票</strong></p>
<p> <img class="alignnone" title="嵌入投票" src="http://img.motian.org/images/poll2.png" alt="" width="333" height="104" /></p>
<p><strong>（4）、投票统计</strong></p>
<p>1、显示所有的投票选项</p>
<blockquote><p>&lt;?php if (function_exists(&#8216;get_pollquestions&#8217;)): ?&gt;<br />
&lt;?php get_pollquestions(); ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>2、显示所有的投票结果</p>
<blockquote><p>&lt;?php if (function_exists(&#8216;get_pollanswers&#8217;)): ?&gt;<br />
&lt;?php get_pollanswers(); ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>3、显示所有投票</p>
<blockquote><p>&lt;?php if (function_exists(&#8216;get_pollvotes&#8217;)): ?&gt;<br />
&lt;?php get_pollvotes(); ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<p>4、显示所有参与投票</p>
<blockquote><p>&lt;?php if (function_exists(&#8216;get_pollvoters&#8217;)): ?&gt;<br />
&lt;?php get_pollvoters(); ?&gt;<br />
&lt;?php endif; ?&gt;</p></blockquote>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-wp-polls-477.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-wp-polls-477.html#comments">8 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-wp-polls-477.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress自动实现摘要</title>
		<link>http://motian.org/post/blog-wordpress-except-469.html</link>
		<comments>http://motian.org/post/blog-wordpress-except-469.html#comments</comments>
		<pubDate>Thu, 29 Apr 2010 15:55:45 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/?p=469</guid>
		<description><![CDATA[WordPress在不使用任何的插件的情况下是能在首页实现摘要显示的，但她实现起来不是那么方便，或要自己做文章的中间加&#60;!–more–&#62;；或要修改主题中的标签。总之是不太方便吧。要怎样才能让WordPress自动实现在首页等位置（除了单篇文章的其他页面）只显示指定字节数的摘要，而不用操作其他不关文章的事呢？下面的代码可以帮你实现。 $size = 500;    // 500是显示的字节数，可按照自己的要求修改 $more_link_text = &#8216;more&#8230;&#8217;;    // 显示在摘要后面的提示 add_action(&#8216;the_content&#8217;, &#8216;control_content_size&#8217;); function control_content_size($content) {     global $size, $more_link_text;     if (is_singular()) return $content;     $content = strip_tags($content);     $content = cut_str($content, $size);     $content = &#8216;&#60;p&#62;&#8217; . $content . &#8216;&#60;/p&#62;&#60;p&#62;&#60;a href=&#8221;&#8216; . get_permalink() . &#8220;\&#8221; class=\&#8221;more-link\&#8221;&#62;$more_link_text&#60;/a&#62;&#60;/p&#62;&#8221;;     return $content; } /** * cut_str用于截断包含中文（或其他多字节？）的utf8编码的字符串 [...]]]></description>
			<content:encoded><![CDATA[<p><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>在不使用任何的插件的情况下是能在首页实现摘要显示的，但她实现起来不是那么方便，或要自己做文章的中间加<em>&lt;!–more–&gt;</em>；或要修改主题中的标签。总之是不太方便吧。要怎样才能让<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>自动实现在首页等位置（除了单篇文章的其他页面）只显示指定字节数的摘要，而不用操作其他不关文章的事呢？下面的代码可以帮你实现。</p>
<blockquote><p>$size = 500;    // 500是显示的字节数，可按照自己的要求修改<br />
$more_link_text = &#8216;more&#8230;&#8217;;    // 显示在摘要后面的提示</p>
<p>add_action(&#8216;the_content&#8217;, &#8216;control_content_size&#8217;);</p>
<p>function control_content_size($content) {<br />
    global $size, $more_link_text;<br />
    if (is_singular()) return $content;<br />
    $content = strip_tags($content);<br />
    $content = cut_str($content, $size);<br />
    $content = &#8216;&lt;p&gt;&#8217; . $content . &#8216;&lt;/p&gt;&lt;p&gt;&lt;a href=&#8221;&#8216; . get_permalink() . &#8220;\&#8221; class=\&#8221;more-link\&#8221;&gt;$more_link_text&lt;/a&gt;&lt;/p&gt;&#8221;;<br />
    return $content;<br />
}</p>
<p>/**<br />
* cut_str用于截断包含中文（或其他多字节？）的utf8编码的字符串<br />
* @param string $str utf8编码的字符串<br />
* @param int $len 需要截取的长度（单位是字节）<br />
*/<br />
function cut_str($str, $len) {<br />
    if (!isset($str[$len])) {<br />
        // 判断字符串长度是否已经达到需要截取的长度<br />
        // 未达到时，直接输出原字符串<br />
    } else {<br />
        if (seems_utf8($str[$len-1])) // 判断截断字符串的最后一个字符是否是utf8编码的<br />
            $str = substr($str, 0, $len); // 如果是utf8编码的，直接截断输出<br />
        else { // 如果不是utf8编码的，因为utf8编码的中文是三个字节进行保存的，则判断该字符和周围字符组成的字符串是否符合utf8编码<br />
            if(seems_utf8($str[$len-3].$str[$len-2].$str[$len-1]))<br />
                $str = substr($str, 0, $len-3) . $str[$len-3] . $str[$len-2] . $str[$len-1];</p>
<p>            elseif(seems_utf8($str[$len-2].$str[$len-1].$str[$len]))<br />
                $str = substr($str, 0, $len-2) . $str[$len-2].$str[$len-1].$str[$len];</p>
<p>            elseif(seems_utf8($str[$len-1].$str[$len].$str[$len+1]))<br />
                $str = substr($str, 0, $len-1) . $str[$len-1].$str[$len].$str[$len+1];</p>
<p>            else // 这个else应该不用也是可以的<br />
                $str = substr($str, 0, $len);<br />
        }<br />
    }<br />
    return $str;<br />
}</p></blockquote>
<h3>代码的作用：</h3>
<ol>
<li>首先判断是否在单篇文章页面（如果是，直接返回内容，下面的操作省略）；</li>
<li>然后把文章和<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>自动添加的HTML标签过滤掉（如果不进行这步，可以想象页面将会大乱。）；</li>
<li>再然后截取内容的前面n个字节;</li>
<li>最后修饰一下，返回处理过的文章内容（怎样修饰，可以自己手动改改）。</li>
</ol>
<h3>使用方法：</h3>
<ol>
<li>按照自己的要求修改代码中的$size和$more_link_text</li>
<li>将修改后的代码加入到主题的functions.php中</li>
</ol>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-except-469.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-except-469.html#comments">5 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-except-469.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>自定义短网址插件</title>
		<link>http://motian.org/post/blog-wordpress-short-url-464.html</link>
		<comments>http://motian.org/post/blog-wordpress-short-url-464.html#comments</comments>
		<pubDate>Tue, 27 Apr 2010 15:43:09 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/blog-wordpress-short-url-464.html</guid>
		<description><![CDATA[当twitter流行的时候，随之也带动了互联网中的一个新的网络服务的诞生，并且随之火了&#8211;短网址（Short URL）。我想作者在提供短网址服务时的想法很简单，就是为了在微博上发表消息时尽量的不让网址占用大量的字数，这样提供的信息量就大大减少。不过，随之web 2.0中的分享功能的应用，尤其是在SNS中的应用，使得短网址服务如雨后春笋般的繁荣起来。 其实，现在看看短网址，还是感觉不错的。所以，今天我提供一个应用在WordPress上的短网址，如果说有什么用的话，我觉的牵强的说可以利用短网址可以缩短文章中的网址，使文章感觉整洁；但是，就实用来说，真的是没什么用，其实就是折腾。O(∩_∩)O哈哈~ 对于WordPress中的短网址插件，其实不少，但是各种插件各有特色。那我是怎么找到这款插件的呢？其实是在走点路博客看到博主利用uLShort这款程序搭建了一个短网址服务&#8211;AA.CX短网址。感觉挺不错的，于是我也弄了一个短网址网站&#8211;漠天短网址。其实我在弄这个短网址时就在想如何将它应用在博客中，手动&#8211;复制一个网址，然后缩短，最后粘贴到文章中，是不是太费劲了，于是就激发了我如何实现文章内容发表过程中网址自动缩短的方法。 通过在Google中百度；首先，我发现的还是走点路博客中的博主写的一篇文章《AA.CX 短网址 WordPress 插件》，这里不仅提供了插件而且还提供了代码，但是注意，这个插件只是实现的博客页面网址的缩短，没有我要求中的页面内容中出现的所有网址的缩短。 于是，我有在百度里Google；终于找到了今天介绍这款插件&#8211;sm00sh。作者在插件简介中提到： A plugin that converts all URLs in a post or comment into shorten URLs using the [sm00sh service](http://smsh.me). 也就是说这款插件可以对文章及评论中出现的所有网址进行缩短，是不是很强大。但是这款插件也有一个缺点：那就是对于已发表的文章中涉及的网址不会缩短。 Notice that activating it does not automatically sm00sh old posts and comments and deactivating it does not un-sm00sh already sm00sh&#8217;ed posts and comments. 这款插件使用也非常简单： 一、下载插件：sm00sh 二、上传sm00sh插件 [...]]]></description>
			<content:encoded><![CDATA[<p>当twitter流行的时候，随之也带动了互联网中的一个新的网络服务的诞生，并且随之火了&#8211;短网址（Short URL）。我想作者在提供短网址服务时的想法很简单，就是为了在微博上发表消息时尽量的不让网址占用大量的字数，这样提供的信息量就大大减少。不过，随之web 2.0中的分享功能的应用，尤其是在SNS中的应用，使得短网址服务如雨后春笋般的繁荣起来。</p>
<p>其实，现在看看短网址，还是感觉不错的。所以，今天我提供一个应用在<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>上的短网址，如果说有什么用的话，我觉的牵强的说可以利用短网址可以缩短文章中的网址，使文章感觉整洁；但是，就实用来说，真的是没什么用，其实就是折腾。O(∩_∩)O哈哈~</p>
<p>对于<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>中的短网址插件，其实不少，但是各种插件各有特色。那我是怎么找到这款插件的呢？其实是在<a title="走点路博客" href="http://zou.lu/" target="_blank">走点路博客</a>看到博主利用<a title="urlshort/" href="http://mavrev.org/urlshort/" target="_blank"><span style="color: #000000;">uLShort</span></a>这款程序搭建了一个短网址服务&#8211;<a title="AA.CX短网址" href="http://aa.cx/" target="_blank">AA.CX短网址</a>。感觉挺不错的，于是我也弄了一个短网址网站&#8211;<a title="漠天短网址" href="http://u.motian.org/" target="_blank">漠天短网址</a>。其实我在弄这个短网址时就在想如何将它应用在博客中，手动&#8211;复制一个网址，然后缩短，最后粘贴到文章中，是不是太费劲了，于是就激发了我如何实现文章内容发表过程中网址自动缩短的方法。</p>
<p>通过在Google中百度；首先，我发现的还是<a title="走点路博客" href="http://zou.lu/" target="_blank">走点路博客</a>中的博主写的一篇文章《<a title="AA.CX 短网址 WordPress 插件" href="http://zou.lu/aacx-wordpress-plugin/" target="_blank"><span style="color: #000000;">AA.CX 短网址 WordPress 插件</span></a>》，这里不仅提供了插件而且还提供了代码，但是注意，这个插件只是实现的博客页面网址的缩短，没有我要求中的页面内容中出现的所有网址的缩短。</p>
<p>于是，我有在百度里Google；终于找到了今天介绍这款插件&#8211;<a title="http://smsh.me/ 短网址" href="http://smsh.me/" target="_blank">sm00sh</a>。作者在插件简介中提到：</p>
<blockquote><p>A plugin that converts all URLs in a post or comment into shorten URLs using the [sm00sh service](<a href="http://smsh.me">http://smsh.me</a>).</p></blockquote>
<p>也就是说这款插件可以对文章及评论中出现的所有网址进行缩短，是不是很强大。但是这款插件也有一个缺点：那就是对于已发表的文章中涉及的网址不会缩短。</p>
<blockquote><p>Notice that activating it does not automatically sm00sh old posts and comments and deactivating it does not un-sm00sh already sm00sh&#8217;ed posts and comments.</p></blockquote>
<p>这款插件使用也非常简单：</p>
<p>一、下载插件：<a title="sm00sh 短网址" href="http://wordpress.org/extend/plugins/sm00sh/" target="_blank">sm00sh</a></p>
<p>二、上传sm00sh插件</p>
<p>三、在博客后台激活插件。</p>
<p>使用就是这么简单。O(∩_∩)O哈哈~</p>
<p>不够还没有完，因为我在文章标题中提到&#8221;自定义&#8221;，我提到的&#8221;自定义&#8221;是啥意思呢？那如果自定义网址呢？</p>
<p>我说的自定义就是将插件修改成我们喜欢的短网址服务或者像我自己的短网址<a href="http://u.motian.org">http://u.motian.org</a>，而这是我所追求的。</p>
<p>通过研究这款插件，我发现修该非常简单，只要是修改一处：将sm00sh的API修改成自己的即可。</p>
<p>打开插件里的smoosh文件，找到第73行的如下代码：</p>
<blockquote><p>$sm00sher = &#8216;http://smsh.me/?api=xml&amp;url=&#8217;.$url;</p></blockquote>
<p>将<a href="http://smsh.me/?api=xml&amp;url">http://smsh.me/?api=xml&amp;url</a>=修改成自己的即可。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-short-url-464.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-short-url-464.html#comments">3 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-short-url-464.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>为博客开发了一个新的主题</title>
		<link>http://motian.org/post/blog-theme-afanti-450.html</link>
		<comments>http://motian.org/post/blog-theme-afanti-450.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 14:44:17 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[博客动态]]></category>

		<guid isPermaLink="false">http://motian.org/post/blog-theme-afanti-450.html</guid>
		<description><![CDATA[自从使用上WordPress后，我就感觉WordPress真是太完美了，以至于深深地吸引着我。关于WordPress上有大量的免费的主题，但是我想让自己的主题与众不同。开始时，自己对WordPress主题制作并不是太了解，于是在网上疯狂的寻找主题，所以我的第一个使用的主题就诞生了&#8211;office主题（《分享一下我的主题，需要的随便拿》），但是后来经过不断的折腾，我慢慢的了解了WordPress的主体结构，于是在inove主题的基础之上我做了简单的修改后，一个新的、不同的主题就诞生了，但是细心地读者还是会看出这是一个inove主题的修改版。所以我一直想做一个属于自己的。 为了能够制作出主题，我仔细的学习了《WordPress主题制作教程》（我爱水煮鱼整理）（我将PDF文件打印后仔细学习奥），随着对WordPress有了进一步的了解后，以及我的主题概念在我的脑海中成型，我决定开始动手。 本主题本着&#8221;整体简单、页面细腻&#8221;，整体上我使用了象征专业的蓝色调，整个主题的模块众多，目的是吸引读者，可以为读者提供更多可读的、有用的内容。 本主题在页面的头部、侧栏、内容页添加的模块比较多，其目的在于在读者浏览本博客时，希望可以给读者展示本博客更多的优秀的内容，增加读者的粘度以及对读者的吸引力。 同时，为了鼓励博友对本博客积极的留言，特将最新留言放在了侧边栏的第二个位置，同时，我还考虑添加读者秀、展示第一个留言者的一篇文章、在摘要页显示留言的前两名等等一些列展示博友的机会。 本主题在制作过程中参考了CnBeta、WPINK_P、HotNewspro主题。从中吸取了三 者的优点。 当然，这款主题还不是完美，有几个地方需要改进，还有就是主题需要进一步的优化代码及图片。 虽然我在本机上将这款主题测试了无数次，但是我想BUG还是有的，所以希望广大的读者在发现BUG时，请在留言板报告错误。我首先在这谢谢你对本博客的支持。 随后，我想将我以前所用的主题开源，供广大的博友使用。 扩展阅读博客突破500访问量—阶段总结 (1.000)本博客加入瑞星“云安全网站联盟” (1.000) 开博两个月，小总结一下。 (1.000)本博客战略性调整 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 10 comments &#124;标签: 博客动态 收藏分享本文：]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="afanti 漠天博客主题" src="http://img.motian.org/images/afanticone.jpg" alt="afanti 漠天博客主题" width="500" height="410" /></p>
<p>自从使用上WordPress后，我就感觉WordPress真是太完美了，以至于深深地吸引着我。关于WordPress上有大量的免费的主题，但是我想让自己的主题与众不同。开始时，自己对WordPress主题制作并不是太了解，于是在网上疯狂的寻找主题，所以我的第一个使用的主题就诞生了&#8211;office主题（<a title="漠天主题" href="http://motian.org/post/blog-wordpress-officetheme-128.html" target="_blank">《分享一下我的主题，需要的随便拿》</a>），但是后来经过不断的折腾，我慢慢的了解了WordPress的主体结构，于是在inove主题的基础之上我做了简单的修改后，一个新的、不同的主题就诞生了，但是细心地读者还是会看出这是一个inove主题的修改版。所以我一直想做一个属于自己的。</p>
<p>为了能够制作出主题，我仔细的学习了<a title="wordpress 主题制作" href="http://fairyfish.net/2007/06/04/so-you-want-to-create-wordpress-themes-huh/" target="_blank">《WordPress主题制作教程》</a>（我爱水煮鱼整理）（我将PDF文件打印后仔细学习奥），随着对WordPress有了进一步的了解后，以及我的主题概念在我的脑海中成型，我决定开始动手。</p>
<p>本主题本着&#8221;整体简单、页面细腻&#8221;，整体上我使用了象征专业的蓝色调，整个主题的模块众多，目的是吸引读者，可以为读者提供更多可读的、有用的内容。</p>
<p>本主题在页面的头部、侧栏、内容页添加的模块比较多，其目的在于在读者浏览本博客时，希望可以给读者展示本博客更多的优秀的内容，增加读者的粘度以及对读者的吸引力。</p>
<p>同时，为了鼓励博友对本博客积极的留言，特将最新留言放在了侧边栏的第二个位置，同时，我还考虑添加读者秀、展示第一个留言者的一篇文章、在摘要页显示留言的前两名等等一些列展示博友的机会。</p>
<p>本主题在制作过程中参考了CnBeta、WPINK_P、HotNewspro主题。从中吸取了三</p>
<p>者的优点。</p>
<p>当然，这款主题还不是完美，有几个地方需要改进，还有就是主题需要进一步的优化代码及图片。</p>
<p>虽然我在本机上将这款主题测试了无数次，但是我想BUG还是有的，所以希望广大的读者在发现BUG时，请在<a title="漠天留言板" href="http://motian.org/guestbook" target="_blank">留言板</a>报告错误。我首先在这谢谢你对本博客的支持。</p>
<p><img class="alignnone" title="AFT-inove" src="http://img.motian.org/images/screenshot.png" alt="漠天博客主题" width="300" height="225" /></p>
<p>随后，我想将我以前所用的主题开源，供广大的博友使用。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/blog-deke-ip500-2-109.html">博客突破500访问量—阶段总结</a> (1.000)</li><li><a href="http://motian.org/post/diary-deke-yunanquanlianm-124.html">本博客加入瑞星“云安全网站联盟”</a> (1.000)</li><li><a href="http://motian.org/post/blog-deke-lianggeyue-zongjie-163.html"> 开博两个月，小总结一下。</a> (1.000)</li><li><a href="http://motian.org/post/blog-tiaozheng-285.html">本博客战略性调整</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-theme-afanti-450.html">永久链接</a> |
<a href="http://motian.org/post/blog-theme-afanti-450.html#comments">10 comments</a> |标签: <a href="http://motian.org/tag/blognews" rel="tag">博客动态</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-theme-afanti-450.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>展示给定时间段内浏览次数最多的文章</title>
		<link>http://motian.org/post/wordpress-wp-postviews-441.html</link>
		<comments>http://motian.org/post/wordpress-wp-postviews-441.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 12:26:34 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/%e7%bb%9f%e8%ae%a1%e7%bb%99%e5%ae%9a%e6%97%b6%e9%97%b4%e6%ae%b5%e5%86%85%e6%b5%8f%e8%a7%88%e6%ac%a1%e6%95%b0%e6%9c%80%e5%a4%9a%e7%9a%84%e6%96%87%e7%ab%a0-441.html</guid>
		<description><![CDATA[首先，发布一个好消息：WordPress 3.0 beta 1已经发布了。 下载地址：WordPress 3.0 (终于在我的期待中发布了3.0，但是我不会急着去升级的。等正式版出来后，我在升级，到时候可以建好多个博客，O(∩_∩)O哈哈~。 切入今天的话题，我想只要是用过WordPress的博主，一定知道post-views 这款插件吧，他可以实现文章浏览量的统计，而且通过调用函数，还可以实现博客浏览量最多和某个分类下浏览最多展示，但是我想实现这样一个功能，就是对给定的一个时间段内的最多浏览的文章进行输出。其实这个功能在早期的版本上是有的，但是后来不知作者怎么想的，有去掉了这个功能，今天我有给它加上这个功能。 其实操作过程很简单，只要是在wp-postviews.php（这是wp-postviews文件下的一个文本，你通过在plugins里可以找到）添加一个函数即可。我就简单的写吧！ 在251行插入如下的函数（这是你不知道在那插入的话，可以选择这个位置；）。 函数体： [php] // Function: Display Most Viewed Page/Post in a Period of time function get_timespan_most_viewed($mode = &#8221;, $limit = 10, $chars=0,$display=true,$days = 7) { global $wpdb, $post; $limit_date = current_time(&#8216;timestamp&#8217;) &#8211; ($days*86400); $limit_date = date(&#34;Y-m-d H:i:s&#34;,$limit_date); $views_options = get_option(&#8216;views_options&#8217;); $where = &#8221;; $temp = [...]]]></description>
			<content:encoded><![CDATA[<p>首先，发布一个好消息：<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> 3.0 beta 1已经发布了。</p>
<p>下载地址：<a title="WordPress 3.0" href="http://wordpress.org/wordpress-3.0-beta1.zip" target="_blank">WordPress 3.0</a></p>
<p>(终于在我的期待中发布了3.0，但是我不会急着去升级的。等正式版出来后，我在升级，到时候可以建好多个博客，O(∩_∩)O哈哈~。</p>
<p>切入今天的话题，我想只要是用过<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>的博主，一定知道post-views 这款插件吧，他可以实现文章浏览量的统计，而且通过调用函数，还可以实现博客浏览量最多和某个分类下浏览最多展示，但是我想实现这样一个功能，就是对给定的一个时间段内的最多浏览的文章进行输出。其实这个功能在早期的版本上是有的，但是后来不知作者怎么想的，有去掉了这个功能，今天我有给它加上这个功能。</p>
<p>其实操作过程很简单，只要是在wp-postviews.php（这是wp-postviews文件下的一个文本，你通过在plugins里可以找到）添加一个函数即可。我就简单的写吧！</p>
<p>在251行插入如下的函数（这是你不知道在那插入的话，可以选择这个位置；）。</p>
<p><strong>函数体：</strong><br />
[php]<br />
// Function: Display Most Viewed Page/Post in a Period of time<br />
function get_timespan_most_viewed($mode = &#8221;, $limit = 10, $chars=0,$display=true,$days = 7) {<br />
global $wpdb, $post;<br />
$limit_date = current_time(&#8216;timestamp&#8217;) &#8211; ($days*86400);<br />
$limit_date = date(&quot;Y-m-d H:i:s&quot;,$limit_date);<br />
$views_options = get_option(&#8216;views_options&#8217;);<br />
$where = &#8221;;<br />
$temp = &#8221;;<br />
$output = &#8221;;<br />
if(!empty($mode) &amp;amp;&amp;amp; $mode != &#8216;both&#8217;) {<br />
$where = &quot;post_type = &#8216;$mode&#8217;&quot;;<br />
} else {<br />
$where = &#8217;1=1&#8242;;<br />
}<br />
$most_viewed = $wpdb-&amp;gt;get_results(&quot;SELECT $wpdb-&amp;gt;posts.ID, post_title, post_name, post_status, post_date, CAST(meta_value AS UNSIGNED) AS views FROM $wpdb-&amp;gt;posts LEFT JOIN $wpdb-&amp;gt;postmeta ON $wpdb-&amp;gt;postmeta.post_id = $wpdb-&amp;gt;posts.ID WHERE post_date &amp;lt; &#8216;&quot;.current_time(&#8216;mysql&#8217;).&quot;&#8217; AND post_status = &#8216;publish&#8217; AND post_date &amp;gt; &#8216;&quot;.$limit_date.&quot;&#8217; AND $where AND meta_key = &#8216;views&#8217; AND post_password = &#8221; ORDER BY views DESC LIMIT $limit&quot;);<br />
if($most_viewed) {<br />
foreach ($most_viewed as $post) {<br />
$post_title = get_the_title();<br />
if($chars &amp;gt; 0) {<br />
$post_title = snippet_text($post_title, $chars);<br />
}<br />
$post_views = intval($post-&amp;gt;views);<br />
$post_views = number_format($post_views);<br />
echo &quot;&amp;lt;li&amp;gt;&amp;lt;a href=\&quot;&quot;.get_permalink().&quot;\&quot;&amp;gt;$post_title&amp;lt;/a&amp;gt; &#8211; $post_views &quot;.__(&#8216;Views&#8217;).&quot;&amp;lt;/li&amp;gt;&quot;;<br />
}<br />
} else {<br />
_e(&#8216;N/A&#8217;);<br />
}<br />
}<br />
[/php]<br />
<strong>调用方式</strong>：&lt;?php get_timespan_most_viewed( &#8216; &#8216;, , , , ); ?&gt;</p>
<p><strong>函数参数：</strong></p>
<p>第一个参数：post、page、both。统计的是文章还是页面，或者两者都有；</p>
<p>第二个参数：输出地文章数量；</p>
<p>第三个参数：输出标题的长度；（0为不限制）</p>
<p>第四个参数：是否输出（true：输出；flase：不输出）</p>
<p>第五个参数：查询的时间段。（以天为单位）</p>
<p><strong>举例：&lt;?php get_timespan_most_viewed(&#8216;post&#8217;, 5,0,true,7); ?&gt;</strong></p>
<p>最后，我决定在提供代码的修改文件，因为我怕有些网友在复制时出错。（偶有这方面的经历啊！差错最费事了。）</p>
<p><strong>插件下载：<a title="post veiws   插件" href="http://bbs.motian.org/post5.html" target="_blank">wp-postviews</a></strong></p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-wp-postviews-441.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-wp-postviews-441.html#comments">10 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-wp-postviews-441.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>非插件下调用其他网站的文章</title>
		<link>http://motian.org/post/blog-wordpress-feed-diaoyong-438.html</link>
		<comments>http://motian.org/post/blog-wordpress-feed-diaoyong-438.html#comments</comments>
		<pubDate>Mon, 29 Mar 2010 13:13:40 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/%e9%9d%9e%e6%8f%92%e4%bb%b6%e4%b8%8b%e8%b0%83%e7%94%a8%e5%85%b6%e4%bb%96%e7%bd%91%e7%ab%99%e7%9a%84%e6%96%87%e7%ab%a0-438.html</guid>
		<description><![CDATA[虽然现在的互联网管理越来越严，但是这没有阻止我没这群写博的人们，尤其是现在开独立博客的人越来越多，而原来有独立博客的博主们已经不能以拥有一个博客来满足自己的虚荣心啦。比如像偶，现在是有两个博客、一个微博、一个小论坛。O(∩_∩)O哈哈~，这时我们会遇到一个问题，如何将这几个网站的文章互相调用，这样才能给读者更多的选择。其实，这个最简单的就是通过feed来调用，O(∩_∩)O哈哈~ 现在的WordPress是越来越强大了，连feed聚合插件都有，不过谢谢的本质就是个人日志，这个并不要求你每天发布文章，但是我们希望每天文章倾注了博主的心血。 除了插件，还有一个最简单的是WordPress后台集成了feed调用： &#8220;小工具&#8221;-》&#8221;RSS&#8221;:通过添加网站的feed，以及还有其他的选项（这个大家一看就明白，我就不用废话啦），WordPress就会定时的更新你的调用列表。 这个功能虽然简单，但是这个需要我们添加widget在我们需要显示的地方。对于老手来说可能轻而易举，但是对于新手可能就是不那么容易啊！ 今天，给大家分享一段代码来实现上述的功能，很简单：复制代码，在合适的位置粘贴代码，然后通过CSS控制样式。 [php] &#60;?php // Get RSS Feed(s) include_once(ABSPATH . WPINC . &#8216;/rss.php&#8217;); $rss = fetch_rss(&#8216;http://feed.feedsky.com/mtbbs&#8217;);//在这添加所要调用网站的Feed地址 $maxitems = 8; $items = array_slice($rss-&#62;items, 0, $maxitems); ?&#62; &#60;ol&#62; &#60;?php if (empty($items)) echo &#8216;&#60;li&#62;No items&#60;/li&#62;&#8217;; else foreach ( $items as $item ) : ?&#62; &#60;li&#62; &#60;a href=&#8217;&#60;?php echo $item['link']; ?&#62;&#8217; title=&#8217;&#60;?php echo $item['title']; ?&#62;&#8217; [...]]]></description>
			<content:encoded><![CDATA[<p>虽然现在的互联网管理越来越严，但是这没有阻止我没这群写博的人们，尤其是现在开独立博客的人越来越多，而原来有独立博客的博主们已经不能以拥有一个博客来满足自己的虚荣心啦。比如像偶，现在是有两个博客、一个微博、一个小论坛。O(∩_∩)O哈哈~，这时我们会遇到一个问题，如何将这几个网站的文章互相调用，这样才能给读者更多的选择。其实，这个最简单的就是通过feed来调用，O(∩_∩)O哈哈~</p>
<p>现在的<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>是越来越强大了，连feed聚合插件都有，不过谢谢的本质就是个人日志，这个并不要求你每天发布文章，但是我们希望每天文章倾注了博主的心血。</p>
<p>除了插件，还有一个最简单的是<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>后台集成了feed调用：</p>
<p>&#8220;小工具&#8221;-》&#8221;RSS&#8221;:通过添加网站的feed，以及还有其他的选项（这个大家一看就明白，我就不用废话啦），<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>就会定时的更新你的调用列表。</p>
<p>这个功能虽然简单，但是这个需要我们添加widget在我们需要显示的地方。对于老手来说可能轻而易举，但是对于新手可能就是不那么容易啊！</p>
<p>今天，给大家分享一段代码来实现上述的功能，很简单：复制代码，在合适的位置粘贴代码，然后通过CSS控制样式。</p>
<p>[php]<br />
&lt;?php // Get RSS Feed(s)<br />
include_once(ABSPATH . WPINC . &#8216;/rss.php&#8217;);<br />
$rss = fetch_rss(&#8216;http://feed.feedsky.com/mtbbs&#8217;);//在这添加所要调用网站的Feed地址<br />
$maxitems = 8;<br />
$items = array_slice($rss-&gt;items, 0, $maxitems);<br />
?&gt;<br />
&lt;ol&gt;<br />
&lt;?php if (empty($items)) echo &#8216;&lt;li&gt;No items&lt;/li&gt;&#8217;;<br />
else<br />
foreach ( $items as $item ) : ?&gt;<br />
&lt;li&gt;<br />
&lt;a href=&#8217;&lt;?php echo $item['link']; ?&gt;&#8217;<br />
title=&#8217;&lt;?php echo $item['title']; ?&gt;&#8217; target=&quot;_blank&quot;&gt;<br />
&lt;?php echo mb_strimwidth($item['title'] , 0, 32, &#8216;&#8230;&#8217;) ; ?&gt; //控制文章标题字数的输出<br />
&lt;/a&gt;<br />
&lt;/li&gt;<br />
&lt;?php endforeach; ?&gt;<br />
&lt;/ol&gt;<br />
[/php]</p>
<p>就这么简单，最后你在添加上CSS进行控制下样式就OK啦。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-feed-diaoyong-438.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-feed-diaoyong-438.html#comments">8 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-feed-diaoyong-438.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>通过CSS实现首页的图文混排</title>
		<link>http://motian.org/post/blog-wordpress-css-tuwen-436.html</link>
		<comments>http://motian.org/post/blog-wordpress-css-tuwen-436.html#comments</comments>
		<pubDate>Thu, 25 Mar 2010 13:58:41 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/%e9%80%9a%e8%bf%87css%e5%ae%9e%e7%8e%b0%e9%a6%96%e9%a1%b5%e7%9a%84%e5%9b%be%e6%96%87%e6%b7%b7%e6%8e%92-436.html</guid>
		<description><![CDATA[关于博客首页的图文混排，其实我已经在《WordPress首页图文混排》这篇文章讨论过。但是当时由于自己刚刚接触到PHP，所以写的代码有点拙劣。在那篇文章里我是使用HTML中的table标签控制位置的，但是后来在添加了其他的代码东西后就会发生错位，所以我就用了CSS中的DIV重新实现了首页图文混排。 当然，实现首页图文混排的手段很多，比如有多款插件就可以实现WordPress首页文章添加图片，同时现在的WordPress 2.9内置了文章缩略图功能，大家只要在主题的index.php和function.php里添加相应的代码即可。但是我介绍的这个是另一中方法：通过设置不同的标签来显示不同的图片。 第一步： 首先建一个文件夹上，将使用的图片上传到此文件下，要求对应标签的图片名要和标签的别名相同。 第二步： 进入&#8221;控制面板&#8221;-&#62;&#8221;编辑&#8221;，找到index.php 搜索&#60;?php the_excerpt() ?&#62;或&#60;?php the_content() ?&#62;，用如下代码： &#60;div class=&#8221;post-excerpt&#8221;&#62; &#60;div class=&#8221;post-excerpt-right&#8221;&#62; &#60;div class=&#8221;post-excerpt-image&#8221;&#62; &#60;?php $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { echo &#8216;&#60;a href=&#8221;]]></description>
			<content:encoded><![CDATA[<p>关于博客首页的图文混排，其实我已经在<a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html" target="_blank" title="wordpress图文混排">《WordPress首页图文混排》</a>这篇文章讨论过。但是当时由于自己刚刚接触到PHP，所以写的代码有点拙劣。在那篇文章里我是使用HTML中的table标签控制位置的，但是后来在添加了其他的代码东西后就会发生错位，所以我就用了CSS中的DIV重新实现了首页图文混排。</p>
<p>当然，实现首页图文混排的手段很多，比如有多款插件就可以实现<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>首页文章添加图片，同时现在的<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span> 2.9内置了文章缩略图功能，大家只要在主题的index.php和function.php里添加相应的代码即可。但是我介绍的这个是另一中方法：通过设置不同的标签来显示不同的图片。</p>
<p><strong>第一步</strong>：</p>
<p>首先建一个文件夹上，将使用的图片上传到此文件下，要求对应标签的图片名要和标签的别名相同。</p>
<p><strong>第二步：</strong></p>
<p>进入&#8221;控制面板&#8221;-&gt;&#8221;编辑&#8221;，找到index.php 搜索&lt;?php the_excerpt() ?&gt;或&lt;?php the_content() ?&gt;，用如下代码：</p>
<blockquote><p>&lt;div class=&#8221;post-excerpt&#8221;&gt; <br />&lt;div class=&#8221;post-excerpt-right&#8221;&gt; <br />&lt;div class=&#8221;post-excerpt-image&#8221;&gt; <br />&lt;?php <br />$posttags = get_the_tags(); <br />if ($posttags) { <br />foreach($posttags as $tag) { <br />echo &#8216;&lt;a href=&#8221;<a href="http://motian.org/tag/'.$tag->slug.&#8217;&#8221;>http://motian.org/tag/&#8217;.$tag-&gt;slug.&#8217;</a>&#8221; target=&#8221;_blank&#8221;&gt;&lt;img src=&#8221;<a href="http://motian.org/wp-content/images/topics/'">http://motian.org/wp-content/images/topics/&#8217;</a> . $tag-&gt;slug . &#8216;.gif&#8221; alt=&#8221;&#8216; . $tag-&gt;name . &#8216;&#8221; /&gt;&lt;/a&gt;&#8217;; <br />} <br />} <br />?&gt; <br />&lt;/div&gt; <br />&lt;/div&gt; <br />&lt;div class=&#8221;post-excerpt-left&#8221;&gt; <br />&lt;?php echo mb_strimwidth(strip_tags(apply_filters(&#8216;the_content&#8217;, $post-&gt;post_content)), 0, 290,&#8221;&#8230;&#8230;&#8221;); ?&gt;&lt;div class=&#8221;fixed&#8221;&gt; <br />&lt;p class=&#8221;readmore&#8221;&gt;&lt;a href=&#8221;&lt;?php the_permalink() ?&gt;&#8221; &gt;阅读全文&lt;/a&gt;&lt;/p&gt;&lt;/div&gt; <br />&lt;/div&gt; <br />&lt;/div&gt;</p>
</blockquote>
<p>分类模版（category.php)、搜索模版（search.php)、标签面板（tag.php)、文章索引面板（archive.php)的&lt;?php the_excerpt() ?&gt;或&lt;?php the_content() ?&gt;覆盖，使其同样显示首页的效果！</p>
<p><strong>第三步：</strong></p>
<p>添加CSS到style.css。</p>
<blockquote><p>.post_excerpt{ <br />padding-left: 0px; <br />margin-left: 0px; <br />} <br />.post-excerpt-right { <br />float: right; <br />width: 100px; <br />} <br />.post-excerpt-left { <br />width: 490px; <br />float: left; <br />} <br />.post-excerpt-image { <br />border: 0px; <br />width: 100px; <br />height: 70px; <br />padding: 0px; <br />margin-top: 15px; <br />} <br />.thumb { <br />float: right; <br />padding: 0px; <br />border: 0px; <br />padding: 0px; <br />max-width: 100px; <br />max-height:67px; <br />overflow:hidden; <br />clear:both; <br />} <br />.readmore{ <br />float:right; <br />font-weight:bold; <br />font-size:17px; <br />} </p>
</blockquote>
<p>对应相应的宽度，大家可以自己根据博客主题的需要自己调整。</p>
<p><strong>注：</strong>１、将<a href="http://motian.org/tag/'"><span style="COLOR: #2970a6">http://motian.org/tag/</span></a>换成自己的标签地址，这个地址与固定链接的方式有关，在修改时可以点击一个标签看一下地址格式，$tag-&gt;slug ：表示该篇文章标签的别名，所以建议大家别名使用英文，并 且 要唯一。</p>
<p>２，<a href="http://motian.org/wp-content/images/topics/'">http://motian.org/wp-content/images/topics/&#8217;</a> 存放图片的文件夹 ，. $tag-&gt;slug . &#8216;.gif&#8221; 这个我就不重复了。</p>
<p>缺点：就是每篇文章只能使用一个标签。 </p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/blog-wordpress-css-tuwen-436.html">永久链接</a> |
<a href="http://motian.org/post/blog-wordpress-css-tuwen-436.html#comments">7 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/blog-wordpress-css-tuwen-436.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>P2主题打造真正的多用户微博</title>
		<link>http://motian.org/post/wordpress-p2-weibo-431.html</link>
		<comments>http://motian.org/post/wordpress-p2-weibo-431.html#comments</comments>
		<pubDate>Thu, 18 Mar 2010 15:39:26 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/p2%e4%b8%bb%e9%a2%98%e5%ae%8c%e7%be%8e%e5%8d%87%e7%ba%a7%ef%bc%8c%e6%89%93%e9%80%a0%e7%9c%9f%e6%ad%a3%e7%9a%84%e5%a4%9a%e7%94%a8%e6%88%b7%e5%be%ae%e5%8d%9a-431.html</guid>
		<description><![CDATA[忽然想起我的附属博客&#8211;漠天随笔（内容简短、涉及生活）好长时间没有整理，因此昨天晚上计划整理下，其实主要是一直没有找到适合的主题罢啦！O(∩_∩)O哈哈~我之所以开&#8221;漠天随笔&#8221;这个博客主要是写一些与主博客主题无关、内容简短、随意性质的文章。所以我也想找个日记样的主题，但是前前后后试用了好多，都感觉不太满意。 其实，以前也试用过P2这款主题，虽然说搭建微博功能强大，但是我并未感觉到如何的好，后来出来了GTE加强版的，感觉这个不错啊。但是主要显示有问题啊。昨晚在后台看到P2升级了，于是我就升级了，看看有什么新的功能。不看不知道，一看吓一跳，P2真的是有了很大的改进。 首先，我们看一下首页，感觉和微博没有什么两样。 发帖多样化 发表帖子、引用、链接都可以，而且还将后台的图片、视频、音乐调到了首页，这样我们可以在不进入后台的前提下同样能够发表带图片、视频、音乐的帖子。还可以直接添加标签，发表帖子时可添加标题。 主题模式切换，优化了评论显示 其实主要是对于首页评论显示方式的切换：展开和隐藏。当处于隐藏模式下，我们会在文章的尾部看到都是那些人参与了评论。 方便的快捷键功能 C 发表新文章 J 下一篇/下一条评论 K 上一篇/上一条评论 R 回复 E 编辑 O 展开/隐藏评论 T 返回顶部 L 登陆 H 打开/关闭帮助 ESC 取消 便捷的主题设置 在后台有丰富的选项可以设置 是否隐藏帖子标题； 自定义头部； 是否允许注册会员发帖； 默认的主题模式； 背景颜色； 背景图片； 侧栏隐藏； 修改发布提示； 至于这款主题对于多用户的支持如何，我没有试用。这个大家可以自己试用下。总体来说这款主题比上一个版本有了很大的修改，尤其是加入了许多功能，我记得P2 1.1.2版后台设置项就只有一个。可能是P2开发人员借用了GTE的开发思想吧。对于想用WordPress建一个微博客的，我想P2可以完全胜任，无论是单用户或多用户的。 P2主题下载： 我也作了简单的汉化，解压后将两个文件放在language文件下即可，想要的可以把邮箱地址留下。 其实，我已经用另一款程序建立了一个多用户微博客&#8211;漠天微博，大家可以看一下怎么样，这个开放，大家可以注册啊。 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 (1.000)Wordpress插件WP-PostViews使用 (1.000)WordPress数据库优化——插件篇 (1.000)WordPress模板常用函数 (1.000)Wordpress常用函数 (1.000)Wordpress内置模板条件判断函数 (1.000)[整理]wordpress插件制作入门教程 (1.000)十大WordPress手机插件 (1.000)WordPress插件EasyArchives 使用方法 (1.000) [...]]]></description>
			<content:encoded><![CDATA[<p>忽然想起我的附属博客&#8211;漠天随笔（内容简短、涉及生活）好长时间没有整理，因此昨天晚上计划整理下，其实主要是一直没有找到适合的主题罢啦！O(∩_∩)O哈哈~我之所以开&#8221;漠天随笔&#8221;这个博客主要是写一些与主博客主题无关、内容简短、随意性质的文章。所以我也想找个日记样的主题，但是前前后后试用了好多，都感觉不太满意。</p>
<p>其实，以前也试用过P2这款主题，虽然说搭建微博功能强大，但是我并未感觉到如何的好，后来出来了GTE加强版的，感觉这个不错啊。但是主要显示有问题啊。昨晚在后台看到P2升级了，于是我就升级了，看看有什么新的功能。不看不知道，一看吓一跳，P2真的是有了很大的改进。</p>
<p>首先，我们看一下首页，感觉和微博没有什么两样。</p>
<p><img class="alignnone" title="P2主题" src="http://img.motian.org/images/1268924735.png" alt="" width="500" height="264" /></p>
<p><strong>发帖多样化</strong></p>
<p>发表帖子、引用、链接都可以，而且还将后台的图片、视频、音乐调到了首页，这样我们可以在不进入后台的前提下同样能够发表带图片、视频、音乐的帖子。还可以直接添加标签，发表帖子时可添加标题。</p>
<p><strong>主题模式切换，优化了评论显示</strong></p>
<p>其实主要是对于首页评论显示方式的切换：展开和隐藏。当处于隐藏模式下，我们会在文章的尾部看到都是那些人参与了评论。</p>
<p><strong>方便的快捷键功能</strong></p>
<blockquote><dl>
<dt>C 发表新文章</dt>
<dt>J 下一篇/下一条评论</dt>
<dt>K 上一篇/上一条评论</dt>
<dt>R 回复</dt>
<dt>E 编辑</dt>
<dt>O 展开/隐藏评论</dt>
<dt>T 返回顶部</dt>
<dt>L 登陆</dt>
<dt>H 打开/关闭帮助</dt>
<dt>ESC 取消</dt>
</dl>
</blockquote>
<p><strong>便捷的主题设置</strong></p>
<p>在后台有丰富的选项可以设置</p>
<blockquote><p>是否隐藏帖子标题；</p>
<p>自定义头部；</p>
<p>是否允许注册会员发帖；</p>
<p>默认的主题模式；</p>
<p>背景颜色；</p>
<p>背景图片；</p>
<p>侧栏隐藏；</p>
<p>修改发布提示；</p></blockquote>
<p><img class="alignnone" title="p2主题" src="http://img.motian.org/images/1268926789.png" alt="" width="500" height="415" /></p>
<p>至于这款主题对于多用户的支持如何，我没有试用。这个大家可以自己试用下。总体来说这款主题比上一个版本有了很大的修改，尤其是加入了许多功能，我记得P2 1.1.2版后台设置项就只有一个。可能是P2开发人员借用了GTE的开发思想吧。对于想用<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>建一个微博客的，我想P2可以完全胜任，无论是单用户或多用户的。</p>
<p>P2主题下载：</p>
<h4>我也作了简单的汉化，解压后将两个文件放在language文件下即可，想要的可以把邮箱地址留下。</h4>
<p>其实，我已经用另一款程序建立了一个多用户微博客&#8211;<a title="漠天微博" href="http://t.motian.org/" target="_blank">漠天微博</a>，大家可以看一下怎么样，这个开放，大家可以注册啊。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-p2-weibo-431.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-p2-weibo-431.html#comments">18 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-p2-weibo-431.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>WordPress博客的博文实时被索引</title>
		<link>http://motian.org/post/wordpress-blog-souyin-424.html</link>
		<comments>http://motian.org/post/wordpress-blog-souyin-424.html#comments</comments>
		<pubDate>Thu, 04 Mar 2010 13:21:03 +0000</pubDate>
		<dc:creator>漠天</dc:creator>
				<category><![CDATA[博客之道]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://motian.org/post/wordpress%e5%8d%9a%e5%ae%a2%e7%9a%84%e5%8d%9a%e6%96%87%e5%ae%9e%e6%97%b6%e8%a2%ab%e7%b4%a2%e5%bc%95-424.html</guid>
		<description><![CDATA[PubSubHubbub简介 PubSubHubbub是一种简单，开放，基于网络的PubSub的（发布/订阅）协议。 分散和自由。任何人都可以运行PubSubHubbub服务器或任何人都可以使用开放的服务器。 PubSubHubbub只是一个协议，而不是服务，但我们正在运行的任何一个开放的测试服务器这是用来帮助引导协议。请随时发布或订阅这个中心。你可以在未来转移时要运行您自己的中心服务器，或者你可以继续使用这一个。 WordPress博客的RSS实时 wordpress很早就开发了RSSCloud的基于云计算的RSS实时技术，不过这项技术只是使用在了WordPress.com托管平台上，像我们这些基于WordPress程序的独立博客也并不能分享RSS实时带来的便利。不过，想在这一现象改变了。 据WordPress官方博客报道，WordPress已经正式支持了PubSubHubbub（有些人称其为PuSH），这种更新方式可以在谷歌阅读器中实时阅读到用户的博客更新，在大多数情况下，用户点完发布按钮，支持PubSubHubbub的系统（如Google Reader、FeedBurner等）就可以自动获取更新的RSS内容。 现在，在WordPress.com上托管的1050万个博客已经自动支持PuSH了，其工作模式是后台自动执行，用户不用做任何配置即可使用，实现了实时RSS的功能。 对于使用WordPress.org的程序自己搭建博客的用户，WordPress也推出了一款官方的PuSH插件：PuSHPress，推荐大家使用这个官方插件来支持PubSubHubbub功能。 扩展阅读wordpress中文工具箱教程 (1.000)WordPress首页实现图文混排 (1.000)Wordpress插件WP-PostViews使用 (1.000)WordPress数据库优化——插件篇 (1.000)WordPress模板常用函数 (1.000)Wordpress常用函数 (1.000)Wordpress内置模板条件判断函数 (1.000)[整理]wordpress插件制作入门教程 (1.000)十大WordPress手机插件 (1.000)WordPress插件EasyArchives 使用方法 (1.000) © 漠天 for 漠天博客, 2010. &#124; 永久链接 &#124; 9 comments &#124;标签: WordPress 收藏分享本文：]]></description>
			<content:encoded><![CDATA[<p><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><strong style="background-color: #ebeff9; font-size: 16px;">PubSubHubbub简介</strong></span></p>
<p><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><span style="background-color: #fff;" title="PubSubHubbub is a simple, open, web-hook-based pubsub (publish/subscribe) protocol.">PubSubHubbub是一种简单，开放，基于网络的PubSub的（发布/订阅）协议。 </span><span style="background-color: #fff;" title="Decentralized and free.">分散和自由。</span><span style="background-color: #fff;" title="Anybody can run a PubSubHubbub server or anybody can use an open server.">任何人都可以运行PubSubHubbub服务器或任何人都可以使用开放的服务器。 </span><span style="background-color: #fff;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol.">PubSubHubbub只是一个协议，而不是服务，但我们正在运行的任何一个开放的测试服务器这是用来帮助引导协议。</span><span style="background-color: #fff;" title="Feel free to publish to or subscribe from this hub.">请随时发布或订阅这个中心。</span><span style="background-color: #fff;" title="You can migrate in the future when you want to run your own hub server, or you can just keep using this one.">你可以在未来转移时要运行您自己的中心服务器，或者你可以继续使用这一个。</span></span><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><strong><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><span style="background-color: #fff;" title="You can migrate in the future when you want to run your own hub server, or you can just keep using this one."><strong></strong></span></span></strong></span></p>
<p><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><strong><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><span style="background-color: #fff;" title="You can migrate in the future when you want to run your own hub server, or you can just keep using this one."><strong><span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>博客的RSS实时</strong></span></span></strong></span></p>
<p><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><span style="background-color: #fff;" title="You can migrate in the future when you want to run your own hub server, or you can just keep using this one.">wordpress很早就开发了RSSCloud的基于云计算的RSS实时技术，不过这项技术只是使用在了<span class='wp_keywordlink_affiliate'><a href="http://motian.org/tag/wordpress" title="查看 WordPress 的全部文章" target="_blank">WordPress</a></span>.com托管平台上，像我们这些基于WordPress程序的独立博客也并不能分享RSS实时带来的便利。不过，想在这一现象改变了。</span></span></p>
<p><span style="background-color: #ebeff9;" title="PubSubHubbub is just a protocol, not a service, but we're running this as an open test server for anybody to use to help bootstrap the protocol."><span style="background-color: #fff;" title="You can migrate in the future when you want to run your own hub server, or you can just keep using this one.">据<span class="relatedlinks-highlight"><span>WordPress</span></span>官方博客<a href="http://en.blog.wordpress.com/2010/03/03/rub-a-dub-dub-in-the-pubsubhubbub/" target="_blank"><span style="color: #4e0a13;">报道</span></a>，<span class="relatedlinks-highlight"><span>WordPress</span></span>已经正式支持了PubSubHubbub（有些人称其为PuSH），这种更新方式可以在谷歌阅读器中实时阅读到用户的博客更新，在大多数情况下，用户点完发布按钮，支持PubSubHubbub的系统（如Google Reader、FeedBurner等）就可以自动获取更新的<span class="relatedlinks-highlight"><span>RSS</span></span>内容。</span></span></p>
<p>现在，在<span class="relatedlinks-highlight"><span>WordPress</span></span>.com上托管的1050万个博客已经自动支持PuSH了，其工作模式是后台自动执行，用户不用做任何配置即可使用，实现了实时<span class="relatedlinks-highlight"><span>RSS</span></span>的功能。</p>
<p>对于使用<span class="relatedlinks-highlight"><span>WordPress</span></span>.org的程序自己搭建博客的用户，<span class="relatedlinks-highlight"><span>WordPress</span></span>也推出了一款官方的PuSH插件：<span style="color: #4e0a13;">PuSHPress</span>，推荐大家使用这个官方插件来支持PubSubHubbub功能。</p>
<div class="similarity"><h2>扩展阅读</h2><br /><ul><li><a href="http://motian.org/post/wordpress-zhongwengongju-3.html">wordpress中文工具箱教程</a> (1.000)</li><li><a href="http://motian.org/post/wordpressshouyetuwenhunpai-21.html">WordPress首页实现图文混排</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-wp-postviews-set-27.html">Wordpress插件WP-PostViews使用</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-data-youhua-1-2-45.html">WordPress数据库优化——插件篇</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-muban-hanshu-54.html">WordPress模板常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-hanshu-55.html">Wordpress常用函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-tiaojianpanduan-56.html">Wordpress内置模板条件判断函数</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-plugin-zhizuo-58.html">[整理]wordpress插件制作入门教程</a> (1.000)</li><li><a href="http://motian.org/post/ten-wordpress-mobileplugin-62.html">十大WordPress手机插件</a> (1.000)</li><li><a href="http://motian.org/post/wordpress-easyarchives-66.html">WordPress插件EasyArchives 使用方法</a> (1.000)</li></ul></div><!-- Tag --><hr />
<p>© 漠天 for <a href="http://motian.org">漠天博客</a>, 2010. |
<a href="http://motian.org/post/wordpress-blog-souyin-424.html">永久链接</a> |
<a href="http://motian.org/post/wordpress-blog-souyin-424.html#comments">9 comments</a> |标签: <a href="http://motian.org/tag/wordpress" rel="tag">WordPress</a><br/>
<strong>收藏分享本文：</strong>
<a style="color:#333333;text-align:center;font-size:12px;" href="javascript:void((function(s,d,e){try{}catch(e){}var f='http://v.t.sina.com.cn/share/share.php?',u=d.location.href,p=['url=',e(u),'&title=',e(d.title),'&appkey=2924220432'].join('');function a(){if(!window.open([f,p].join(''),'mb',['toolbar=0,status=0,resizable=1,width=620,height=450,left=',(s.width-620)/2,',top=',(s.height-450)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/weibo.gif" alt="分享到新浪微博" border="0" height="16" width="16"/></a>

<a href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);location=%22http://zuosa.com/collect/Collect.aspx?t=%22+encodeURIComponent(t)+%22&u=%22+encodeURIComponent(u);void%200" title="你在做啥"><img src="http://img.motian.org/pic/wp/zuosa.gif"/></a>

<a title="转贴到校内人人网" href="javascript:void((function(s,d,e){if(/xiaonei\.com/.test(d.location))return;var%20f='http://share.xiaonei.com/share/buttonshare.do?link=',u=d.location,l=d.title,p=[e(u),'&title=',e(l)].join('');function%20a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else%20a();})(screen,document,encodeURIComponent));"><img src="http://img.motian.org/pic/wp/renren.gif" alt="分享到校内人人网" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(kaixin=window.open('http://www.kaixin001.com/~repaste/repaste.php?&rurl='+escape(d.location.href)+'&rtitle='+escape(d.title)+'&rcontent='+escape(d.title),'kaixin'));kaixin.focus();" title="转贴到开心网"><img src="http://img.motian.org/pic/wp/kaixin.gif" alt="转贴到开心网" border="0"/></a>

<a href="javascript:void(function(){var%20d=document,e=encodeURIComponent,s1=window.getSelection,s2=d.getSelection,s3=d.selection,s=s1?s1():s2?s2():s3?s3.createRange().text:' ',r='http://www.douban.com/recommend/?url='+e(d.location.href)+'&title='+e(d.title)+'&sel='+e(s)+'&v=1',x=function(){if(!window.open(r,'douban','toolbar=0,resizable=1,scrollbars=yes,status=1,width=450,height=330'))location.href=r+'&r=1'};if(/Firefox/.test(navigator.userAgent)){setTimeout(x,0)}else{x()}})()" title="推荐到豆瓣" rel="nofollow" ><img src="http://img.motian.org/pic/wp/douban.png" border="0" height="16" width="16"></a>

<a title="收藏到Google书签" href="javascript:(function(){var a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();"><img src="http://img.motian.org/pic/wp/googlebookmark.png" alt="Google书签" border="0" height="16" width="16"/></a>

<a title="添加到QQ书签" href="javascript:window.open('http://shuqian.qq.com/post?from=3&title='+encodeURIComponent(document.title)+'&uri='+encodeURIComponent(document.location.href)+'&jumpback=2&noui=1','favit','width=930,height=470,left=50,top=50,toolbar=no,menubar=no,location=no,scrollbars=yes,status=yes,resizable=yes');void(0)"><img src="http://img.motian.org/pic/wp/qq.png" alt="QQ书签" border="0" height="16" width="16"/></a>

<a title="添加到百度搜藏" href="javascript:u=location.href;t=document.title;t=t.substr(0,76);c=%22%22+(window.getSelection?window.getSelection():document.getSelection?document.getSelection():document.selection.createRange().text);c=c.substr(0,180);var url=%22http://cang.baidu.com/do/add?it=%22+encodeURIComponent(t)+%22&iu=%22+encodeURIComponent(u)+%22&dc=%22+encodeURIComponent(c)+%22&fr=ien#nw=1%22;window.open(url,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes');void 0"><img src="http://img.motian.org/pic/wp/baidu.gif" alt="百度搜藏" border="0" height="16" width="16"/></a>

<a href="javascript:d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(vivi=window.open('http://vivi.sina.com.cn/collect/icollect.php?pid=28&title='+escape(d.title)+'&url='+escape(d.location.href)+'&desc='+escape(t),'vivi','scrollbars=no,width=480,height=480,left=75,top=20,status=no,resizable=yes'));vivi.focus();" title="收藏到新浪ViVi"><img src="http://img.motian.org/pic/wp/vivi.gif" alt="Sina ViVi" border="0"/></a>

<a title="添加到雅虎收藏" onclick="window.open('http://myweb.cn.yahoo.com/popadd.html?url='+encodeURIComponent(document.location.href)+'&title='+encodeURIComponent(document.title), 'Yahoo','scrollbars=yes,width=440,height=440,left=80,top=80,status=yes,resizable=yes');" href="javascript:;" rel="nofollow"><img src="http://img.motian.org/pic/wp/yahoo.png" alt="yahoo收藏" border="0" height="16" width="16"/></a>

<a title="保存到del.icio.us美味书签" href="javascript:(function(){f='http://delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&';a=function(){if(!window.open(f+'noui=1&jump=doclose','deliciousuiv5','location=yes,links=no,scrollbars=no,toolbar=no,width=550,height=550'))location.href=f+'jump=yes'};if(/Firefox/.test(navigator.userAgent)){setTimeout(a,0)}else{a()}})()"><img src="http://img.motian.org/pic/wp/delicious.gif" alt="Del.icio.us" border="0" height="16" width="16"/></a>

<a title="推荐到digg.com" href="javascript:location.href='http://digg.com/submit?phase=2&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)"><img src="http://img.motian.org/pic/wp/digg.gif" alt="digg" border="0"/></a>

<a href="javascript:void(location.href='https://twitter.com/home?status=Now%20reading%20<<'+encodeURIComponent(document.title)+'>>%20'+encodeURIComponent(location.href))" title="分享到 Twitter"><img src="http://img.motian.org/pic/wp/twitter.png" alt="分享到twitter"/></a>

 <br/>
<script type="text/javascript"><!--
google_ad_client = "pub-4498164283832126";
/* 468x60, 创建于 10-8-17 */
google_ad_slot = "2152552823";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>]]></content:encoded>
			<wfw:commentRss>http://motian.org/post/wordpress-blog-souyin-424.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
