<?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>harry.blog &#187; habari</title>
	<atom:link href="http://blog.harrspy.com/tag/habari/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.harrspy.com</link>
	<description>留住往昔的美丽，去开创未来的光明。</description>
	<lastBuildDate>Wed, 01 Sep 2010 14:30:35 +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>嘿，又回到WP了</title>
		<link>http://blog.harrspy.com/back-to-wordpress</link>
		<comments>http://blog.harrspy.com/back-to-wordpress#comments</comments>
		<pubDate>Wed, 09 Sep 2009 05:36:37 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[habari]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.harryxu.cn/?p=194</guid>
		<description><![CDATA[终于经不住丰富功能的诱惑，又用回wordpress了 -  - 不过说起Habari，感觉程序上做的还是要比wp优秀很多，只是wp人气实在太旺，各类插件，主题什么的资源丰富的多，在使用上的确有不错的体验。 为此还写了个简陋的Habari插件，输出Habari里所有的文章评论什么的成WP的Rss，然后可以导入到WP里面，这样数据就基本上全转移过来了。 要是有需要可以下载后，解压放到Habari的插件目录，激活后，访问你的blog地址后面加/wxr 比如 http://yourblog.com/wxr 插件会把所有文章，标签，评论等导出，完成后会有个文件下载，接着进入WP后台的 工具-导入-wordpress 把下载的文件上传上去导入应该就行了。 另外blog的访问地址改成blog.harryxu.cn了，访问旧的地址都会重定向过来。]]></description>
			<content:encoded><![CDATA[<p>终于经不住丰富功能的诱惑，又用回wordpress了 -  -</p>
<p>不过说起<a href="http://habariproject.org/" target="_blank">Habari</a>，感觉程序上做的还是要比wp优秀很多，只是wp人气实在太旺，各类插件，主题什么的资源丰富的多，在使用上的确有不错的体验。</p>
<p>为此还写了个简陋的Habari插件，输出Habari里所有的文章评论什么的成WP的Rss，然后可以导入到WP里面，这样数据就基本上全转移过来了。</p>
<p>要是有需要可以<a title="Wordpres RSS output for Habari" href="http://dl.getdropbox.com/u/130618/downloads/wxr.zip" target="_blank">下载</a>后，解压放到Habari的插件目录，激活后，访问你的blog地址后面加/wxr 比如 http://yourblog.com/wxr 插件会把所有文章，标签，评论等导出，完成后会有个文件下载，接着进入WP后台的 工具-导入-wordpress 把下载的文件上传上去导入应该就行了。</p>
<p>另外blog的访问地址改成blog.harryxu.cn了，访问旧的地址都会重定向过来。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/back-to-wordpress/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Simple Reply for Habari</title>
		<link>http://blog.harrspy.com/simple-reply-for-habari</link>
		<comments>http://blog.harrspy.com/simple-reply-for-habari#comments</comments>
		<pubDate>Mon, 27 Oct 2008 13:58:13 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[habari]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[reply]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[之前写过一个wp插件 SimpleReply ，本来想移植到Habari，不过想来也太麻烦，所以试着直接用js实现。 首先要在模板里引入jQuery，没办法，不会js只能用框架偷懒 xd&#8230; 然后引入下面这段js function addCommentReply&#40;&#41; &#123; $&#40;'.comment'&#41;.map&#40;function&#40;&#41;&#123; var cid = this.id; var author = $&#40;'.fn &#62; a', $&#40;this&#41;&#41;.text&#40;&#41;; &#160; var repbtn = $&#40;&#34;&#60;a class='reply-btn' title='回复&#34;+author+&#34;'&#62;回复&#60;/a&#62;&#34;&#41;; $&#40;'.comment-meta', $&#40;this&#41;&#41;.append&#40;'&#124;', repbtn&#41;; &#160; repbtn.click&#40;function&#40;&#41;&#123; var ta = $&#40;'#content'&#41;; ta.val&#40;ta.val&#40;&#41; + &#34;&#60;a href='#&#34;+cid+&#34;'&#62;@&#34;+author+&#34;&#60;/a&#62; &#34;&#41;; ta.focus&#40;&#41;; &#125;&#41;; &#125;&#41;; &#125; &#160; $&#40;document&#41;.ready&#40;function&#40;&#41;&#123; addCommentReply&#40;&#41;; &#125;&#41;; 完了，直接插入a标记也省的后台用php转换了，如果你的模板结构和我的不同，改下选择器就行了&#8230;&#8230;&#8230;&#8230;]]></description>
			<content:encoded><![CDATA[<p>之前写过一个wp插件 <a href='http://harryxu.cn/blog/wp-plugin-simplereply'>SimpleReply</a> ，本来想移植到Habari，不过想来也太麻烦，所以试着直接用js实现。</p>
<p>首先要在模板里引入<a href='http://jquery.com' target='_blank'>jQuery</a>，没办法，不会js只能用框架偷懒 xd&#8230;</p>
<p>然后引入下面这段js</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">function</span> addCommentReply<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.comment'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">map</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> cid <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">id</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> author <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.fn &gt; a'</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #003366; font-weight: bold;">var</span> repbtn <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;&lt;a class='reply-btn' title='回复&quot;</span><span style="color: #339933;">+</span>author<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;回复&lt;/a&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.comment-meta'</span><span style="color: #339933;">,</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">append</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'|'</span><span style="color: #339933;">,</span> repbtn<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        repbtn.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> ta <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#content'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            ta.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span>ta.<span style="color: #660066;">val</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;&lt;a href='#&quot;</span><span style="color: #339933;">+</span>cid<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;'&gt;@&quot;</span><span style="color: #339933;">+</span>author<span style="color: #339933;">+</span><span style="color: #3366CC;">&quot;&lt;/a&gt; &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            ta.<span style="color: #000066;">focus</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    addCommentReply<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>完了，直接插入a标记也省的后台用php转换了，如果你的模板结构和我的不同，改下选择器就行了&#8230;&#8230;&#8230;&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/simple-reply-for-habari/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>哈哈 终于从WP转到Habari啦</title>
		<link>http://blog.harrspy.com/wordpress-to-habari-first</link>
		<comments>http://blog.harrspy.com/wordpress-to-habari-first#comments</comments>
		<pubDate>Sat, 30 Aug 2008 16:23:40 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[habari]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[经过1天多的折腾终于从Wordpress转换到Habari上了，使用Habari的原因主要是看中其良好的结构和优秀的代码，Wrdpress很强大，但是已经发展的非常复杂了，代码读起来真是不太容易。 不过Habari还处于开发阶段，功能不像wp那样丰富，从wp转过来还是费了一些周折，今天把theme移植了一下，之后还要移植一些插件，还有把表情功能想办法弄上，以后有空会写点wp转Habari的注意点。]]></description>
			<content:encoded><![CDATA[<p>经过1天多的折腾终于从Wordpress转换到Habari上了，使用Habari的原因主要是看中其良好的结构和优秀的代码，Wrdpress很强大，但是已经发展的非常复杂了，代码读起来真是不太容易。</p>
<p>不过Habari还处于开发阶段，功能不像wp那样丰富，从wp转过来还是费了一些周折，今天把theme移植了一下，之后还要移植一些插件，还有把表情功能想办法弄上，以后有空会写点wp转Habari的注意点。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/wordpress-to-habari-first/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
