<?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; wordpress</title>
	<atom:link href="http://blog.harrspy.com/tag/wordpress/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主题，KTwitt</title>
		<link>http://blog.harrspy.com/ktwitt-theme</link>
		<comments>http://blog.harrspy.com/ktwitt-theme#comments</comments>
		<pubDate>Wed, 23 Dec 2009 15:54:41 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[k2]]></category>
		<category><![CDATA[ktwitt]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.harrspy.com/?p=211</guid>
		<description><![CDATA[之前一直用K2的主题，不过我觉得特别喜欢twitter网站的样式，所以就基于K2弄了个新样式。 所幸K2是可以支持开发Child Theme的，所以有了K2要弄一个新的样式非常方便。 目前blog的样式就是KTwitt，样式表是直接从K2的css上改的，在调整中，在FF，opera，chrome等浏览器中测试基本ok，但是在ie7下会变形，ie8好像还行，ie6就没测试过。。。。 我对css懂的很少，有兴趣的话帮忙看看怎么兼容ie？ 可以到 http://github.com/harryxu/ktwitt 下载最新的版本。 先要把k2放到themes中，然后放入ktwitt，激活ktwitt主题就行了。]]></description>
			<content:encoded><![CDATA[<p>之前一直用<a href="http://getk2.com/download/" target="_blank">K2</a>的主题，不过我觉得特别喜欢twitter网站的样式，所以就基于K2弄了个新样式。<br />
所幸K2是可以支持开发<a href="http://code.google.com/p/kaytwo/wiki/K2ChildThemes" target="_blank">Child Theme</a>的，所以有了K2要弄一个新的样式非常方便。</p>
<p>目前blog的样式就是KTwitt，样式表是直接从K2的css上改的，在调整中，在FF，opera，chrome等浏览器中测试基本ok，但是在ie7下会变形，ie8好像还行，ie6就没测试过。。。。</p>
<p>我对css懂的很少，有兴趣的话帮忙看看怎么兼容ie？</p>
<p>可以到 <a href="http://github.com/harryxu/ktwitt" target="_blank">http://github.com/harryxu/ktwitt</a> 下载最新的版本。</p>
<p>先要把<a href="http://getk2.com/download/" target="_blank">k2</a>放到themes中，然后放入ktwitt，激活ktwitt主题就行了。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/ktwitt-theme/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<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>哈哈 终于从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>
		<item>
		<title>终于倒腾出了一个wordpress 插件 &#8212; simpleReply</title>
		<link>http://blog.harrspy.com/wp-plugin-simplereply</link>
		<comments>http://blog.harrspy.com/wp-plugin-simplereply#comments</comments>
		<pubDate>Fri, 27 Jun 2008 15:52:13 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[simpleReply]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=178</guid>
		<description><![CDATA[跳过废话，直接 下载 安装 使用 忙活了老半天总算似乎是弄好了 其实这是一个很简单的插件，就是模仿了twitter的回复方式 @name 这种 虽然wordpress有很多类似引用留言，嵌套回复的插件，但是我都觉得不适合我，因为我感觉blog的留言功能大部分是回复给文章作者的，在自己的留言中完全引用别人的留言显的有点太冗余了，那种嵌套的回复方式我个人是不太喜欢，搞得留言区域乱糟糟的。 所以我一直没有装类似这种插件，都是手写类似 @xxx 这样的表示对谁回复，不过单单这样又感觉太简单，在留言很多的情况下，很难找到是回复给那个评论的，所以想要是 @xxx 是一个链接，点一下定位到要回复的那条评论，这样就方便多了，再看看twitter，其实也是这种方式，所以就抽空写了一个这样的插件。 我给他取名为 simpleReply ，因为真的很simple 点击下载 不过这是我第一次写wordpress插件，我php不是太熟悉，也没怎么测试，就试用了那么几次，不确定是不是会有bug，所以如果有朋友发现bug，希望能及时通知我，我会尽力修复。 下面是使用方法： 安装： 压缩包里就一个 simpleReply.php 文件，解压后把这个php文件上传到wordpress的plugins目录，然后到后台激活。 用文本编辑器打开 wp-content/themes/当前使用的主题/comments.php 找到遍历评论的循环，类似下面这样的代码： &#60;?php foreach &#40;$comments as $comment&#41; : ?&#62; 在这个循环体内加入下面一段代码，加在哪里就看你的喜好拉，只要是在这个循环体内就行 &#60;?php if&#40;function_exists&#40;'simpleReply'&#41;&#41; simpleReply&#40;&#41;; ?&#62; simpleReply() 函数可以接受一个字符窜参数，就是回复链接的显示内容，默认是 &#8220;回复” ，你可以替换成任何你喜欢的html代码，比如放一个img标签，显示成一个图标。这样就行了。 使用： 不出意外，你就能在别人的评论区域看到这个 &#8220;回复&#8221; 连接了，当一个评论者要指定回复给文章中的另一个评论者的时候，他只要点一下那个评论者留言区域的这个&#8221;回复&#8221;链接，就会在输入评论内容的文本框里出现一窜类似 @xxx#123 这样的字符，这就表示对 xxx回复了，在后面接着输入要写的评论内容，当评论发布后，前面的窜字符会替换成一个 @xxx 这样的链接，点一下这个链接就会定位到 xxx 评论的位置了。 希望这个小插件能对你有所帮助 [...]]]></description>
			<content:encoded><![CDATA[<p>跳过废话，直接 <a href="#download">下载</a> <a href="#install">安装</a> <a href="#useage">使用</a></p>
<p>忙活了老半天总算似乎是弄好了<br />
其实这是一个很简单的插件，就是模仿了twitter的回复方式 @name 这种</p>
<p>虽然wordpress有很多类似引用留言，嵌套回复的插件，但是我都觉得不适合我，因为我感觉blog的留言功能大部分是回复给文章作者的，在自己的留言中完全引用别人的留言显的有点太冗余了，那种嵌套的回复方式我个人是不太喜欢，搞得留言区域乱糟糟的。</p>
<p>所以我一直没有装类似这种插件，都是手写类似 @xxx 这样的表示对谁回复，不过单单这样又感觉太简单，在留言很多的情况下，很难找到是回复给那个评论的，所以想要是 @xxx 是一个链接，点一下定位到要回复的那条评论，这样就方便多了，再看看twitter，其实也是这种方式，所以就抽空写了一个这样的插件。</p>
<p id='download'>
我给他取名为 simpleReply ，因为真的很simple<br />
<a href="http://harrspy.com/labs/wp/simpleReply.zip">点击下载</a>
</p>
<p>不过这是我第一次写wordpress插件，我php不是太熟悉，也没怎么测试，就试用了那么几次，不确定是不是会有bug，所以如果有朋友发现bug，希望能及时通知我，我会尽力修复。 下面是使用方法：</p>
<p id='install'>
<strong>安装：</strong><br />
压缩包里就一个 simpleReply.php 文件，解压后把这个php文件上传到wordpress的plugins目录，然后到后台激活。<br />
用文本编辑器打开 wp-content/themes/当前使用的主题/comments.php</p>
<p>找到遍历评论的循环，类似下面这样的代码：</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$comments</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>在这个循环体内加入下面一段代码，加在哪里就看你的喜好拉，只要是在这个循环体内就行</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'simpleReply'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> simpleReply<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>simpleReply() 函数可以接受一个字符窜参数，就是回复链接的显示内容，默认是 &#8220;回复” ，你可以替换成任何你喜欢的html代码，比如放一个img标签，显示成一个图标。这样就行了。
</p>
<p id='useage'>
<strong>使用：</strong><br />
不出意外，你就能在别人的评论区域看到这个 &#8220;回复&#8221; 连接了，当一个评论者要指定回复给文章中的另一个评论者的时候，他只要点一下那个评论者留言区域的这个&#8221;回复&#8221;链接，就会在输入评论内容的文本框里出现一窜类似 @xxx#123 这样的字符，这就表示对 xxx回复了，在后面接着输入要写的评论内容，当评论发布后，前面的窜字符会替换成一个 @xxx 这样的链接，点一下这个链接就会定位到 xxx 评论的位置了。
</p>
<p>希望这个小插件能对你有所帮助 <img src='http://blog.harrspy.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://www.youtube.com/watch?v=kxSxH6H4RLI" target="_blank">一段使用录像</a>，yy一下 <img src='http://blog.harrspy.com/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/wp-plugin-simplereply/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>测试新的代码高亮插件 wp-syntax</title>
		<link>http://blog.harrspy.com/code-highlight-plugin-wp-syntax</link>
		<comments>http://blog.harrspy.com/code-highlight-plugin-wp-syntax#comments</comments>
		<pubDate>Thu, 26 Jun 2008 16:10:57 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[GeSHi]]></category>
		<category><![CDATA[heighlight]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp-syntax]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=177</guid>
		<description><![CDATA[1 2 3 4 5 6 7 8 9 from datetime import date &#160; class Test&#40;object&#41;: def printToday&#40;self&#41;: today = date.today&#40;&#41; print 'Hello, today is %s.' % today.isoformat&#40;&#41; &#160; if __name__ == '__main__': Test&#40;&#41;.printToday&#40;&#41; 之前一直用的 iG:Syntax Hiliter 已经长时间不更新了，现在换上了一个新的代码高亮插件 WP-Syntax，感觉不错。 注意，由于上面说到的两个插件都是基于 GeSHi 实现的，所以只能2者选其一，同时使用的话，会由于 GeSHi 中的 Class 重复定义而出错。 唉，要抽空把以前发的代码替换以下了]]></description>
			<content:encoded><![CDATA[
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> <span style="color: #dc143c;">datetime</span> <span style="color: #ff7700;font-weight:bold;">import</span> date
&nbsp;
<span style="color: #ff7700;font-weight:bold;">class</span> Test<span style="color: black;">&#40;</span><span style="color: #008000;">object</span><span style="color: black;">&#41;</span>:
    <span style="color: #ff7700;font-weight:bold;">def</span> printToday<span style="color: black;">&#40;</span><span style="color: #008000;">self</span><span style="color: black;">&#41;</span>:
        today = date.<span style="color: black;">today</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
        <span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'Hello, today is %s.'</span> <span style="color: #66cc66;">%</span> today.<span style="color: black;">isoformat</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">if</span> __name__ == <span style="color: #483d8b;">'__main__'</span>:
    Test<span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>.<span style="color: black;">printToday</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span></pre></td></tr></table></div>

<p>之前一直用的 <a href="http://blog.igeek.info/wp-plugins/igsyntax-hiliter/" target="_blank">iG:Syntax Hiliter</a> 已经长时间不更新了，现在换上了一个新的代码高亮插件 <a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-Syntax</a>，感觉不错。</p>
<p>注意，由于上面说到的两个插件都是基于 <a href="http://qbnz.com/highlighter/" target='_blank'>GeSHi</a> 实现的，所以只能2者选其一，同时使用的话，会由于 GeSHi 中的 Class 重复定义而出错。</p>
<p>唉，要抽空把以前发的代码替换以下了 <img src='http://blog.harrspy.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/code-highlight-plugin-wp-syntax/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>升级到WordPress2.3.2后乱码的解决</title>
		<link>http://blog.harrspy.com/solve-the-wp232-charset-issue</link>
		<comments>http://blog.harrspy.com/solve-the-wp232-charset-issue#comments</comments>
		<pubDate>Mon, 31 Dec 2007 09:44:52 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/solve-the-wp232-charset-issue/</guid>
		<description><![CDATA[以前对于WP如果出现乱码的解决办法通常是在 wp-db.php里，找到 $this-&#62;dbh = @mysql_connect&#40;$dbhost, $dbuser, $dbpassword&#41;; 然后在下面加上一句 $this-&#62;query&#40;&#34;SET NAMES 'utf8'&#34;&#41;; 但是这次升级后不管用了，看了下代码，解决方法是再往下找几行，找到 $this-&#62;ready = true; 在这行代码下面加上 $this-&#62;query&#40;&#34;SET NAMES 'utf8'&#34;&#41;; 就行了 update: 2008.06.27 后来终于找到官方的办法了 只要在wp-config.php里加入这句就ok了 define&#40;'DB_CHARSET', 'utf8'&#41;;]]></description>
			<content:encoded><![CDATA[<p>以前对于WP如果出现乱码的解决办法通常是在 wp-db.php里，找到</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">dbh</span> <span style="color: #339933;">=</span> <span style="color: #339933;">@</span><span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$dbhost</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dbuser</span><span style="color: #339933;">,</span> <span style="color: #000088;">$dbpassword</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>然后在下面加上一句</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET NAMES 'utf8'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>但是这次升级后不管用了，看了下代码，解决方法是再往下找几行，找到</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ready</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span></pre></div></div>

<p>在这行代码下面加上</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SET NAMES 'utf8'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>就行了</p>
<p>update: 2008.06.27 后来终于找到官方的办法了<br />
只要在wp-config.php里加入这句就ok了</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_CHARSET'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'utf8'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/solve-the-wp232-charset-issue/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>测试Flickr Pic Show插件</title>
		<link>http://blog.harrspy.com/try_flickr_pic_phow_wpplugin</link>
		<comments>http://blog.harrspy.com/try_flickr_pic_phow_wpplugin#comments</comments>
		<pubDate>Tue, 20 Nov 2007 15:09:56 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[flickr]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/%e6%b5%8b%e8%af%95flickr-pic-show%e6%8f%92%e4%bb%b6</guid>
		<description><![CDATA[能看到图片就算OK了 很早就有了，因为Flickr被封后就一直用Yupoo了，所以没装上，今天突然又想用Flickr了。。。 插件作者: http://blog.istef.info/wp-plugin-flickrpicshow/]]></description>
			<content:encoded><![CDATA[<p>能看到图片就算OK了 <img src='http://blog.harrspy.com/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /><br />
<img src="http://farm3.static.flickr.com/2130/2049555669_1cf9f82ac1_o.jpg" /><br />
很早就有了，因为Flickr被封后就一直用Yupoo了，所以没装上，今天突然又想用Flickr了。。。<br />
插件作者: <a href="http://blog.istef.info/wp-plugin-flickrpicshow/" target="_blank">http://blog.istef.info/wp-plugin-flickrpicshow/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/try_flickr_pic_phow_wpplugin/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>一个很实用的插件 &#8211; WordPress Plugin Code Editor</title>
		<link>http://blog.harrspy.com/%e4%b8%80%e4%b8%aa%e8%b6%85%e8%b5%9e%e7%9a%84wp%e6%8f%92%e4%bb%b6-wordpress-plugin-code-editor</link>
		<comments>http://blog.harrspy.com/%e4%b8%80%e4%b8%aa%e8%b6%85%e8%b5%9e%e7%9a%84wp%e6%8f%92%e4%bb%b6-wordpress-plugin-code-editor#comments</comments>
		<pubDate>Thu, 09 Aug 2007 15:01:54 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=133</guid>
		<description><![CDATA[WordPress Plugin Code Editor是一个基于CodePress（一个JS写的在线实时代码高亮编辑器）开发的wp插件，安装后可以使后台编辑wp模板的文本框实现代码高亮而且是编辑的时候即时高亮的，很cool啊，这样在线编辑wp模板的代码就方便好多啊，哈哈。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.naden.de/blog/wordpress-code-editor" target="_blank">WordPress Plugin Code Editor</a>是一个基于<a href="http://codepress.org/" target="_blank">CodePress</a>（一个JS写的在线实时代码高亮编辑器）开发的wp插件，安装后可以使后台编辑wp模板的文本框实现代码高亮而且是编辑的时候即时高亮的，很cool啊，这样在线编辑wp模板的代码就方便好多啊，哈哈。<br />
<img src="http://photo6.yupoo.com/20070809/231235_1501775855_hpripovh.jpg"/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/%e4%b8%80%e4%b8%aa%e8%b6%85%e8%b5%9e%e7%9a%84wp%e6%8f%92%e4%bb%b6-wordpress-plugin-code-editor/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>东拼西凑搞了个显示wp插件列表的页面</title>
		<link>http://blog.harrspy.com/wp_current_plugins_page</link>
		<comments>http://blog.harrspy.com/wp_current_plugins_page#comments</comments>
		<pubDate>Mon, 30 Jul 2007 15:56:21 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=129</guid>
		<description><![CDATA[不会写wp插件，对php还不怎么熟悉，想搞一个可以显示插件列表的东东，我知道有这样的插件，不过不想装了，我是能不装插件尽量不装，怕影响速度（主要是俺的空间太慢了）哈哈。 看了一下wp后台的plugins.php的代码，然后开始捣鼓，把需要的代码复制出来，然后稍微改下弄了这个显示当前使用的插件的页面，您可以点击链接预览下，哈哈。 要是有兴趣也可以下载来用，顺便给俺看看要不要改进下 使用方法是下载后把这个文件放在当前使用的theme目录里然后，在后台新建一个页面，页面模板选择 Current Plugins 然后发布就行了，需要注意的是，由于这是页面模板，wp的themes DOM结构可能有所不同，所以有可能需要修改下源代码，修改从我在比较下面的部分写的注释 Main content开始，只要把DOM结构改成和你当前使用的wp模板一样就行了-__- 点击下载 P.S. 下载连接中提供的文件是使用和wordpress默认模板一样的结构。]]></description>
			<content:encoded><![CDATA[<p>不会写wp插件，对php还不怎么熟悉，想搞一个可以显示插件列表的东东，我知道有这样的插件，不过不想装了，我是能不装插件尽量不装，怕影响速度（主要是俺的空间太慢了）哈哈。</p>
<p>看了一下wp后台的plugins.php的代码，然后开始捣鼓，把需要的代码复制出来，然后稍微改下弄了这个<a href="http://harryxu.cn/blog/?page_id=128" target="_blank">显示当前使用的插件的页面</a>，您可以点击链接预览下，哈哈。</p>
<p>要是有兴趣也可以下载来用，顺便给俺看看要不要改进下<br />
使用方法是下载后把这个文件放在当前使用的theme目录里然后，在后台新建一个页面，页面模板选择 Current Plugins 然后发布就行了，需要注意的是，由于这是页面模板，wp的themes  DOM结构可能有所不同，所以有可能需要修改下源代码，修改从我在比较下面的部分写的注释 Main content开始，只要把DOM结构改成和你当前使用的wp模板一样就行了-__-</p>
<p><a href="http://www.box.net/index.php?rm=box_v2_download_shared_file&#038;file_id=f_80579859">点击下载</a><br />
P.S. 下载连接中提供的文件是使用和wordpress默认模板一样的结构。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/wp_current_plugins_page/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>让wordpress新用户注册后的密码明文显示，取消邮件通知</title>
		<link>http://blog.harrspy.com/wp_reg_password_nomail</link>
		<comments>http://blog.harrspy.com/wp_reg_password_nomail#comments</comments>
		<pubDate>Wed, 11 Apr 2007 06:49:03 +0000</pubDate>
		<dc:creator>harry</dc:creator>
				<category><![CDATA[harry]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://harryxu.cn/blog/?p=109</guid>
		<description><![CDATA[看了 千鸟的blog觉得这样很不错，直接把密码告诉新注册的用户，这样就避免了用户收不到密码的问题，于是就自己尝试改了一下。 以最新的wp2.1.3为例，打开blog目录下的wp-login.php 找到第246行的 wp_new_user_notification&#40;$user_id, $user_pass&#41;; 把这句注释掉或者删除 把248行的 wp_redirect&#40;'wp-login.php?checkemail=registered'&#41;; 改成 wp_redirect&#40;&#34;wp-login.php?checkemail=registered&#38;u=$user_login&#38;pass=$user_pass&#34;&#41;; 把339行的 elseif &#40; 'registered' == $_GET&#91;'checkemail'&#93; &#41; $errors&#91;'registered'&#93; = __&#40;'Registration complete. Please check your e-mail.'&#41;; 改成 elseif &#40; 'registered' == $_GET&#91;'checkemail'&#93; &#41; $errors&#91;'registered'&#93; = __&#40;'注册成功！&#60;br/&#62;&#60;br/&#62;用户名：'.$_GET&#91;'u'&#93;.'&#60;br/&#62;密码：'.$_GET&#91;'pass'&#93;.'&#60;br/&#62;（登录后可修改密码）'&#41;; 即可， 注意由于直接把中文写进了php源代码中，所以保存的时候要保存为和blog同样的编码，通常为 UTF-8]]></description>
			<content:encoded><![CDATA[<p>看了 <a href="http://blog.rexsong.com/?p=634" target="blank">千鸟的blog</a>觉得这样很不错，直接把密码告诉新注册的用户，这样就避免了用户收不到密码的问题，于是就自己尝试改了一下。<br />
以最新的wp2.1.3为例，打开blog目录下的wp-login.php<br />
<span id="more-66"></span><br />
找到第246行的</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">wp_new_user_notification<span style="color: #009900;">&#40;</span><span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_pass</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>把这句注释掉或者删除</p>
<p>把248行的</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">wp_redirect<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp-login.php?checkemail=registered'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>改成</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">wp_redirect<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;wp-login.php?checkemail=registered&amp;u=<span style="color: #006699; font-weight: bold;">$user_login</span>&amp;pass=<span style="color: #006699; font-weight: bold;">$user_pass</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>把339行的</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">elseif</span>	<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'registered'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'checkemail'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>	<span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'registered'</span><span style="color: #009900;">&#93;</span>		<span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Registration complete. Please check your e-mail.'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>改成</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">elseif</span>	<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'registered'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'checkemail'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span>	<span style="color: #000088;">$errors</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'registered'</span><span style="color: #009900;">&#93;</span>		<span style="color: #339933;">=</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'注册成功！&lt;br/&gt;&lt;br/&gt;用户名：'</span><span style="color: #339933;">.</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'u'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br/&gt;密码：'</span><span style="color: #339933;">.</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br/&gt;（登录后可修改密码）'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>即可， 注意由于直接把中文写进了php源代码中，所以保存的时候要保存为和blog同样的编码，通常为 UTF-8<br />
<img src="http://photo7.yupoo.com/20070411/145543_929378687_hqigtvgr.jpg"/></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.harrspy.com/wp_reg_password_nomail/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
