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

<channel>
	<title>老余 &#187; wordpress</title>
	<atom:link href="http://laoyu.info/archives/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://laoyu.info</link>
	<description>Dreams are hard to follow,but dont let anyone tear them away!Hold on!</description>
	<lastBuildDate>Tue, 09 Feb 2010 07:55:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Wordpress中集成饭否.叽歪的简单实现</title>
		<link>http://laoyu.info/archives/528.html</link>
		<comments>http://laoyu.info/archives/528.html#comments</comments>
		<pubDate>Sat, 11 Jul 2009 14:06:31 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[技术·学习]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://laoyu.info/archives/528.html</guid>
		<description><![CDATA[饭否或者叽歪这种微博客基本都带了rss输出功能,利用wordpress中自带的rss解析功能可以很轻易地把你的微博客的内容集成到你的博客中来.
之前我用的是饭否,但是这几天饭否莫名地无法访问了(国外的twitter好像也不能访问了),我就转到叽歪上来了,下面的这个小代码包含了饭否和叽歪两个微博客的rss解析,简单修改就可以放到你的博客上.
 
1.在你的wordpress的theme下面建一个ing.php文件,内容见本文最后,修改成你自己的微博客地址或者用户名
2.在你的theme里的你想要的位置引入ing.php,我的是加到首页的最上面.
3.Over



&#60;?php


&#160;


//for jiwai


require_once &#40;ABSPATH . WPINC . &#39;/rss.php&#39;&#41;;


$feed_url = &#39;http://api.jiwai.de/statuses/user_timeline/170995.rss&#39;;


$rss = @fetch_rss&#40;$feed_url&#41;;


if &#40; isset&#40;$rss-&#62;items&#41; &#38;&#38; 0 &#60; count&#40;$rss-&#62;items&#41; &#41; 


&#123; 


&#160;$rss-&#62;items = array_slice&#40;$rss-&#62;items, 0, 5&#41;;


&#160;foreach &#40;$rss-&#62;items as $item &#41; 


&#160;&#123;


?&#62;


&#60;li&#62;


&#160;&#60;?php 


&#160; echo $item&#91;&#39;title&#39;&#93;; 


&#160;?&#62; &#38;raquo; 


&#160;&#60;?php 


&#160; printf&#40;__&#40;&#39;%s ago&#39;&#41;,human_time_diff&#40;strtotime&#40;$item&#91;&#39;pubdate&#39;&#93;, time&#40;&#41;&#41;&#41;&#41;; 


&#160;?&#62;


&#60;/li&#62;


&#160;&#60;?php 


&#160;&#125; 


&#125; 


?&#62;



相关文章

2008-08-07Wordpress升级到2.6了 (1)
2008-07-02测试XMLRPC发布信息 (1)
2008-04-09wordpress显示最新评论和最新文章 (0)
2008-04-09搬家了,顺便把zblog转成wordpress了 (11)
2007-07-21把pjblog转Zblog了 (5)

]]></description>
		<wfw:commentRss>http://laoyu.info/archives/528.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress升级到2.6了</title>
		<link>http://laoyu.info/archives/162.html</link>
		<comments>http://laoyu.info/archives/162.html#comments</comments>
		<pubDate>Thu, 07 Aug 2008 11:58:21 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[生活·心情]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://t263.net/?p=162</guid>
		<description><![CDATA[wordpress是一个容易让人上瘾的程序,特别是对我这样的喜欢折腾的人来说.
2.6版本出来了有一段时间了,昨天突然想把我的博客升级一下,顺便反省一下为什么让博客荒废了这么长时间.岂知一研究就黏上了欲罢不能,一定要这里鼓捣一下,那里敲打敲打,花了n个小时,终于感觉到有点厌倦了,就出来了你看到的这个版本.
也许,折腾博客也包含了许多的乐趣吧&#8230;
插件装了不少,每一个都认真的研究了一下&#8230;列表如图所示:
相关文章

2009-07-11Wordpress中集成饭否.叽歪的简单实现 (0)
2008-07-02测试XMLRPC发布信息 (1)
2008-04-09wordpress显示最新评论和最新文章 (0)
2008-04-09搬家了,顺便把zblog转成wordpress了 (11)
2007-07-21把pjblog转Zblog了 (5)

]]></description>
		<wfw:commentRss>http://laoyu.info/archives/162.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>测试XMLRPC发布信息</title>
		<link>http://laoyu.info/archives/145.html</link>
		<comments>http://laoyu.info/archives/145.html#comments</comments>
		<pubDate>Wed, 02 Jul 2008 12:40:11 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[默认分类]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[xmlrpc]]></category>
		<category><![CDATA[测试]]></category>

		<guid isPermaLink="false">http://t263.net/%e6%b5%8b%e8%af%95xmlrpc%e5%8f%91%e5%b8%83%e4%bf%a1%e6%81%af.html</guid>
		<description><![CDATA[从天堂到地狱的距离对比利奇来说只有两分钟，看着土耳其球员在场边欢呼跳跃，这位摇滚主帅是多么盼望自己的身边能站着苏克和博班等人，可惜1998年克罗 地亚的黄金一代已成为历史，今天的莫德里奇等人在2008年欧洲杯上黯然退场证明，他们与黄金一代还有差距。看着比利奇的背影我们有些感伤，当告别已成为 今年足坛的主题时，就让我们回顾一下国际足坛历史上激情四射的黄金一代球员，同时也珍惜今年欧洲杯上的球员吧，或许四年后，我们将再也看不到他们中的某些 人。
相关文章

2009-07-11Wordpress中集成饭否.叽歪的简单实现 (0)
2008-08-07Wordpress升级到2.6了 (1)
2008-04-09wordpress显示最新评论和最新文章 (0)
2008-04-09搬家了,顺便把zblog转成wordpress了 (11)
2007-07-21把pjblog转Zblog了 (5)

]]></description>
		<wfw:commentRss>http://laoyu.info/archives/145.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>wordpress显示最新评论和最新文章</title>
		<link>http://laoyu.info/archives/111.html</link>
		<comments>http://laoyu.info/archives/111.html#comments</comments>
		<pubDate>Wed, 09 Apr 2008 03:37:29 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[技术·学习]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[显示最新评论]]></category>
		<category><![CDATA[最新文章]]></category>

		<guid isPermaLink="false">http://t263.net/?p=111</guid>
		<description><![CDATA[1.显示最新文章
有一个现成的方法可以调用.修改siderbar,加入&#60;?php get_archives(&#8217;postbypost&#8217;, 10); ?&#62;
2.显示最新评论
插件的官方地址是:http://rmarsh.com/plugins/recent-comments/
安装这个插件之前还需要安装一下Post-Plugin Library,安装方式很简单,下载回来后解压缩到/wp-content/plugins/,然后进入后台管理,激活它.
调用方式:&#60;?php recent_comments(); ?&#62;
效果见本博.
相关文章

2009-07-11Wordpress中集成饭否.叽歪的简单实现 (0)
2008-08-07Wordpress升级到2.6了 (1)
2008-07-02测试XMLRPC发布信息 (1)
2008-04-09搬家了,顺便把zblog转成wordpress了 (11)
2007-07-21把pjblog转Zblog了 (5)

]]></description>
		<wfw:commentRss>http://laoyu.info/archives/111.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>搬家了,顺便把zblog转成wordpress了</title>
		<link>http://laoyu.info/archives/110.html</link>
		<comments>http://laoyu.info/archives/110.html#comments</comments>
		<pubDate>Tue, 08 Apr 2008 17:55:06 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[发现·分享]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zblog]]></category>
		<category><![CDATA[搬家]]></category>

		<guid isPermaLink="false">http://t263.net/?p=110</guid>
		<description><![CDATA[1.搬家
之前的空间是佛山的,我在广东连速度还不错,但是因为是windows的服务器和php4,无法体验linux下apache和php5的强大功能,就搬了.现在的服务器是在上海,centos加apache,第一天试用觉得速度很不错.
2.转换
在zblog转wordpress上花了点工夫,说一下具体的过程,供后来者参考.
在zblog官方下载了一个zblog导出了movetype的插件(后来发现插件作者是著名的williamlong),本地测试导出出错了,原来我的zblog是1.7的版本,这个插件只支持1.8的,于是先升级到1.8,顺利导出为movetype.
以为差不多了,就在wordpress的后台用import尝试导入,除了tag部分有点问题外基本正常.tag部分是因为zblog的tag是用空格分割的,如果一篇文章有多个tag,导入到wordpress就会连在一起变成一个tag.没想到好的解决方法,手工编辑刚才导出的movetype文件,把多个tag之间加上逗号,还好文章不多,不然&#8230;
至此,转换完成.连评论都导入过来了,感觉不错
3.wordpress
难怪wordpress是全球用户最多的博客程序,的确名副其实.不说海量的theme和插件,后台的界面就让人眼前一亮,而且操作非常人性化.
有个小小的问题就是wordpress进入后台的速度的确一般,我本地调试打开后台的管理页面,基本上加载时间都在400ms以上,用firedebug看了看,发现大部分的时间用于加载jquery.js了.而我在本地测试sablog的加载速度,一般都在100ms以下.有了诸多好处,这点可以接受.
4.模板
花了点时间东拼西凑地搞出了你现在看到的这个模板,css实在有点菜,先将就用着吧&#8230;
相关文章

2007-07-21把pjblog转Zblog了 (5)
2009-07-11Wordpress中集成饭否.叽歪的简单实现 (0)
2008-08-07Wordpress升级到2.6了 (1)
2008-07-02测试XMLRPC发布信息 (1)
2008-04-09wordpress显示最新评论和最新文章 (0)

]]></description>
		<wfw:commentRss>http://laoyu.info/archives/110.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>把pjblog转Zblog了</title>
		<link>http://laoyu.info/archives/62.html</link>
		<comments>http://laoyu.info/archives/62.html#comments</comments>
		<pubDate>Sat, 21 Jul 2007 15:42:46 +0000</pubDate>
		<dc:creator>老余</dc:creator>
				<category><![CDATA[生活·心情]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[pjblog]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[zblog]]></category>

		<guid isPermaLink="false">http://t263.net/?p=62</guid>
		<description><![CDATA[近来我的blog（pjblog）上出现了很多垃圾留言，让人忍无可忍，无奈之下，开始考虑转换一下程序了。最先考虑的是wordpress，不知道什么时候开始，国内的wordpress成泛滥之势，太多人用了，我也时髦一把，下了一个wordpress的blog程序，在本机小小调试了一把，但是两个问题让我最终放弃了wordpress，第一，性能问题，即使在本地调试，速度也是非常的慢，据说国外的开源程序普遍性能一般，不知道是否如此?还有就是无法生成html，说到底还是喜欢直接生成html的。然后就是drup...
]]></description>
		<wfw:commentRss>http://laoyu.info/archives/62.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
