<?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>Made in WordPress in Chinese</title>
	<atom:link href="http://w.hxw.me/feed" rel="self" type="application/rss+xml" />
	<link>http://w.hxw.me</link>
	<description></description>
	<lastBuildDate>Tue, 06 Apr 2010 14:30:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WordPress 主循环和全局变量</title>
		<link>http://w.hxw.me/2009/08/w/42.htm</link>
		<comments>http://w.hxw.me/2009/08/w/42.htm#comments</comments>
		<pubDate>Thu, 27 Aug 2009 05:49:10 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[全局变量]]></category>
		<category><![CDATA[主循环]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/42.htm</guid>
		<description><![CDATA[我爱水煮鱼 翻译自：Global Variables and the WordPress Loop。]]></description>
			<content:encoded><![CDATA[<p><a href="http://zuosa.com/Status/18572619"><img src="http://zuosa.com/photo/mms/00/01/06/21566862.jpg" alt="" /></a></p>
<p>在默认主题的 <tt>index.php</tt> 中，主循环是以下面这些代码开始的：</p>
<pre><span style="color: blue">&lt;?php</span><span style="color: gray"> </span><span style="color: green">if</span><span style="color: gray"> </span><span style="color: olive">(</span><span style="color: blue">have_posts</span><span style="color: olive">())</span><span style="color: gray"> : </span><span style="color: blue">?&gt;</span>
<span style="color: blue">&lt;?php</span><span style="color: gray"> </span><span style="color: green">while</span><span style="color: gray"> </span><span style="color: olive">(</span><span style="color: blue">have_posts</span><span style="color: olive">())</span><span style="color: gray"> : </span><span style="color: blue">the_post</span><span style="color: olive">()</span><span style="color: gray">; </span><span style="color: blue">?&gt;</span></pre>
<p>下面是现在可用的全局变量：</p>
<ul>
<li> 全局变量 <strong>authordata</strong>，你可以使用以下代码调用它：
<pre><span style="color: green">global</span><span style="color: gray"> </span><span>$authordata</span><span style="color: gray">;
</span><span style="color: green">echo</span><span style="color: gray"> </span><span>$authordata</span><span style="color: gray">-&gt;</span><span style="color: blue">display_name</span><span style="color: gray">;</span></pre>
<p>通过<strong> authordata</strong> 这个全局变量还可以让你获取：last_name，first_name，ID，user_email，user_url，user_login，description 和其他。</li>
<li> 全局变量 <strong>post</strong>，你可以使用以下代码调用它：
<pre><span style="color: green">global</span><span style="color: gray"> </span><span>$post</span><span style="color: gray">;
</span><span style="color: green">echo</span><span style="color: gray"> </span><span>$post</span><span style="color: gray">-&gt;</span><span style="color: blue">post_title</span><span style="color: gray">;</span></pre>
<p>通过<strong>post</strong>这个全局变量还可以让你获取：ID，post_author，post_date，post_excerpt，comment_count 和其他。</li>
<li> 全局变量 <strong>post </strong>，你可以通过在一个函数中使用以下代码调用它：
<pre><span style="color: green">global</span><span style="color: gray"> </span><span>$post</span><span style="color: gray">;
</span><span style="color: green">echo</span><span style="color: gray"> </span><span>$post</span><span style="color: gray">-&gt;</span><span style="color: blue">post_content</span><span style="color: gray">;</span></pre>
<p>通过这种方法获取的日志内容是没有经过过虑的。如果你想按照你自己喜好去操纵日志的内容，比如自己设置日志内容的显示方式，通过这种方式获取的日志内容非常有用。</li>
<li>虽然没有快速的全局访问，但是 <strong>the_permalink</strong> 这个函数作的就是输出函数 <strong>get_permalink</strong> 在 $id 这个变量已经被设定情况下的结果。</li>
<li> 全局变量 <strong>id </strong>，你可以使用以下代码调用它：
<pre><span style="color: green">global</span><span style="color: gray"> </span><span>$id</span><span style="color: gray">;
</span><span style="color: green">echo</span><span style="color: gray"> </span><span>$id</span><span style="color: gray">;</span></pre>
</li>
</ul>
<p><a href="http://fairyfish.net/2007/07/07/global-variables-and-the-wordpress-loop/">我爱水煮鱼</a> 翻译自：<a class="external" href="http://weblogtoolscollection.com/archives/2007/06/06/global-variables-and-the-wordpress-loop/" target="_blank">Global Variables and the WordPress Loop</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/42.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yo2.cn，免费的wordpress的博客服务商</title>
		<link>http://w.hxw.me/2009/08/w/41.htm</link>
		<comments>http://w.hxw.me/2009/08/w/41.htm#comments</comments>
		<pubDate>Sun, 23 Aug 2009 18:27:04 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[服务商]]></category>
		<category><![CDATA[yo2.cn]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/41.htm</guid>
		<description><![CDATA[自带很多模板，非常精美，可以用live writer 发布日志。]]></description>
			<content:encoded><![CDATA[<p>yo2.cn，这个网站不是很大，他做的博客是基于wordpress的，提供 xxx.yo2.cn这样的免费二级域名，但是如果要自己绑定域名的话，一年三十几块，不是很贵。支持上传模板，自带很多模板，非常精美，可以用live writer 发布日志。</p>
<p><a rel="nofollow" href="http://www.douban.com/group/topic/7724081/" target="_blank">via</a> <a rel="nofollow" href="http://blog.yaofur.com/" target="_blank">http://blog.yaofur.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/41.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>红烧做啥</title>
		<link>http://w.hxw.me/2009/08/w/40.htm</link>
		<comments>http://w.hxw.me/2009/08/w/40.htm#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:41:39 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[braising]]></category>
		<category><![CDATA[红烧做啥]]></category>
		<category><![CDATA[hongshao]]></category>
		<category><![CDATA[zuosa]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/40.htm</guid>
		<description><![CDATA[做啥也公测，不是公测游戏，而是一个feed应用。]]></description>
			<content:encoded><![CDATA[<p>做啥也公测，不是公测游戏，而是一个feed应用。</p>
<p>1.可以通过做啥网推广你的博客，大话不敢说，如果你是新博客，基本上能保证三个月内你的流量都是来自做啥网；</p>
<p>2.通过做啥网订阅博客，订阅之后，你可以从 QQ，Gtalk，MSN，Skype 得到最快的博客通知，点击就可以阅读，不想看，就可以不点；</p>
<p>3.只要是 Feed 的URL，或者是博客的URL，都可以订阅。</p>
<p>只要30秒就可以了，如果你没有做啥网的用户，也无需害怕，注册和订阅可以同时进行，单独注册只要5秒钟。</p>
<p>现在，就请你点击：</p>
<p><a href="http://apps.zuosa.com/hongshao/"><img src="http://apps.zuosa.com/hongshao/theme/logo.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/40.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cos_slug_translator和cos_slug_converter：自动生成永久英语链接</title>
		<link>http://w.hxw.me/2009/08/w/39.htm</link>
		<comments>http://w.hxw.me/2009/08/w/39.htm#comments</comments>
		<pubDate>Thu, 20 Aug 2009 10:29:10 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[永久链接]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/39.htm</guid>
		<description><![CDATA[cos_slug_translator。另外一个相关插件cos_slug_converter。]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.storyday.com/wp-content/uploads/2008/09/cos_slug_translator.zip" target="_blank">cos_slug_translator</a>（点击下载）。另外一个相关插件<a href="http://www.storyday.com/wp-content/uploads/2008/12/cos_slug_converter.zip" target="_blank">cos_slug_converter</a>。</p>
<p><a href="http://xc84.com/wordpress-plugin-cos-slug-translator-cos-slug-converter">via</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/39.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Post2qzone：与Qzone和Live Space同步</title>
		<link>http://w.hxw.me/2009/08/w/38.htm</link>
		<comments>http://w.hxw.me/2009/08/w/38.htm#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:29:05 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[Live Space]]></category>
		<category><![CDATA[Qzone]]></category>
		<category><![CDATA[同步]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/38.htm</guid>
		<description><![CDATA[借用的是Qzone 和 Live Space 邮件发布的功能。]]></description>
			<content:encoded><![CDATA[<p>Qzone 和 Live Space 邮件发布的功能。</p>
<p>1.Qzone 的邮件发布只接受从 QQ Mail 寄来的邮件，这就要求必须使用 QQ 邮箱的 SMTP 服务向 Qzone 的指定邮箱发信以同步更新 Qzone。</p>
<blockquote><p>确认空间支持 socket 使用 SMTP 服务来发送邮件。</p>
<p>在设置的 Post2qzone 的页面设置 QQ 号、邮箱密码、邮件标题和邮件正文模板。</p>
<p>发布文章的时候，要在“Post to qzone”选项中中勾选“Confirm publish”才会同步。</p></blockquote>
<p>2.Live Space 的要求则宽松一些，可以自行设置发信的邮箱地址。</p>
<blockquote><p>登录到 Live Space，选择“选项”-&gt;“邮件发布”，在第一步中填入qq邮箱的地址；第二步中自己编造一 个 secret word ，第四步中选择“立即发布”。然后直接用文本编辑器打开 post2qzone.php 插件文件，在 function Halo() 下面添加一行代码，就可以同时更新到 Live Space 上。</p>
<p>function Halo($subject,$body){<br />
// BLOGNAME 替换为你的 Live Space 名称。比如网址 blogtest.spaces.live.com ，那么 BLOGNAME 就是 blogtest<br />
// SECRET 替换为 Live Space 设置中自己设定的单词，不要公开<br />
$this-&gt;AddAddress(”BLOGNAME.SECRET@spaces.live.com”,”BLOGNAME.SECRET@spaces.live.com”);<br />
$this-&gt;AddAddress(”{$this-&gt;qq}@qzone.qq.com”, “{$this-&gt;qq}@qzone.qq.com”);<br />
$this-&gt;Subject = $subject;<br />
$this-&gt;Body	= $body;<br />
return $this-&gt;Send();<br />
}</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/38.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国际化主题</title>
		<link>http://w.hxw.me/2009/08/w/36.htm</link>
		<comments>http://w.hxw.me/2009/08/w/36.htm#comments</comments>
		<pubDate>Wed, 19 Aug 2009 08:57:06 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[翻译]]></category>
		<category><![CDATA[国际化]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/08/w/36.htm</guid>
		<description><![CDATA[这个方法太复杂了，有更简单的，几分钟搞定。]]></description>
			<content:encoded><![CDATA[<p><strong>1 添加必要的函数 </strong></p>
<p>在functions.php 里添加：</p>
<blockquote><p>load_theme_textdomain( &#8216;Cats Who Code&#8217;,  TEMPLATEPATH.&#8217;/languages&#8217; );</p>
<p>$locale = get_locale();</p>
<p>$locale_file =  TEMPLATEPATH.&#8221;/languages/$locale.php&#8221;;</p>
<p>if ( is_readable($locale_file) )</p>
<p>require_once($locale_file);</p></blockquote>
<p><strong>2 国际化主题 </strong></p>
<p>&#8220;_e&#8221;是用来显示 &#8220;单纯&#8221;文本, __ 函数用于显示已经使用PHP标签的文本。  <strong>例如:</strong></p>
<blockquote><p>&lt;?php _e(&#8220;The page you&#8217;re looking for doesn&#8217;t exist&#8221;,  &#8220;Cats Who Code&#8221;); ?&gt;</p>
<p>&lt;?php the_content(__(&#8216;Read more&#8230;&#8217;, &#8220;Cats Who  Code&#8221;)); ?&gt;</p></blockquote>
<p>注意上面的文本域名(Cats Who Code)必须与functions.php里的保持一致。</p>
<p><strong>3 创建.po文件 </strong></p>
<p>一个免费的在线工具<a href="http://www.icanlocalize.com/tools/php_scanner">icanlocalize.com</a>可以帮你扫描PHP文件并创建.po文件。ICanLocalize  会自动提取所有包含__(&#8220;txt&#8221;, &#8220;domain&#8221;) 和 _e(&#8220;txt&#8221;,  &#8220;domain&#8221;) 的字符串。</p>
<p>或者通过专门的免费软件<a href="http://www.poedit.net/">PoEdit</a>来编辑Po文件。翻译每一个文本字符串，翻译完后保存.po文件。PoEdit会生产一个.mo文件。</p>
<p><strong>4 实施 </strong></p>
<p>获得你的语言和国家代码，例如，中文为zh_CN。打开wp-config.php文件查找WPLANG常数，改成：</p>
<p>define (&#8216;WPLANG&#8217;, &#8216;zh_CN&#8217;)。</p>
<p>via <a href="http://www.wordpress.la/how-to-make-a-translatable-wordpress-theme.html">wordpress.la</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/08/w/36.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress主题函数</title>
		<link>http://w.hxw.me/2009/01/w/29.htm</link>
		<comments>http://w.hxw.me/2009/01/w/29.htm#comments</comments>
		<pubDate>Thu, 29 Jan 2009 07:52:41 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[文档]]></category>
		<category><![CDATA[函数]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/01/w/29.htm</guid>
		<description><![CDATA[值得参考！]]></description>
			<content:encoded><![CDATA[<p><strong>（一）WordPress基本模板文件</strong>，一套完整的WordPress模板包括如下文件，但是只有index.php和style.css是不能缺少的：</p>
<ol>
<li>style.css : CSS(样式表)文件，不可缺少版权部分，真正CSS样式表可以放在其他文件；</li>
<li>index.php : 主页模板，不可缺少；</li>
<li>archive.php : Archive/Category模板，如果缺少，默认为index.php的显示；</li>
<li>404.php : Not Found 错误页模板，如果缺少，默认为index.php的显示；</li>
<li>comments.php : 留言/回复模板，不可缺少；</li>
<li>footer.php : Footer模板，可合并到index.php；</li>
<li>header.php : Header模板，可合并到index.php；</li>
<li>sidebar.php : 侧栏模板，可合并到index.php；</li>
<li>page.php : 内容页(Page)模板，如果缺少，默认为index.php的显示；</li>
<li>single.php : 内容页(Post)模板，如果缺少，默认为index.php的显示；</li>
<li>searchform.php : 搜索表单模板，可合并到index.php；</li>
<li>search.php : 搜索结果模板，如果缺少，默认为index.php的显示；</li>
</ol>
<p><strong>（二）基本条件判断Tag</strong></p>
<ol>
<li>is_home() : 是否为主页</li>
<li>is_single() : 是否为内容页(Post)</li>
<li>is_page() : 是否为内容页(Page)</li>
<li>is_category() : 是否为Category/Archive页</li>
<li>is_tag() : 是否为Tag存档页</li>
<li>is_date() : 是否为指定日期存档页</li>
<li>is_year() : 是否为指定年份存档页</li>
<li>is_month() : 是否为指定月份存档页</li>
<li>is_day() : 是否为指定日存档页</li>
<li>is_time() : 是否为指定时间存档页</li>
<li>is_archive() : 是否为存档页</li>
<li>is_search() : 是否为搜索结果页</li>
<li>is_404() : 是否为 “HTTP 404: Not Found” 错误页</li>
<li>is_paged() : 主页/Category/Archive页是否以多页显示</li>
</ol>
<p><strong>（三）Header部分常用到的PHP函数</strong></p>
<ol>
<li>&lt;?php bloginfo(&#8216;name&#8217;); ?&gt; : 博客名称(Title)</li>
<li>&lt;?php bloginfo(&#8217;stylesheet_url&#8217;); ?&gt; : CSS文件路径</li>
<li>&lt;?php bloginfo(&#8216;pingback_url&#8217;); ?&gt; : PingBack Url</li>
<li>&lt;?php bloginfo(&#8216;template_url&#8217;); ?&gt; : 模板文件路径</li>
<li>&lt;?php bloginfo(&#8216;version&#8217;); ?&gt; : WordPress版本</li>
<li>&lt;?php bloginfo(&#8216;atom_url&#8217;); ?&gt; : Atom Url</li>
<li>&lt;?php bloginfo(&#8216;rss2_url&#8217;); ?&gt; : RSS 2.o Url</li>
<li>&lt;?php bloginfo(&#8216;url&#8217;); ?&gt; : 博客 Url</li>
<li>&lt;?php bloginfo(&#8216;html_type&#8217;); ?&gt; : 博客网页Html类型</li>
<li>&lt;?php bloginfo(&#8216;charset&#8217;); ?&gt; : 博客网页编码</li>
<li>&lt;?php bloginfo(&#8216;description&#8217;); ?&gt; : 博客描述</li>
<li>&lt;?php wp_title(); ?&gt; : 特定内容页(Post/Page)的标题</li>
</ol>
<p><strong>（四）模板常用的PHP函数及命令</strong></p>
<ol>
<li>&lt;?php get_header(); ?&gt; : 调用Header模板</li>
<li>&lt;?php get_sidebar(); ?&gt; : 调用Sidebar模板</li>
<li>&lt;?php get_footer(); ?&gt; : 调用Footer模板</li>
<li>&lt;?php the_content(); ?&gt; : 显示内容(Post/Page)</li>
<li>&lt;?php if(have_posts()) : ?&gt; : 检查是否存在Post/Page</li>
<li>&lt;?php while(have_posts()) : the_post(); ?&gt; : 如果存在Post/Page则予以显示</li>
<li>&lt;?php endwhile; ?&gt; : While 结束</li>
<li>&lt;?php endif; ?&gt; : If 结束</li>
<li>&lt;?php the_time(&#8216;字符串&#8217;) ?&gt; : 显示时间，时间格式由“字符串”参数决定，具体参考PHP手册</li>
<li>&lt;?php comments_popup_link(); ?&gt; : 正文中的留言链接。如果使用 comments_popup_script() ，则留言会在新窗口中打开，反之，则在当前窗口打开</li>
<li>&lt;?php the_title(); ?&gt; : 内容页(Post/Page)标题</li>
<li>&lt;?php the_permalink() ?&gt; : 内容页(Post/Page) Url</li>
<li>&lt;?php the_category(&#8216;,&#8217;) ?&gt; : 特定内容页(Post/Page)所属Category</li>
<li>&lt;?php the_author(); ?&gt; : 作者</li>
<li>&lt;?php the_ID(); ?&gt; : 特定内容页(Post/Page) ID</li>
<li>&lt;?php edit_post_link(); ?&gt; : 如果用户已登录并具有权限，显示编辑链接</li>
<li>&lt;?php get_links_list(); ?&gt; : 显示Blogroll中的链接</li>
<li>&lt;?php comments_template(); ?&gt; : 调用留言/回复模板</li>
<li>&lt;?php wp_list_pages(); ?&gt; : 显示Page列表</li>
<li>&lt;?php wp_list_categories(); ?&gt; : 显示Categories列表</li>
<li>&lt;?php next_post_link(&#8216;%link&#8217;); ?&gt; : 下一篇文章链接</li>
<li>&lt;?php previous_post_link(&#8216;%link&#8217;); ?&gt; : 上一篇文章链接</li>
<li>&lt;?php get_calendar(); ?&gt; : 日历</li>
<li>&lt;?php wp_get_archives() ?&gt; : 显示内容存档</li>
<li>&lt;?php posts_nav_link(); ?&gt; : 导航，显示上一篇/下一篇文章链接</li>
<li>&lt;?php include(TEMPLATEPATH . &#8216;/文件名&#8217;); ?&gt; : 嵌入其他文件，可为定制的模板或其他类型文件</li>
</ol>
<p><strong>（五）与模板相关的其他函数</strong></p>
<ol>
<li>&lt;?php _e(&#8216;Message&#8217;); ?&gt; : 输出相应信息</li>
<li>&lt;?php wp_register(); ?&gt; : 显示注册链接</li>
<li>&lt;?php wp_loginout(); ?&gt; : 显示登录/注销链接</li>
<li>&lt;!–next page–&gt; : 将当前内容分页</li>
<li>&lt;!–more–&gt; : 将当前内容截断，以不在主页/目录页显示全部内容</li>
<li>&lt;?php timer_stop(1); ?&gt; : 网页加载时间(秒)</li>
<li>&lt;?php echo get_num_queries(); ?&gt; : 网页加载查询量</li>
</ol>
<p>via <a href="http://neolee.cn/wordpress/wordpress-theme-functions/" target="_blank">老N</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/01/w/29.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Comments Link Redirect：保护你的PageRank</title>
		<link>http://w.hxw.me/2009/01/w/22.htm</link>
		<comments>http://w.hxw.me/2009/01/w/22.htm#comments</comments>
		<pubDate>Thu, 22 Jan 2009 14:47:40 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[PageRank]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/01/w/22.htm</guid>
		<description><![CDATA[现在对 PageRank 真的不在乎，网站，哪怕是只给一个人看的也可以！]]></description>
			<content:encoded><![CDATA[<p>Denis的WP插件<a href="http://fairyfish.net/2009/01/22/comments-link-redirect/" target="_blank">Comments Link Redirect</a>，把留言者的链接和留言中链接的URL转化为一个跳转链接，比如：</p>
<p>http://hongxiaowan.com/?r=http://superdenis.com/</p>
<p>这样，就可以：</p>
<ol>
<li>让不遵循nofollow的搜索引擎不会因为垃圾留言而降低你的排名</li>
<li>Spammer 即使成功留言，也不会被搜索引擎索引。</li>
</ol>
<p>激活插件后，请手工在robots.txt中添加一行以下代码：</p>
<p>disallow /?r=*</p>
<p>不过，百度是不遵守robots.txt协议的，即使是谷歌，偶尔也会过界。</p>
<p>因此，我在插件的基础上进行了修改，思路是用Javascript转向取代Php转向，这样的好处是：</p>
<ol>
<li>搜索引擎即使不遵守robots.txt协议，也不会去抓取；</li>
<li>节约你的服务器资源；</li>
<li>不用修改robots.txt。</li>
</ol>
<p>下载：</p>
<ol>
<li><a href="http://wpcn.googlecode.com/files/comments-link-redirect.zip" target="_blank">Denis的Php转向版本</a></li>
<li><a href="http://wuil.googlecode.com/files/comments-link-redirect.rar">Javascript转向版本</a></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/01/w/22.htm/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>谢谢我爱水煮鱼,Leslie和Yixia</title>
		<link>http://w.hxw.me/2009/01/w/17.htm</link>
		<comments>http://w.hxw.me/2009/01/w/17.htm#comments</comments>
		<pubDate>Wed, 21 Jan 2009 16:46:48 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[固定宽度]]></category>
		<category><![CDATA[两栏]]></category>

		<guid isPermaLink="false">http://w.api.li/2009/01/w/17.htm</guid>
		<description><![CDATA[呵呵，这里样子又变了。]]></description>
			<content:encoded><![CDATA[<p>你可以看到，这里的样子变了，因为时间比较少，所以，我根据PureCSS，请徒弟帮我改了一个ColorCSS，也是纯CSS，没有图片的。</p>
<p>WordPress主题设计爱好者非著名设计师<a class="external" href="http://www.creadr.com/" target="_blank">Leslie </a>设计，<a class="external" href="http://www.e-xia.com/" target="_blank">Yixia</a> 编码，<a href="http://fairyfish.net/2008/08/13/purecss-theme/" target="_blank">我爱水煮鱼</a>负责发布的这款主题，也是因为时间关系，没有能够拿到去权的版本，因此请学生在这个主题的基础上，重新写了这个主题。</p>
<p>谢谢我爱水煮鱼,Leslie和Yixia，谢谢我的徒弟，汗颜，我也是一边学，一边教&#8230;有时还要请教我的徒弟。</p>
<p>这个主题作为徒弟的习作，还不完美，祝你们牛年快乐，新年多多赚钱。</p>
<p>原PureCSS主题请点击：</p>
<p><a class="external" href="http://demo.fairyfish.com/index.php?wptheme=PureCSS" target="_blank">预览</a> | <a class="external" href="http://demo.fairyfish.com/wp-content/uploads/PureCSS.zip" target="_blank">下载</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2009/01/w/17.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>纪念Wordpress5周年，做啥诞生一周年</title>
		<link>http://w.hxw.me/2008/05/w/11.htm</link>
		<comments>http://w.hxw.me/2008/05/w/11.htm#comments</comments>
		<pubDate>Wed, 28 May 2008 05:51:33 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[生日]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[做啥]]></category>

		<guid isPermaLink="false">http://w.api.li/s/11/</guid>
		<description><![CDATA[今天是Wordpress5周年（Tuesday, May 27th，美国，中国这里是5月28日）。]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.zuosa.com/photo/mms/00/00/43/81617338.jpg" alt="Zuosa图片" /></p>
<p>今天是Wordpress5周年（Tuesday, May 27th，美国，中国这里是5月28日）。</p>
<p><a href="http://jandan.net/2008/05/26/wordpress-5th-birthday-party.html">煎蛋</a></p>
<blockquote><p>Wordpress 5周岁了(<a href="http://wordpress.org/development/2003/05/wordpress-now-available/">从这个0.7版本算起</a>)，本月27日Matt 那伙人将在旧金山某地开一个生日Party，有兴趣、有档期、有机票、有船票、有火车票均可前往，Happy Together!# 详情请咨询<a href="http://wordpress.org/development/2008/05/birthday-party/">WordPress.org</a> ，Party 地址<a href="http://www.111minnagallery.com/">111 Minna Gallery</a></p></blockquote>
<p><a href="http://www.underone.com/2008/05/26/5th-birthday-of-wordpress/">默默の丸</a></p>
<blockquote><p><a href="http://ma.tt/">matt</a>大大说，从<a href="http://wordpress.org/development/2003/05/wordpress-now-available/">0.7版本</a>开始算起到今年5月27号，WordPress整整5岁了。</p>
<p>当然，他们的<a href="http://www.facebook.com/event.php?eid=44552835108">活动</a>咱是没命参加了。象征性的遥祝一下算了。希望有朝一日我们也能庆祝<a href="http://www.wpcng.com/">WP中文团队</a>的五周岁:)</p></blockquote>
<p><a title="WordPress 5周岁生日快乐" rel="bookmark" href="http://www.marcher.com.cn/?p=529">物以类聚</a></p>
<blockquote><p>5月27日是WordPress的生日。</p>
<p>从最早的0.7发行版到现在已经是5年时间了，<a href="http://wordpress.org/development/2008/05/birthday-party/">祝WordPress生日快乐</a>！</p></blockquote>
<p><strong>今天同时也是<a href="http://zuosa.com">做啥</a>诞生的一周年。2007年5月28日，<a href="http://zuosa.com">做啥</a>诞生，一年后的今天，做啥已经成为微博客的技术发动机之一，希望在未来的一年里，能够继续灿烂。</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2008/05/w/11.htm/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>wordpress mu 绑定顶级域名的插件</title>
		<link>http://w.hxw.me/2008/04/w/4.htm</link>
		<comments>http://w.hxw.me/2008/04/w/4.htm#comments</comments>
		<pubDate>Wed, 16 Apr 2008 17:45:56 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[WPMU]]></category>
		<category><![CDATA[域名绑定]]></category>

		<guid isPermaLink="false">http://w.api.li/s/4/</guid>
		<description><![CDATA[可以比较方便的完成这个功能。]]></description>
			<content:encoded><![CDATA[<p>手工wordpress mu 绑定顶级域名毕竟比较麻烦，这里有个<a href="http://wpmudev.org/project/Multi-Site-Manager">插件</a>，可以比较方便的完成这个功能。002版的界面是由<a href="http://kingler.net/">Kingler</a>带来的，并且增加了一些功能：</p>
<ul>
<li>当添加一个新站点的时候，一个博客被添加到新网站的根目录，类似Wpmu的安装。</li>
<li>可以使用一个特殊的Holding Site从任何网站删除任何博客。</li>
<li>可以在配置里删除网站和博客。</li>
</ul>
<p>激活和设置一些功能，你需要在插件的源程序设置一些参数。003版增加了一些：</p>
<ul>
<li>生成新网站的时候，可以克隆Sitemeta的设置</li>
<li>用来识别网站的选项</li>
<li>当生成新网站和新博客的时候，隐藏Table消息。</li>
</ul>
<p>更新004版：</p>
<ul>
<li>生成新站点的时候，可以勾选克隆以前的站点的Sitemeta</li>
<li>site-admins现在是默认的被克隆的， 除非你勾选。</li>
</ul>
<p>作者: <a href="http://wpmudev.org/profile/David%20Dean/">David Dean</a></p>
<p>类型: WPMU Plugin</p>
<p>生成: 2007-03-08 19:19:32</p>
<p>最后修改: 2007-09-28 15:25:40</p>
<p><a href="http://wpmudev.org/download/360405623_njsl-sites-004.php">004版</a> <a href="http://wpmudev.org/download/1197125646_njsl-sites-003.php">003版</a> <a href="http://wpmudev.org/download/348728207_njsl-sites-002.php">002版</a> <a href="http://wpmudev.org/download/1995973220_njsl-sites.php">原版</a></p>
<p>[谢谢<a title="关于小站和我" rel="bookmark" href="http://blog.ibloghosting.com/about">jjingliu</a>提供的信息]</p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2008/04/w/4.htm/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Google相关链接插件标签版</title>
		<link>http://w.hxw.me/2008/04/w/8.htm</link>
		<comments>http://w.hxw.me/2008/04/w/8.htm#comments</comments>
		<pubDate>Sat, 12 Apr 2008 16:04:09 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[Google相关链接插件标签版]]></category>
		<category><![CDATA[Google搜索API的JSON版]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[做啥]]></category>
		<category><![CDATA[会议]]></category>

		<guid isPermaLink="false">http://w.api.li/s/8/</guid>
		<description><![CDATA[Google related Links应该加上Adsense。]]></description>
			<content:encoded><![CDATA[<p>Google相关链接插件标签版（Google Tagged Links），基于<a href="http://blogoscoped.com/archive/2008-04-09-n26.html">Google搜索API的JSON版</a>， <a href="http://en.z.api.li/s/8/">做啥主题插件</a>，创意来自于<a href="http://blogoscoped.com/archive/2006-04-04-n84.html">Google相关链接</a>。</p>
<p>1.<a href="http://hongxiaowan.com/wp-content/plugins/google_tagged_links.rar">下载</a>。</p>
<p>2.解压上传到wp-content/plugins，激活，<span style="text-decoration: line-through"><strong>无需设置</strong>，直接在帖子中显示</span>，根据iFire的建议，已经更新，可以在后台设置。</p>
<p><img src="http://zuosa.com/photo/mms/00/00/39/02114750.jpg" alt="Zuosa图片" /></p>
<p><img src="http://zuosa.com/photo/mms/00/00/39/10214751.jpg" alt="Zuosa图片" /></p>
<p>更新：</p>
<p>1.把Google Adsense广告作为默认tab，我记得<a href="http://blogoscoped.com/">Philipp</a>说过Google related Links应该加上Adsense。<a href="http://ifire.cn/">iFire</a>也建议把Google Adsense广告作为默认。</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/39/51614755.jpg" alt="Zuosa图片" /></p>
<p>2.在后台可以设置Google Adsense广告的帐号，同时选择你需要显示的tab。</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/39/62014756.jpg" alt="Zuosa图片" /></p>
<p>转自：<a href="http://cn.hongxiaowan.com/4/">Google相关链接插件标签版</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2008/04/w/8.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>超级推客2008年愚人节版</title>
		<link>http://w.hxw.me/2008/04/w/10.htm</link>
		<comments>http://w.hxw.me/2008/04/w/10.htm#comments</comments>
		<pubDate>Mon, 31 Mar 2008 16:19:45 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[评论插件]]></category>
		<category><![CDATA[超级推客]]></category>
		<category><![CDATA[supertwitter]]></category>

		<guid isPermaLink="false">http://w.api.li/s/10/</guid>
		<description><![CDATA[这个插件是在是太折腾服务器了，请慎用。挂了别怪我！]]></description>
			<content:encoded><![CDATA[<p>插件下载在<a href="http://api.li/zuosa/supertwitter2008-04-01.rar">这里</a>，有任何问题请加hongxiaowan(at)gmail.com交流，欢迎你的新点子。</p>
<blockquote><p>1.推送博客的Tag和标题到微博客；</p>
<p>2.推送博客的评论到微博客，整合了做啥评论插件；</p>
<p>3.博客读者可以在后台绑定微博客用户（暂时支持做啥，将很快支持Twitter，饭否，叽歪） ；</p></blockquote>
<p>该Wordpress插件包括三个部分：usermeta，userextra和supertwitter，解压后上传至wp-content/plugins，WPMU用户需要把usermeta和userextra上传至wp-content/mu-plugins</p>
<p>1.Usermeta插件：请按图设置</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/37/30214163.jpg" alt="Zuosa图片" /></p>
<p>2. Userextra插件； 注意增加两个字段名，zs_username和zs_password，这个是为了绑定博客的做啥用户名和密码用的。</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/37/41314164.jpg" alt="Zuosa图片" /></p>
<p>用户可以只输入做啥的用户名，他的评论将显示在博客的评论专用帐号内，如果同时输入密码，评论将会出现在他自己的帐号内。</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/37/52414165.jpg" alt="Zuosa图片" /></p>
<p>3.超级推客插件愚人节版；该插件必须Usermeta和Userextra两个插件的支持：</p>
<p><img src="http://www.zuosa.com/photo/mms/00/00/37/60514166.jpg" alt="Zuosa图片" /></p>
<p>本插件的贡献者：</p>
<p><a href="http://alexking.org/projects/wordpress">Alex King</a>：本插件的原型是修改自Twitter Tools的Zuosa Tools；</p>
<p><a href="http://qienkuen.org/">Qienkuen</a>：简化了SupperTwitter，去掉了目录支持和修改推送两个垃圾功能；</p>
<p><a href="http://ifire.cn/">iFire</a>：提供了若干建议，目前尚有许多功能没有实现，push到评论帐户是私信的一个中间方案，也算是对iFire创意的一种承认和支持；</p>
<p><a href="http://zuosa.com/alex">Alex</a>：第二个Alex，看来我和Alex就是有缘，他决定用开放的精神，支持尽可能多的微博客。</p>
<p>转自：<br />
<a href="http://z.api.li/s/32/">超级推客2008年愚人节版</a></p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2008/04/w/10.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wordpress的Twitter按钮</title>
		<link>http://w.hxw.me/2007/07/w/6.htm</link>
		<comments>http://w.hxw.me/2007/07/w/6.htm#comments</comments>
		<pubDate>Mon, 09 Jul 2007 15:44:45 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[插件]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://w.api.li/s/6/</guid>
		<description><![CDATA[虽然这个很简单，当时可没有几个人想到。]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.zuosa.com/photo/mms/00/00/3C/20615462.jpg" alt="Zuosa图片" /></p>
<p>很简单，把这个代码插到模板中去：</p>
<p>&lt;a href=”http://twitter.com/home?status=&lt;?php the_permalink() ?&gt;%20&lt;?php the_title(); ?&gt;” target=_blank rel=nofollow title=”twitter”&gt;Twitter&lt;/a&gt;</p>
<p>发布之后，根据iFire的<a href="http://if.api.li/20080409-ttbmk">Twitter Bookmark</a>和Heart5的<a href="http://hongxiaowan.com/twitter-button-for-wordpress/">意见</a>修改成:</p>
<p>&lt;a href=http://twitter.com/home?status=&lt;?php urlencode(get_the_permalink()) ?&gt;%20&lt;?php urlencode(get_the_title()); ?&gt; target=_blank rel=nofollow title=”twitter”&gt;Twitter&lt;/a&gt;</p>
<p>虽然这个很简单，当时可没有几个人想到。</p>
<p><a href="http://www.foodry.com/blog/2007/04/30/now-with-twitter-support/">Now with Twitter support!</a></p>
<p><a href="http://milkaddict.com/?p=14">Twitter button</a></p>
<p><a href="http://www.scripting.com/stories/2007/04/21/firstUserfacingTwitterFeat.html">First user-facing Twitter</a></p>
<p><a href="http://blogs.opml.org/dwatts/2007/04/22#When:1:01:23PM">I still can’t twitter from OPML Editor. If I had a Twitter button</a></p>
<p>还有其他形式的Twitter按钮，请参考<a href="http://if.api.li/20080409-ttbmk">Twitter Bookmark</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2007/07/w/6.htm/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Wordpress模板: 搜索引擎</title>
		<link>http://w.hxw.me/2007/05/w/9.htm</link>
		<comments>http://w.hxw.me/2007/05/w/9.htm#comments</comments>
		<pubDate>Tue, 22 May 2007 16:09:14 +0000</pubDate>
		<dc:creator>Hong Xiaowan</dc:creator>
				<category><![CDATA[主题]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[搜索引擎]]></category>
		<category><![CDATA[模板]]></category>

		<guid isPermaLink="false">http://w.api.li/s/9/</guid>
		<description><![CDATA[教训，图片还是放在做啥好！]]></description>
			<content:encoded><![CDATA[<p>做了个搜索引擎的模板：</p>
<p><strong>A. Search Engine 1.0</strong></p>
<p>例子: <a href="http://magic.api.li/">Over Magic</a></p>
<p><img src="http://hongxiaowan.googlepages.com/Over-Magic.png" alt="http://hongxiaowan.googlepages.com/Over-Magic.png" /></p>
<p>下载: <a href="http://hongxiaowan.googlepages.com/sc1.0.rar"> Search Engine 1.0</a></p>
<p><strong>B. Google Looking 1.0</strong></p>
<p>例子: <a href="http://www.magicaldiamond.com/">Magical Diamond Accessories Factory</a></p>
<blockquote><p>订阅的链接在左上角：</p>
<p><img src="http://hongxiaowan.googlepages.com/Magical-Diamond-Top-Left.png" alt="" /></p>
<p>右上角是登陆和注册：</p>
<p><img src="http://hongxiaowan.googlepages.com/Magical-Diamond-Top-Right.png" alt="" /></p>
<p>搜索：</p>
<p><img src="http://hongxiaowan.googlepages.com/Magical-Diamond-List-Page.png" alt="" /></p></blockquote>
<p>下载: <a href="http://hongxiaowan.googlepages.com/google.rar">Google Looking 1.0</a></p>
<blockquote><p><strong>logo.psd</strong> 是Logo的源文件，你可以自己修改。</p>
<blockquote><p><img src="http://hongxiaowan.googlepages.com/google-looking-logo.gif" alt="http://hongxiaowan.googlepages.com/google-looking-logo.gif" /></p></blockquote>
<p><strong>QLRG.TTF</strong>是字体。</p>
<blockquote><p><img src="http://hongxiaowan.googlepages.com/Google-Looking-Font.png" alt="http://hongxiaowan.googlepages.com/Google-Looking-Font.png" /></p></blockquote>
<p><strong>nav_logo.png 导航图片，可以自己修改下。</strong></p>
<blockquote><p><img src="http://hongxiaowan.googlepages.com/Google-looking-nav_logo.png" alt="http://hongxiaowan.googlepages.com/Google-looking-nav_logo.png" /></p></blockquote>
<p>分页导航。</p>
<blockquote><p><img src="http://hongxiaowan.googlepages.com/google-looking-explorer.png" alt="http://hongxiaowan.googlepages.com/google-looking-explorer.png" /></p></blockquote>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://w.hxw.me/2007/05/w/9.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
