<?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://www.ooso.net/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ooso.net</link>
	<description>Linux + Apache + Mysql + Php + Flash</description>
	<lastBuildDate>Sat, 07 Aug 2010 00:23:51 +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 plugin &#8220;search engine related posts&#8221; 1.2发布</title>
		<link>http://www.ooso.net/archives/516</link>
		<comments>http://www.ooso.net/archives/516#comments</comments>
		<pubDate>Sun, 29 Mar 2009 02:19:45 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=516</guid>
		<description><![CDATA[去年写了个wordpress插件&#8221;search engine related posts&#8220;，不知不觉也有将近一年没有更新过了。这个插件的作用：当用户从google搜索到你的博客上，自动显示站内搜索相关的主题。这里没有用到数据库来做相关的搜索工作，而是利用google公开的一些api进行查询，因此对个人博客来说，不会增加服务器负载，完全只是一段js代码而已。
本次1.2相对第一个版本的改动

将javascript提取出来放到单独的js文件里，这是为了减小每个url的大小，浏览器也会对外部js进行缓存，有效的减少带宽输出

				<span class="readmore"><a href="http://www.ooso.net/archives/516" title="wordpress plugin &#8220;search engine related posts&#8221; 1.2发布">阅读全文（479字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>去年写了个wordpress插件&#8221;<a href="http://www.ooso.net/archives/392">search engine related posts</a>&#8220;，不知不觉也有将近一年没有更新过了。这个插件的作用：当用户从google搜索到你的博客上，自动显示站内搜索相关的主题。这里没有用到数据库来做相关的搜索工作，而是利用google公开的一些api进行查询，因此对个人博客来说，不会增加服务器负载，完全只是一段js代码而已。</p>
<h2>本次1.2相对第一个版本的改动</h2>
<ul>
<li>将javascript提取出来放到单独的js文件里，这是为了减小每个url的大小，浏览器也会对外部js进行缓存，有效的减少带宽输出</li>
<li>js文件已经用<a href="http://developer.yahoo.com/yui/compressor/">yui compressor</a>压缩过，只有900多个字节</li>
<li>支持多语种搜索，修改文件中的$related_posts_lang变量即可，中文用户需要将这个值修改为zh-CN(默认是en-US)</li>
<li>可以去除网页标题中的站名以及部分连接字符，让标题更简短且有意义</li>
</ul>
<h2>下载search engine related posts 1.2</h2>
<p><a href="http://wordpress.org/extend/plugins/search-engine-related-posts/">http://wordpress.org/extend/plugins/search-engine-related-posts/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/516/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>升级到wordpress 2.6失败</title>
		<link>http://www.ooso.net/archives/445</link>
		<comments>http://www.ooso.net/archives/445#comments</comments>
		<pubDate>Wed, 16 Jul 2008 06:36:03 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/445</guid>
		<description><![CDATA[第一时间往wordpress 2.6升级，这次不像往常那么顺利，升级完成之后给了一个好大的404错误提示页。根据往常的经验，这个应该是Permalinks的rewrite规则出现了问题，删除wordpress自动生成的.htaccess，就能显示首页，但是内容页通通显示无法找到 T_T
在wordpress的支持论坛上也看到有相同情况的人，为数不少，看来2.6还真是个有瑕疵的版本。解决办法:
给category和tag都设置一个初始值，比如category以及tag。
我的Permalinks是/index.php/archives/%post_id%，因为原来的服务器不支持rewrite..
]]></description>
			<content:encoded><![CDATA[<p>第一时间往wordpress 2.6升级，这次不像往常那么顺利，升级完成之后给了一个好大的404错误提示页。根据往常的经验，这个应该是Permalinks的rewrite规则出现了问题，删除wordpress自动生成的.htaccess，就能显示首页，但是内容页通通显示无法找到 T_T</p>
<p>在<a href="http://wordpress.org/support/">wordpress的支持论坛</a>上也看到有相同情况的人，为数不少，看来2.6还真是个有瑕疵的版本。解决办法:</p>
<blockquote><p>给category和tag都设置一个初始值，比如<b>category</b>以及<b>tag</b>。</p></blockquote>
<p>我的Permalinks是<b>/index.php/archives/%post_id%</b>，因为原来的服务器不支持rewrite..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/445/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>基于yui grids的wordpress主题 &#8212; YUI Autogrid Minima</title>
		<link>http://www.ooso.net/archives/440</link>
		<comments>http://www.ooso.net/archives/440#comments</comments>
		<pubDate>Wed, 02 Jul 2008 22:54:34 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/440</guid>
		<description><![CDATA[在yuiblog上看到这个基于yui grids的主题，样式简单到了不行，可能正是某些人喜欢的类型。贴图为证：

YUI Autogrid Minima主题的特点


				<span class="readmore"><a href="http://www.ooso.net/archives/440" title="基于yui grids的wordpress主题 &#8212; YUI Autogrid Minima">阅读全文（186字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在<a href="http://yuiblog.com/blog/2008/07/02/autogrid-wptheme/">yuiblog</a>上看到这个基于<a href="/?tag=yui">yui</a> grids的主题，样式简单到了不行，可能正是某些人喜欢的类型。贴图为证：</p>
<p><img src="http://www.ooso.net/wp-content/uploads/2008/07/yui_grids.gif" alt="yui_grids wordpress theme" title="yui_grids" width="500" height="278" class="alignnone size-full wp-image-441" /></p>
<h3>YUI Autogrid Minima主题的特点</h3>
<ul>
<li>干净简洁的html标签</li>
<li>布局会随着浏览器的大小自动调整，可以试着拖拽浏览器边框，会发现怎么也不出现横向滚动条，侧边栏会自适应宽度</li>
<li>固定不动的侧边栏，像某些对联广告一样</li>
<li>还是那句，样式朴素到了不行</li>
</ul>
<p>[<a href="http://yuiblog.com/assets/autogridminimal.zip">你可以点击这里下载这个主题</a>.]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/440/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>wordpress plugin &#8211; search engine related posts</title>
		<link>http://www.ooso.net/archives/392</link>
		<comments>http://www.ooso.net/archives/392#comments</comments>
		<pubDate>Fri, 02 May 2008 05:42:00 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=392</guid>
		<description><![CDATA[Table of content

Description
Usage

				<span class="readmore"><a href="http://www.ooso.net/archives/392" title="wordpress plugin &#8211; search engine related posts">阅读全文（854字）</a></span>]]></description>
			<content:encoded><![CDATA[<h3>Table of content</h3>
<ul>
<li><a href="#Description">Description</a></li>
<li><a href="#Usage">Usage</a></li>
<li><a href="#Download">Download</a></li>
<li><a href="#History">History</a></li>
<li><a href="#Link">Link</a></li>
</ul>
<h3>Description</h3>
<p><b>English version</b></p>
<p>When someone is referred from a search engine like Google, the plugin show your blog content matched the terms they search for.</p>
<p><b>中文说明</b></p>
<p>当用户从google搜索到你的博客上，这个wordpress <a href="/?tag=plugin">插件</a>会根据用户搜索的关键词显示你的博客上更多的相关内容。目前也只对google生效，下一个版本将对baidu生效。</p>
<p>这个插件完全使用javascript加上google的api完成，不需要占用服务器端的资源，环保且安全。</p>
<h3 id="Usage">Usage</h3>
<p><b>English version:</b></p>
<ul>
<li>unzip it</li>
<li>Put <b>&lt;div style="display:none" id="search_content"&gt;&lt;/div&gt;</b> at the place in your template where you want the list of related posts</li>
<li>Copy search_related_posts.php to direcotry wp-contents/plugin and activate the plugin.</li>
<li>done!</li>
</ul>
<p><b>中文说明:</b></p>
<ul>
<li>解压</li>
<li>在wordpress模板中添加一个id为search_content的html标签，比如
<div class="igBar"><span id="lcode-2"><a href="#" onclick="javascript:showCodeTxt('code-2'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-2">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;div id=<span style="color:#CC0000;">"search_content"</span> style=<span style="color:#CC0000;">"display:none;"</span>&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;h1&gt;相关搜索结果&lt;/h1&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/div&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></li>
<li>复制search_related_posts.php到wp-contents/plugin目录，并激活插件.</li>
<li>done! 现在你可以试着从google搜索上先搜到自己的博客，然后点击进去看看插件的效果。</li>
</ul>
<h3 id="Download">Download</h3>
<p><a href="http://wordpress.org/extend/plugins/search-engine-related-posts/">latest search engine related posts</a></p>
<h3 id="History">History</h3>
<ul>
<li><a href="http://www.ooso.net/index.php/archives/516">search engine related posts 1.2</a></li>
<li><a href="http://www.ooso.net/index.php/archives/392">search engine related posts 1.0</a></li>
</ul>
<h3 id="Link">Link</h3>
<ul>
<li><a href="http://wordpress.org/extend/plugins/search-engine-related-posts/">search engine related posts at wordpress.org</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/392/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>在wordpress.org上提交了inline-js</title>
		<link>http://www.ooso.net/archives/386</link>
		<comments>http://www.ooso.net/archives/386#comments</comments>
		<pubDate>Fri, 04 Apr 2008 01:35:45 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=386</guid>
		<description><![CDATA[前几天在wordpress.org的plugin list里提交了inline-js，这是我写的第一个wordpress插件，估计实用价值和使用者都不是太多:)但是我想如果有更多的使用者对这个plugin提一些意见的话，可能会更加完善，很希望能看到这个插件能持续发展，如果我能挤出更多的时间来维护的话。
]]></description>
			<content:encoded><![CDATA[<p>前几天在wordpress.org的plugin list里提交了<a href="http://wordpress.org/extend/plugins/inline-javascript/">inline-js</a>，这是我写的第一个<a href="/index.php?tag=wordpress">wordpress</a>插件，估计实用价值和使用者都不是太多:)但是我想如果有更多的使用者对这个plugin提一些意见的话，可能会更加完善，很希望能看到这个插件能持续发展，如果我能挤出更多的时间来维护的话。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/386/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>升级到wordpress 2.5 RC1</title>
		<link>http://www.ooso.net/archives/371</link>
		<comments>http://www.ooso.net/archives/371#comments</comments>
		<pubDate>Thu, 20 Mar 2008 00:44:41 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/?p=371</guid>
		<description><![CDATA[迫不及待的升级到了wordpress 2.5 RC1。升级过程还算顺利，就是上传的时候多花了点时间。wordpress 2.5最大的改变就是后台部分，由深蓝白底变成了浅蓝白底，导航和写文章的页面修改很成功，用起来颇为顺手，这也是我升级的最大动力之一。
插件方面，兼容性良好，总体来说，这是一次成功的升级，胜利的升级。
]]></description>
			<content:encoded><![CDATA[<p>迫不及待的升级到了<a href="/index.php?tag=wordpress">wordpress</a> 2.5 RC1。升级过程还算顺利，就是上传的时候多花了点时间。wordpress 2.5最大的改变就是后台部分，由深蓝白底变成了浅蓝白底，导航和写文章的页面修改很成功，用起来颇为顺手，这也是我升级的最大动力之一。</p>
<p>插件方面，兼容性良好，总体来说，这是一次成功的升级，胜利的升级。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/371/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>inline-js 0.4 —— wordpress plugin</title>
		<link>http://www.ooso.net/archives/379</link>
		<comments>http://www.ooso.net/archives/379#comments</comments>
		<pubDate>Mon, 10 Mar 2008 16:30:25 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/379</guid>
		<description><![CDATA[Inline-js plugin minor update. It now work fine with exec-php plugin.
Download
Inline-js 0.4
详细信息

				<span class="readmore"><a href="http://www.ooso.net/archives/379" title="inline-js 0.4 —— wordpress plugin">阅读全文（107字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>Inline-js plugin minor update. It now work fine with exec-php plugin.</p>
<h3>Download</h3>
<p><a href="http://customcode.googlecode.com/files/inline-js.latest.zip">Inline-js 0.4</a></p>
<h3>详细信息</h3>
<p><a href="http://www.ooso.net/index.php/inline-js">inline-js wordpress plugin</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/379/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>用vim来写wordpress</title>
		<link>http://www.ooso.net/archives/278</link>
		<comments>http://www.ooso.net/archives/278#comments</comments>
		<pubDate>Mon, 21 Jan 2008 01:00:27 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/278</guid>
		<description><![CDATA[用vim习惯了之后，用别的编辑器写长一点的文本都没法适应，写wordpress更是如此。为此我郁闷了很长一段时间，直到前不久找到了一个新的宝贝 ---- vimpress。这个东东可不是什么新的软件，它只不过是vim的一个plugin罢了。
只要装好vimpress，你就可以用它来列出或者发布blog。
目前这个插件有如下功能


				<span class="readmore"><a href="http://www.ooso.net/archives/278" title="用vim来写wordpress">阅读全文（552字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>用vim习惯了之后，用别的编辑器写长一点的文本都没法适应，写wordpress更是如此。为此我郁闷了很长一段时间，直到前不久找到了一个新的宝贝 ---- <a href="http://www.vim.org/scripts/script.php?script_id=1953">vimpress</a>。这个东东可不是什么新的软件，它只不过是vim的一个<a href="/index.php?tag=plugin">plugin</a>罢了。</p>
<p>只要装好vimpress，你就可以用它来列出或者发布blog。</p>
<h2>目前这个插件有如下功能</h2>
<ul>
<li>获得文章列表</li>
<li>写新文章</li>
<li>编辑文章</li>
<li>现场保存 (yeah, no kidding)</li>
<li>支持分类</li>
<li>支持标签</li>
</ul>
<h2>vim命令清单</h2>
<ul>
<li> “:BlogList”<br />
      列出blog里的文章</li>
<li>
“:BlogNew”<br />
      写新文章</li>
<li>“:BlogOpen id”<br />
      打开一篇现有的文章进行编辑</li>
<li>“:BlogSend”<br />
      保存并发布文章</li>
</ul>
<h2>安装过程</h2>
<ul>
<li>将解压之后plugin和syntax目录复制到vimfiles目录下</li>
<li>修改plugin下的blog.vim进行配置，需要配置username,password以及xmlrpc.php的url</li>
<li>如果需要支持tag,可以设置enable_tags=1。</li>
<li>如果需要支持UTW tags,需要<a href="http://blog.circlesixdesign.com/download/utw-rpc-autotag/">另外下载一个vim插件utw-rpc-autotag</a></li>
</ul>
<p><a href="http://www.friggeri.net/projets/vimpress/">vimpress的主页</a></p>
<h2>发现的bug</h2>
<ul>
<li>如果标题中包含:号，那么:以后的字符会被截断</li>
<li>如果试图对草稿进行修改，那么发布后的博客没设定发布日期</li>
</ul>
<p>BTW:现在这篇blog就是我使用vimpress完成的:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/278/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>在wordpress中方便的添加自定义标签</title>
		<link>http://www.ooso.net/archives/375</link>
		<comments>http://www.ooso.net/archives/375#comments</comments>
		<pubDate>Thu, 18 Oct 2007 07:15:56 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/375</guid>
		<description><![CDATA[wordpress使用了kses作为xhtml/html的filter(见wp-includes/kses.php)，因此多数可能有危害性的标签例如script,object会被wordpress过滤。对于某些个人wordpresser来说，安全问题显然不大，反正只是自己用，即便加入javascript脚本也是出于方便考虑。为了方便广大革命群众，俺提供一个简单的扩展标签的思路：
在wp-includes/kses.php中，有这样一行定义：
PLAIN TEXT
PHP:

				<span class="readmore"><a href="http://www.ooso.net/archives/375" title="在wordpress中方便的添加自定义标签">阅读全文（568字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>wordpress使用了<a href="http://sourceforge.net/projects/kses/">kses</a>作为xhtml/html的filter(见wp-includes/kses.php)，因此多数可能有危害性的标签例如script,object会被<a href="http://www.ooso.net/index.php/archives/category/wordpress">wordpress</a>过滤。对于某些个人wordpresser来说，安全问题显然不大，反正只是自己用，即便加入javascript脚本也是出于方便考虑。为了方便广大革命群众，俺提供一个简单的扩展标签的思路：</p>
<p>在wp-includes/kses.php中，有这样一行定义：</p>
<div class="igBar"><span id="lphp-5"><a href="#" onclick="javascript:showCodeTxt('php-5'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-5">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>!<span style="color:#000066;">defined</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'CUSTOM_TAGS'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000066;">define</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'CUSTOM_TAGS'</span>, <span style="color:#000000; font-weight:bold;">false</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// You can override this in your my-hacks.php file&nbsp; &nbsp; </span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>!CUSTOM_TAGS<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; .......&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>由此可见，只要自定义CUSTOM_TAG常量为true,就可以使用额外的标签了。那么修改步骤可以总结如下：</p>
<ul>
<li>新增一个my-hacks.php,放在wordpress根目录下，my-hacks.php中有如下定义
<div class="igBar"><span id="lphp-6"><a href="#" onclick="javascript:showCodeTxt('php-6'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-6">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000066;">define</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'CUSTOM_TAGS'</span>, <span style="color:#000000; font-weight:bold;">true</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$allowedposttags</span> = <span style="color:#000066;">array</span><span style="color:#006600; font-weight:bold;">&#40;</span>...你需要增加的标签..<span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></li>
<li>在wordpress后台开启my-hacks.php的支持</li>
</ul>
<p>done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/375/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>我的wordpress 2.3升级策略</title>
		<link>http://www.ooso.net/archives/373</link>
		<comments>http://www.ooso.net/archives/373#comments</comments>
		<pubDate>Mon, 08 Oct 2007 14:13:54 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/373</guid>
		<description><![CDATA[wordpress 2.3发布好一段时间了，由于Ultimate Tag Warrior不再被支持，所以我总是下不了决心把这里升级到2.3。
作为一个大懒人，理想的升级步骤是，只要简单升级wordpress和UTW，而不用对主题的各个部分进行琐碎的修改。为了这个目标，我在狗狗上进行大面积的人肉搜索，终于在UTW的站上看到这段话:
Then, you should have a look at WordPress Things. Some of them cover UTW functionality. There will be a plugin for the UTW template tags.. soon.. which should allow theme stuff to keep on working; but alas, there are still many kinks to iron out. Check back in a week for that one (:

				<span class="readmore"><a href="http://www.ooso.net/archives/373" title="我的wordpress 2.3升级策略">阅读全文（540字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="/index.php?tag=wordpress">wordpress</a> 2.3发布好一段时间了，由于<strong>Ultimate Tag Warrior</strong>不再被支持，所以我总是下不了决心把这里升级到2.3。</p>
<p>作为一个大懒人，理想的升级步骤是，只要简单升级<a href="http://www.wordpress.org">wordpress</a>和<a href="http://www.neato.co.nz/">UTW</a>，而不用对主题的各个部分进行琐碎的修改。为了这个目标，我在狗狗上进行大面积的人肉搜索，终于在UTW的站上看到这段话:</p>
<blockquote><p>Then, you should have a look at WordPress Things. Some of them cover UTW functionality. There will be a plugin for the UTW template tags.. soon.. which should allow theme stuff to keep on working; but alas, there are still many kinks to iron out. Check back in a week for that one (:</p></blockquote>
<p>这正是我想要的东东。一个星期后，我需要的东东出现了 —— <a href="http://www.metlin.org/2007/10/04/wordpress-23-other-upgrades/">WP 2.3 compatible version of UTW</a>.</p>
<p>在给出的连接中，我下载了兼容wordpress 2.3的UTW，然后开始了飞速的升级过程:</p>
<ul>
<li>首先将wordpress升级到2.3</li>
<li>将新版本的UTW覆盖原来的UTW</li>
<li>done!</li>
</ul>
<p>再简单不过了，不是吗？</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/373/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>装个wordpress 2.3 beta3</title>
		<link>http://www.ooso.net/archives/372</link>
		<comments>http://www.ooso.net/archives/372#comments</comments>
		<pubDate>Fri, 14 Sep 2007 00:08:39 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/372</guid>
		<description><![CDATA[wordpress 2.3 beta3都出来好一段时间了，迟迟没有更新到这个版本，一来是想，过上两天也许就会有2.3的正式版本出来，到时候升级也不迟；二来总觉得Ultimate Tag Warrior的tag导入是个麻烦，不知道以前打的tag能否导入wordpress 2.3自带的tag系统。
今天咬咬牙找个站升级到wordpress 2.3 beta3，升级过程一如既往的顺利。导入tag的过程也很简单：
在管理 -> 导入里，找到Ultimate Tag Warrior，然后就可以将tag导入进来了。当然，如果是Jerome’s Keywords的tag，也有相应的选项。

				<span class="readmore"><a href="http://www.ooso.net/archives/372" title="装个wordpress 2.3 beta3">阅读全文（354字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wordpress.org">wordpress</a> 2.3 beta3都出来好一段时间了，迟迟没有更新到这个版本，一来是想，过上两天也许就会有2.3的正式版本出来，到时候升级也不迟；二来总觉得Ultimate Tag Warrior的tag导入是个麻烦，不知道以前打的tag能否导入wordpress 2.3自带的tag系统。</p>
<p>今天咬咬牙找个站升级到<a href="http://www.ooso.net/index.php/archives/category/wordpress">wordpress</a> 2.3 beta3，升级过程一如既往的顺利。导入tag的过程也很简单：<br />
在管理 -> 导入里，找到Ultimate Tag Warrior，然后就可以将tag导入进来了。当然，如果是Jerome’s Keywords的tag，也有相应的选项。</p>
<p>期待wordpress 2.3的正式版！</p>
<p>BTW:升级前要实现deactivate Ultimate Tag Warrior插件，否则会提示你is_tag被重复定义。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/372/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>用WordPressMU改造的社会关系网站</title>
		<link>http://www.ooso.net/archives/351</link>
		<comments>http://www.ooso.net/archives/351#comments</comments>
		<pubDate>Thu, 12 Jul 2007 23:52:48 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/351</guid>
		<description><![CDATA[这次看到了另一个使用WordPress MU的网站 —— ChickSpeak.com，只不过它不是一个Blog，而是一个社交类网站，主要受众是女大学生。
它没有对wordpress本身的源文件做任何改动，只是添加了一些plugin而已，在这样的情况下实现了短消息，多Blog搜索，在线投票，照片管理等等；原来的博客页面，统统被修改成了会员的首页，因为它的目的并不是成为一个BSP。整合的论坛是WordPress的原配—— BBPress，这个论坛程序以前介绍过，和Wordpress是一脉相传，整合很容易。

				<span class="readmore"><a href="http://www.ooso.net/archives/351" title="用WordPressMU改造的社会关系网站">阅读全文（269字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><img src="http://blazenewmedia.com/images/folio/chickspeak/1_thumb.gif" alt="wordpress mu" align="right" />这次看到了另一个使用<a href="http://mu.wordpress.org/">WordPress MU</a>的网站 —— <a href="http://chickspeak.com/">ChickSpeak.com</a>，只不过它不是一个Blog，而是一个社交类网站，主要受众是女大学生。</p>
<p>它没有对wordpress本身的源文件做任何改动，只是添加了一些plugin而已，在这样的情况下实现了短消息，多Blog搜索，在线投票，照片管理等等；原来的博客页面，统统被修改成了会员的首页，因为它的目的并不是成为一个BSP。整合的论坛是<a href="index.php?tag=wordpress">WordPress</a>的原配—— BBPress，这个论坛程序以前介绍过，和Wordpress是一脉相传，整合很容易。</p>
<p>WordPress还真是一块大橡皮泥..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/351/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bbpress 0.8.2.1注册直接显示用户名密码的修改办法</title>
		<link>http://www.ooso.net/archives/345</link>
		<comments>http://www.ooso.net/archives/345#comments</comments>
		<pubDate>Sun, 01 Jul 2007 00:25:15 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/345</guid>
		<description><![CDATA[在上一次我介绍了bbpress的注册邮件收不到可以采用的简单解决办法，因为版本更新变化，已经不适应新的形式。我手工在新版本根据之前的代码做了调整，测试通过。这里根据记忆列一下大概步骤，你需要新增一个文件，另外还需要修改bb-templates/你的模板目录/register-success.php和/register.php.

新增reg_without_mail.php
需要替换原来的bb_new_user函数，只需要做一个简单的插件就能解决这个问题。首先下载reg_without_mail.php，然后把reg_without_mail.php复制到bbpress的my-plugins目录下，如果没有这个目录，手工建立一个。

				<span class="readmore"><a href="http://www.ooso.net/archives/345" title="bbpress 0.8.2.1注册直接显示用户名密码的修改办法">阅读全文（794字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在上一次我介绍了<a href="http://www.ooso.net/index.php/archives/305">bbpress的注册邮件收不到可以采用的简单解决办法</a>，因为版本更新变化，已经不适应新的形式。我手工在新版本根据之前的代码做了调整，测试通过。这里根据记忆列一下大概步骤，你需要<a href="http://www.ooso.net/index.php/archives/345#bb_step1">新增一个文件</a>，另外还需要<a href="http://www.ooso.net/index.php/archives/345#bb_step2">修改bb-templates/你的模板目录/register-success.php</a>和<a href="http://www.ooso.net/index.php/archives/345#bb_step3">/register.php</a>.</p>
<p><span id="more-345"></span></p>
<h1 id="bb_step1">新增reg_without_mail.php</h1>
<p>需要替换原来的bb_new_user函数，只需要做一个简单的插件就能解决这个问题。首先下载<a href="http://www.ooso.net/wp-content/uploads/2007/reg_without_mail.zip">reg_without_mail.php</a>，然后把reg_without_mail.php复制到bbpress的my-plugins目录下，如果没有这个目录，手工建立一个。</p>
<h1 id="bb_step2">修改bb-templates/kakumei/register-success.php</h1>
<p>bbpress默认使用的模板风格是kakumei，因此如果你使用了其它模板，参考这个例子修改就是了。这里修改的是bb-templates/kakumei/register-success.php，找到下面这行：</p>
<div class="igBar"><span id="lcode-11"><a href="#" onclick="javascript:showCodeTxt('code-11'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-11">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p&gt;&lt;?php printf<span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'Your registration as &lt;strong&gt;%s&lt;/strong&gt; was successful. Within a few minutes you should receive an email with your password.'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, $user_login<span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt;&lt;/p&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>替换为：</p>
<div class="igBar"><span id="lcode-12"><a href="#" onclick="javascript:showCodeTxt('code-12'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-12">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;p&gt;&lt;?php printf<span style="color:#006600; font-weight:bold;">&#40;</span>__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'Your registration was successful.&lt;br /&gt;&lt;br /&gt;Username: &lt;b&gt;%s&lt;/b&gt;&lt;br /&gt;Password: &lt;b&gt;%s&lt;/b&gt;'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, $GLOBALS<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'user_login'</span><span style="color:#006600; font-weight:bold;">&#93;</span>, $GLOBALS<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#CC0000;">'user_password'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> ?&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h1 id="bb_step3">修改/register.php</h1>
<p>找到register.php的31行：</p>
<div class="igBar"><span id="lcode-13"><a href="#" onclick="javascript:showCodeTxt('code-13'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-13">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$user_id = bb_new_user<span style="color:#006600; font-weight:bold;">&#40;</span> $user_login, $user_email, $user_url <span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>删除并替换为:</p>
<div class="igBar"><span id="lcode-14"><a href="#" onclick="javascript:showCodeTxt('code-14'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-14">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$userinfo = bb_new_user<span style="color:#006600; font-weight:bold;">&#40;</span> $user_login, $user_email, $user_url <span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$user_id = $userinfo<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">0</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$user_password = $userinfo<span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#800000;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#93;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>经过上面的几个步骤，bbpress 0.8.2.1的注册就可以直接显示用户名密码了。以后的版本如果没有太大变动，也可以参照这个说明来进行修改。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/345/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>bbpress开发中的消息</title>
		<link>http://www.ooso.net/archives/344</link>
		<comments>http://www.ooso.net/archives/344#comments</comments>
		<pubDate>Fri, 29 Jun 2007 23:19:04 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/344</guid>
		<description><![CDATA[下一版本的bbpress将在后台admin新增搜索功能，可根据关键词，作者以及tag进行搜索，bbpress的功能有些简陋，所以新增了一些基础设施也是比较重要的改进。
另外一个改动是for developer的，bbpress新增了一个类BB_Query，用于数据库查询，使用的范例：
PLAIN TEXT
CODE:

				<span class="readmore"><a href="http://www.ooso.net/archives/344" title="bbpress开发中的消息">阅读全文（539字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>下一版本的<a href="http://www.ooso.net/index.php/archives/279">bbpress</a>将在后台admin新增搜索功能，可根据关键词，作者以及tag进行搜索，bbpress的功能有些简陋，所以新增了一些基础设施也是比较重要的改进。</p>
<p>另外一个改动是for developer的，bbpress新增了一个类BB_Query，用于数据库查询，使用的范例：</p>
<div class="igBar"><span id="lcode-16"><a href="#" onclick="javascript:showCodeTxt('code-16'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-16">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$topic_query = new BB_Query<span style="color:#006600; font-weight:bold;">&#40;</span> <span style="color:#CC0000;">'topic'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; array<span style="color:#006600; font-weight:bold;">&#40;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'topic_author'</span> =&gt; <span style="color:#CC0000;">'mdawaffe'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'started'</span> =&gt; <span style="color:#CC0000;">'2007-06'</span>,</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'tag'</span> =&gt; <span style="color:#CC0000;">'bbpress'</span>,</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#CC0000;">'order_by'</span> =&gt; <span style="color:#CC0000;">'topic_start_time'</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#41;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$topic_query-&gt;<span style="">results</span>; <span style="color:#FF9933; font-style:italic;">// Here's the array of topics the query returned. </span></div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>这个class已经内置了分页，cache的处理，加上定制程度有所提高，因此，这对bbpress的插件开发者来说是个好消息。</p>
<h1><a href="http://bbpress.org">bbpress</a>是什么</h1>
<p><a href="http://bbpress.org/blog/2007/06/searching-and-the-bb_query-class/">bbPress</a>是wordpress新近开发的论坛程序，顾名思义，是bbs+wordpess的结合体，所以它还带着一些wordpress的影子，有一些挺有趣的特性，比如tag,RSS feeds,Akismet spam,Ajax交互。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/344/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在wordpress上展示留言最多的文章</title>
		<link>http://www.ooso.net/archives/333</link>
		<comments>http://www.ooso.net/archives/333#comments</comments>
		<pubDate>Mon, 25 Jun 2007 00:00:16 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/333</guid>
		<description><![CDATA[我打算在wordpress的侧边栏上展示留言最多的文章，想想应该有现成的plugin，首先还是去网上扒啦了一圈，大多数结果都是雷同的，利用多表联查之类的取得评论最多的文章，性能上可能不太好，因此总觉得不太合意。最后我找到了下面这种办法，比较理想。
首先构造一个sql，从wordpress的数据库里读出需要的文章，利用wp_posts表的comment_count字段（评论数）来排序。wp_posts表可能是别的名字，因为你在安装的时候可能取了一些其它的前缀，为了具有更好的适应性，利用wordpress的一个特别变量$wpdb->posts，它保存了wp_posts的表名。下面是这段sql:

				<span class="readmore"><a href="http://www.ooso.net/archives/333" title="在wordpress上展示留言最多的文章">阅读全文（673字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>我打算在wordpress的侧边栏上展示留言最多的文章，想想应该有现成的plugin，首先还是去网上扒啦了一圈，大多数结果都是雷同的，利用多表联查之类的取得评论最多的文章，性能上可能不太好，因此总觉得不太合意。最后我找到了下面这种办法，比较理想。</p>
<p>首先构造一个sql，从wordpress的数据库里读出需要的文章，利用<strong>wp_posts</strong>表的<strong>comment_count</strong>字段（评论数）来排序。wp_posts表可能是别的名字，因为你在安装的时候可能取了一些其它的前缀，为了具有更好的适应性，利用wordpress的一个特别变量<strong>$wpdb->posts</strong>，它保存了wp_posts的表名。下面是这段sql:</p>
<div class="igBar"><span id="lcode-20"><a href="#" onclick="javascript:showCodeTxt('code-20'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-20">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SELECT ID, post_title, comment_count</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">FROM $wpdb-&gt;<span style="">posts</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ORDER BY comment_count DESC </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>以上，利用comment_count字段倒排，取得评论最多的文章，顺便还要加上一些限制，比如一次取5条记录：</p>
<p><span id="more-333"></span></p>
<div class="igBar"><span id="lcode-21"><a href="#" onclick="javascript:showCodeTxt('code-21'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-21">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">SELECT ID, post_title, comment_count</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">FROM $wpdb-&gt;<span style="">posts</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ORDER BY comment_count DESC</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">LIMIT <span style="color:#800000;color:#800000;">5</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>中间若干过程省略，我们把上面sql的查询结果在sidebar.php里头展示：</p>
<div class="igBar"><span id="lcode-22"><a href="#" onclick="javascript:showCodeTxt('code-22'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-22">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;?php</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$posts = $wpdb-&gt;<span style="">get_results</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"SELECT ID, post_title, comment_count FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 5"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">'&lt;ul&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">foreach<span style="color:#006600; font-weight:bold;">&#40;</span>$posts as $post<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$id = $post-&gt;<span style="">ID</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$title = $post-&gt;<span style="">post_title</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$count = $post-&gt;<span style="">comment_count</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">'&lt;li&gt;&lt;a href=&quot;'</span> . <span style="">get_permalink</span><span style="color:#006600; font-weight:bold;">&#40;</span>$id<span style="color:#006600; font-weight:bold;">&#41;</span> . <span style="color:#CC0000;">'&quot;&gt;'</span> . $title . <span style="color:#CC0000;">'&lt;/a&gt; ('</span> . $count . <span style="color:#CC0000;">')&lt;/li&gt;'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">echo <span style="color:#CC0000;">'&lt;/ul&gt;'</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">?&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>如果再花点功夫，上面的这段就能做成一个不错的widget，很方便的在wordpress后台里拖拽。</p>
<h1>参考文章</h1>
<p><a href="http://www.pinksy.co.uk/index.php/2007/01/28/howto-most-commented-wordpress-widget/">HOWTO: DIY “Most commented” WordPress widget</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/333/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>bbpress 0.8.2发布</title>
		<link>http://www.ooso.net/archives/334</link>
		<comments>http://www.ooso.net/archives/334#comments</comments>
		<pubDate>Tue, 19 Jun 2007 04:19:52 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/334</guid>
		<description><![CDATA[UPDATE:bbpress安全更新0.8.2.1马上放出来了，看来不能做吃螃蟹的第一个人。
bbpress 0.8.2发布了。以下是比较重要的更新内容:

新增了子论坛的功能

				<span class="readmore"><a href="http://www.ooso.net/archives/334" title="bbpress 0.8.2发布">阅读全文（498字）</a></span>]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE</strong>:bbpress安全更新0.8.2.1马上放出来了，看来不能做吃螃蟹的第一个人。</p>
<p><a href="index.php?tag=bbpress">bbpress</a> 0.8.2发布了。以下是比较重要的更新内容:</p>
<ul>
<li>新增了子论坛的功能</li>
<li>每一个帖子新增了类似wordpress的post slug功能</li>
<li>新增了插件管理后台，插件头部的例子
<div class="igBar"><span id="lcode-24"><a href="#" onclick="javascript:showCodeTxt('code-24'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-24">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin Name: Name of your plugin required</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin URI: Plugin’s website</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Description: Short description of your plugin</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author: Your name</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author URI: http://www.ooso.net</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Version: Current version number of your plugin</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></li>
</ul>
<p>相关链接：</p>
<ul>
<li><a href="http://bbpress.org/documentation/upgrading/">bbpress升级步骤 </a></li>
<li><a href="http://bbpress.org/download/">下载bbpress 0.8.2</a></li>
<li><a href="http://bbpress.org/blog/2007/06/082-hot-off-the-bbpress/">完整bbpress更新</a></li>
</ul>
<h1>bbpress是什么</h1>
<p>bbPress是wordpress新近开发的论坛程序，顾名思义，是bbs+wordpess的结合体，所以它还带着一些wordpress的影子，有一些挺有趣的特性，比如tag,RSS feeds,Akismet spam,Ajax交互。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/334/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress插件 &#8212; TagLink 1.1</title>
		<link>http://www.ooso.net/archives/320</link>
		<comments>http://www.ooso.net/archives/320#comments</comments>
		<pubDate>Fri, 08 Jun 2007 23:53:43 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/320</guid>
		<description><![CDATA[改写了两个月前写的TagLink插件，这样它可以同时支持ie, firefox两种插件了。这个插件的功能非常简单，可以把选中的文字直接转换成tag的链接，对中文标签也同样有效。
它会在wordpress撰写文章的表单上新增一个tag button，比如你选中一段“firefox”的文字，它会把这段文字转换为:
PLAIN TEXT
CODE:

				<span class="readmore"><a href="http://www.ooso.net/archives/320" title="WordPress插件 &#8212; TagLink 1.1">阅读全文（490字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>改写了<a href="http://www.ooso.net/index.php/archives/286">两个月前写的TagLink插件</a>，这样它可以同时支持ie, firefox两种插件了。这个插件的功能非常简单，可以把选中的文字直接转换成tag的链接，对中文标签也同样有效。</p>
<p>它会在wordpress撰写文章的表单上新增一个<strong>tag</strong> button，比如你选中一段“firefox”的文字，它会把这段文字转换为:</p>
<div class="igBar"><span id="lcode-27"><a href="#" onclick="javascript:showCodeTxt('code-27'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-27">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;a href=<span style="color:#CC0000;">"index.php?tag=firefox"</span>&gt;firefox&lt;/a&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h1>安装方法</h1>
<ul>
<ol>
<li>将下载后的文件解压</li>
<li>将压缩包里的tag_link.php复制到wordpress的wp-contents/plugins目录下</li>
<li>在后台激活这个插件</li>
</ol>
</ul>
<p>效果见下图:</p>
<p><a href='http://www.ooso.net/wp-content/uploads/2007/10/tag.gif' title='tagLink'><img src='http://www.ooso.net/wp-content/uploads/2007/10/tag.gif' alt='tagLink' /></a></p>
<p><span id="more-320"></span></p>
<p>The plugin add tag link for the text selected,for example:</p>
<div class="igBar"><span id="lcode-28"><a href="#" onclick="javascript:showCodeTxt('code-28'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-28">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;a href=<span style="color:#CC0000;">"index.php?tag=firefox"</span>&gt;firefox&lt;/a&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h1>Usage</h1>
<ul>
<ol>
<li>unzip</li>
<li>copy tag_link.php to directory wp-contents/plugins</li>
<li>activate the plugin Taglink</li>
</ol>
</ul>
<h1>History</h1>
<ul>
<li>version 1.1: support ie and firefox</li>
<li>version 1.0: firefox only </li>
</ul>
<h1>插件下载 / Plugin download</h1>
<p><a href="http://www.ooso.net/wp-content/uploads/2006/08/tag_link.latest.zip">TagLink 1.1</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/320/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>切换tag插件</title>
		<link>http://www.ooso.net/archives/298</link>
		<comments>http://www.ooso.net/archives/298#comments</comments>
		<pubDate>Thu, 17 May 2007 01:45:35 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/298</guid>
		<description><![CDATA[在一年前，我第一次启用了Ultimate Tag Warrior插件来管理wordpress标签。后来在短短一周内，就发现当时的UTW有性能上的问题，在数据库内插了大量的多余内容而且速度极其缓慢，所以转而投奔了Jerome's Keywords —— 它也能提供一个比较简单的标签功能。
但是UTW无论是在功能上还是管理上都要比Jerome's Keywords好上不少，最近经过6天对UTW的观察，我确信它能够管理好俺纷乱无序的标签，并且性能上不会打折扣。
所以俺把标签从JK迁移回UTW，迁移方案见天佑的UTW教学，相当容易。

				<span class="readmore"><a href="http://www.ooso.net/archives/298" title="切换tag插件">阅读全文（730字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>在一年前，我第一次启用了Ultimate Tag Warrior插件来管理<a href="http://www.ooso.net/index.php/archives/category/wordpress">wordpress</a>标签。后来在短短一周内，就发现当时的UTW有性能上的问题，在数据库内插了大量的多余内容而且速度极其缓慢，所以转而<a href="http://www.ooso.net/index.php/archives/201">投奔了Jerome's Keywords</a> —— 它也能提供一个比较简单的标签功能。</p>
<p>但是UTW无论是在功能上还是管理上都要比Jerome's Keywords好上不少，最近经过6天对UTW的观察，我确信它能够管理好俺纷乱无序的标签，并且性能上不会打折扣。</p>
<p>所以俺把标签从JK迁移回UTW，迁移方案见<a href="http://blog.tinyau.net/archives/2005/10/22/ultimate-tag-warrior-tutorial/">天佑的UTW教学</a>，相当容易。</p>
<blockquote><p>Custom Fields 的功能是用來將文章內的 Custom Fields 某一個 key 轉做 UTW 的 tags，或者將 UTW 的 tags 轉成 custom fields 中其中一個 key，這樣解釋大家未必會明白，換另一個講法就是提供一個渠道給大家由其他 tagging plugins 轉用 UTW，或者由 UTW 轉用另一些 tagging plugins。</p>
<p>以 Jerome’s Keywords 為例，它的 tags 其實以 custom fields 形式儲存在文章內，key 是 “keywords”，用逗號（,）分隔開的，所以如果從 JK 轉用 UTW 的話，只需使用這個功能，在 “Custom field name” 中輸入 “keywords”，在 “Tag delimiter” 中輸入 “,”，再按 <Import from Custom Field> 按鈕使可將 JK 的 tags 轉換成 UTW 的 tags 了，但最好在 backup database 後才進行這個動作，以免有意外發生。</p>
<p>不過要提醒大家的是這個轉換方法是根據 Custom fields 的內容轉換的，如果使用的 tagging plugin 並不是用 custom field 來儲存 tags 的話，便不可以用這個方法轉換了。
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/298/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更新wordpress插件出现错误</title>
		<link>http://www.ooso.net/archives/297</link>
		<comments>http://www.ooso.net/archives/297#comments</comments>
		<pubDate>Tue, 15 May 2007 16:52:11 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/297</guid>
		<description><![CDATA[今天更新了wordpress的tag插件为Ultimate tag warrior，不久所有的页面都出现了下面的错误信息：
Warning: preg_match(): Compilation failed: nothing to repeat at offset 1  in /***/wp-includes/classes.php on line 95
以上面的错误信息为关键词进行搜索，得到的可能性有两个：


				<span class="readmore"><a href="http://www.ooso.net/archives/297" title="更新wordpress插件出现错误">阅读全文（438字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>今天更新了wordpress的tag插件为<a href="http://www.ooso.net/index.php/archives/201">Ultimate tag warrior</a>，不久所有的页面都出现了下面的错误信息：</p>
<blockquote><p>Warning: preg_match(): Compilation failed: nothing to repeat at offset 1  in /***/wp-includes/classes.php on line 95</p></blockquote>
<p>以上面的错误信息为关键词进行搜索，得到的可能性有两个：</p>
<ul>
<li>安装的plugin版本过于陈旧，比如smileys之类的</li>
<li>由于ultimate tag warrior插件使用不当，使得rewrite规则混乱，出现以上错误</li>
</ul>
<p>前者的可能性很小，我根本没安装过任何表情插件，后者的嫌疑比较大。短暂的头脑风暴ing，往事如电影片段一般在脑海中一一闪过，最后终于回忆起顺手勾选了tag插件的下面选项:</p>
<blockquote><p>Use url rewriting for local tag urls (/tag/tag instead of index.php?tag=tag)</p></blockquote>
<p>卡嚓了这个选项后，可恶的错误Warning消失不见。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/297/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>inline-js 0.3 &#8212; wordpress插件</title>
		<link>http://www.ooso.net/archives/290</link>
		<comments>http://www.ooso.net/archives/290#comments</comments>
		<pubDate>Thu, 10 May 2007 15:26:31 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/290</guid>
		<description><![CDATA[最近加班比较多，时间相当的紧张，今天终于得闲把inline-js升级了。这个版本对最初的插件处理方式做了改进，不再粗暴的中止其它the_content filter的运行:)
Plugin Name: Inline Javascript Plugin
Plugin URI: http://www.ooso.net/index.php/inline-js/
Feed URI: http://www.ooso.net/index.php/feed/

				<span class="readmore"><a href="http://www.ooso.net/archives/290" title="inline-js 0.3 &#8212; wordpress插件">阅读全文（789字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>最近加班比较多，时间相当的紧张，今天终于得闲把<a href="http://www.ooso.net/index.php/inline-js">inline-js</a>升级了。这个版本对最初的插件处理方式做了改进，不再粗暴的中止其它the_content filter的运行:)</p>
<blockquote><p>Plugin Name: Inline Javascript Plugin<br />
Plugin URI: http://www.ooso.net/index.php/inline-js/<br />
Feed URI: http://www.ooso.net/index.php/feed/<br />
Description: Plugin that insert inline javascript in Posts/Pages<br />
Version: 0.3<br />
Author: Volcano<br />
Author URI: http://www.ooso.net</p></blockquote>
<h3>使用方法</h3>
<ul>
<li>解压</li>
<li>Copy inline-js.php到目录wp-contents/plugin并激活插件.</li>
<li>用标签<strong>[inline]</strong> and <strong>[/inline]</strong>围绕你要发表的javascript,and post it</li>
<li>Ok</li>
</ul>
<p><span id="more-290"></span></p>
<h3>Usage</h3>
<ul>
<li>Unzip</li>
<li>Copy inline-js.php to direcotry wp-contents/plugin and activate the plugin.</li>
<li>Use <strong>[inline]</strong> and <strong>[/inline]</strong> tag around the javascript,and post it</li>
<li>Ok</li>
</ul>
<h3>Example</h3>
<div class="igBar"><span id="lcode-30"><a href="#" onclick="javascript:showCodeTxt('code-30'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">CODE:</span>
<div id="code-30">
<div class="code">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>inline<span style="color:#006600; font-weight:bold;">&#93;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color:#CC0000;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">document.<span style="">write</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">"hello world!"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#91;</span>/inline<span style="color:#006600; font-weight:bold;">&#93;</span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<h3>Download</h3>
<p><a id=p233 href="http://www.ooso.net/wp-content/uploads/2006/08/inline-js-0.3.zip">latest inline-js plugin</a></p>
<h3>inline-js的主题页</h3>
<p>这个页面会记录inline-js的更新情况。<br />
<a href="http://www.ooso.net/index.php/inline-js">http://www.ooso.net/index.php/inline-js</a></p>
<p>俺在wp-plugins.net上的相关链接：<br />
<a href="http://wp-plugins.net/author/volcano/">http://wp-plugins.net/author/volcano/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/290/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TagLink插件for wordpress</title>
		<link>http://www.ooso.net/archives/286</link>
		<comments>http://www.ooso.net/archives/286#comments</comments>
		<pubDate>Sun, 15 Apr 2007 13:51:07 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/286</guid>
		<description><![CDATA[俺尝试用wordpress来做一个文摘记录，把平常看到的认为有用的文章记录下来。在此过程中我使用了wordpress自带的WordPress Bookmarklet，工作的很好，还用到了tag插件,wp-cache等等，也是相当便捷。为了方便的在文章中加入链接，俺又整了个小插件---- TagLink,它的用法是在编辑时可以方便的将所选文字变成一个tag链接。比如我选中了下面的文字
php
点击tag按钮后，这段文字会变成
PLAIN TEXT

				<span class="readmore"><a href="http://www.ooso.net/archives/286" title="TagLink插件for wordpress">阅读全文（448字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>俺尝试用wordpress来做一个<a href="http://www.ooso.net/du/">文摘记录</a>，把平常看到的认为有用的文章记录下来。在此过程中我使用了wordpress自带的WordPress Bookmarklet，工作的很好，还用到了tag插件,wp-cache等等，也是相当便捷。为了方便的在文章中加入链接，俺又整了个小插件---- TagLink,它的用法是在编辑时可以方便的将所选文字变成一个tag链接。比如我选中了下面的文字</p>
<blockquote><p>php</p></blockquote>
<p>点击tag按钮后，这段文字会变成</p>
<div class="igBar"><span id="lhtml-33"><a href="#" onclick="javascript:showCodeTxt('html-33'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">HTML:</span>
<div id="html-33">
<div class="html">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">"index.php?tag=php"</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>php<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span> </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>下面是源码:</p>
<div class="igBar"><span id="lphp-34"><a href="#" onclick="javascript:showCodeTxt('php-34'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-34">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">/*</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin Name: Tag Links</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Plugin URI: http://www.ooso.net</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Description: Add link for tag</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author: volcano</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Version: 1.0</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">Author URI: http://www.ooso.net</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#008000;">*/</span> </div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// This just echoes the chosen line, we'll position it later</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">function</span> tag_links_button<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000066;">echo</span> &lt;&lt;&lt;EOF</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#000000; font-weight:bold;">function</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> inp = document.getElementById<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'ed_close'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span>inp<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> tagLink = document.createElement<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"input"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; with<span style="color:#006600; font-weight:bold;">&#40;</span>tagLink<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type = <span style="color:#FF0000;">"button"</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value = <span style="color:#FF0000;">"tag"</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; tagLink.onclick = <span style="color:#000000; font-weight:bold;">function</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> myField = edCanvas;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>myField.selectionStart || myField.selectionStart == <span style="color:#FF0000;">'0'</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> startPos = myField.selectionStart;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> endPos = myField.selectionEnd;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> word = myField.value.substring<span style="color:#006600; font-weight:bold;">&#40;</span>startPos, endPos<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#000000; font-weight:bold;">var</span> myValue = <span style="color:#FF0000;">'&lt;a href=&quot;index.php?tag='</span> + encodeURIComponent<span style="color:#006600; font-weight:bold;">&#40;</span>word<span style="color:#006600; font-weight:bold;">&#41;</span>.toLowerCase<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span> + <span style="color:#FF0000;">'&quot;&gt;'</span> + word + <span style="color:#FF0000;">'&lt;/a&gt;'</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; edInsertContent<span style="color:#006600; font-weight:bold;">&#40;</span>myField, myValue<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; inp.parentNode.insertBefore<span style="color:#006600; font-weight:bold;">&#40;</span>tagLink, inp<span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">&lt;/script&gt;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">EOF;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'edit_form_advanced'</span>,<span style="color:#FF0000;">'tag_links_button'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'edit_page_form'</span>,&nbsp; &nbsp; <span style="color:#FF0000;">'tag_links_button'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">add_action<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'simple_edit_form'</span>,&nbsp; <span style="color:#FF0000;">'tag_links_button'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>BTW:目前仅适用于firefox,可以修改成for ie的版本:)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/286/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>关于bbpress和wordpress整合的admin账户问题</title>
		<link>http://www.ooso.net/archives/282</link>
		<comments>http://www.ooso.net/archives/282#comments</comments>
		<pubDate>Sun, 08 Apr 2007 16:17:07 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/282</guid>
		<description><![CDATA[最近尝试玩玩bbpress和wordpress整合,按理说它和wordpress是同胞兄弟，在一起使用应该是没有问题。但是世事难料，这俩兄弟我怎么都没法把他们放在一块干活，始终没法用wordpress的admin账户来bbpress行使admin权限。
俺经过一晚上的人肉搜索，终于找到点有营养的参考资料，解决了整合后admin帐户的问题。拿bbpress 0.8.1来说，它的整合步骤是这样的:
首先修改config.php
调整$bb-&#62;wp_table_prefix,$bb-&#62;wp_home,$bb-&#62;wp_siteurl为你的wordpress实际情况

				<span class="readmore"><a href="http://www.ooso.net/archives/282" title="关于bbpress和wordpress整合的admin账户问题">阅读全文（613字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>最近尝试玩玩<a href="http://www.ooso.net/?tag=bbpress">bbpress</a>和<a href="http://www.ooso.net/index.php/archives/category/wordpress/">wordpress</a>整合,按理说它和wordpress是同胞兄弟，在一起使用应该是没有问题。但是世事难料，这俩兄弟我怎么都没法把他们放在一块干活，始终没法用wordpress的admin账户来bbpress行使admin权限。</p>
<p>俺经过一晚上的人肉搜索，终于找到点有营养的参考资料，解决了整合后admin帐户的问题。拿bbpress 0.8.1来说，它的整合步骤是这样的:</p>
<h3>首先修改config.php</h3>
<p>调整$bb-&gt;wp_table_prefix,$bb-&gt;wp_home,$bb-&gt;wp_siteurl为你的wordpress实际情况</p>
<h3>修改wp_usermeta表</h3>
<p>修改admin账户在bbpress中的权限,找到admin账户的bb_capabilities项:</p>
<blockquote><p>1  	bb_capabilities  	a:1:{s:6:"member";b:1;}</p></blockquote>
<p>修改成</p>
<blockquote><p>1  	bb_capabilities  	a:1:{s:9:"keymaster";b:1;}</p></blockquote>
<p>经过上面两步修改，就能够用wordpress的admin账户在bbpress中通行了～～</p>
<h3>参考</h3>
<p>http://bbpress.org/forums/topic/462</p>
<h1>其它wordpress + bbpress整合资料</h1>
<ul>
<li><a href="http://bbpress.org/forums/topic/835">Cookie Hell: WPMU + BBPress = bloodshot eye balls</a></li>
<li><a href="http://bbpress.org/plugins/topic/4">WordPress Integration</a></li>
<li><a href="http://bbpress.org/documentation/integration-with-wordpress/">Integration with WordPress</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/282/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>关于bbpress的中文标签</title>
		<link>http://www.ooso.net/archives/279</link>
		<comments>http://www.ooso.net/archives/279#comments</comments>
		<pubDate>Fri, 06 Apr 2007 00:19:45 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[bbpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/279</guid>
		<description><![CDATA[最近试用了一把bbpress 0.8.1,据称已经对中文标签有很好的支持啦,实际使用却让人大失所望.能给每个帖子打上中文标签没错,然而在点击标签连接之后,进入redirect的死循环.跟踪了一下循环发生原因,发现只要修改bb-includes/wp-functions.php的第664行:
PLAIN TEXT
PHP:


				<span class="readmore"><a href="http://www.ooso.net/archives/279" title="关于bbpress的中文标签">阅读全文（253字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>最近试用了一把<a href="http://www.ooso.net/index.php/archives/262">bbpress 0.8.1</a>,据称已经对中文标签有很好的支持啦,实际使用却让人大失所望.能给每个帖子打上中文标签没错,然而在点击标签连接之后,进入redirect的死循环.跟踪了一下循环发生原因,发现只要修改bb-includes/wp-functions.php的第664行:</p>
<div class="igBar"><span id="lphp-37"><a href="#" onclick="javascript:showCodeTxt('php-37'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-37">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$ret</span> .= <span style="color:#FF0000;">"$k=$v"</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p>
修改成:</p>
<div class="igBar"><span id="lphp-38"><a href="#" onclick="javascript:showCodeTxt('php-38'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">PHP:</span>
<div id="php-38">
<div class="php">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$ret</span> .= <span style="color:#0000FF;">$k</span> == <span style="color:#FF0000;">'tag'</span> ? <span style="color:#FF0000;">"$k="</span> . <span style="color:#000066;">urlencode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$v</span><span style="color:#006600; font-weight:bold;">&#41;</span> : <span style="color:#FF0000;">"$k="</span> . <span style="color:#0000FF;">$v</span>; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>这样就可以让bbpress支持中文标签聚合浏览啦</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/279/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>在wordpress插件中应用jquery</title>
		<link>http://www.ooso.net/archives/266</link>
		<comments>http://www.ooso.net/archives/266#comments</comments>
		<pubDate>Sun, 04 Feb 2007 06:23:44 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/266</guid>
		<description><![CDATA[最近在实现wordpress的一个插件时,准备利用jquery.js减少javascript代码量，但是wordpress本身用上了prototype.js,这两者之间有兼容性问题，脚本当场罢工。打架的主要罪魁祸首是document.getElementById的快捷函数"$"，jquery和prototype都有这个偷懒的东东。
网上提到了一个很简单的解决办法:
PLAIN TEXT
JAVASCRIPT:

				<span class="readmore"><a href="http://www.ooso.net/archives/266" title="在wordpress插件中应用jquery">阅读全文（283字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>最近在实现<a href="http://www.ooso.net/index.php/archives/category/wordpress/">wordpress</a>的一个插件时,准备利用jquery.js减少<a href="http://www.ooso.net/index.php/archives/category/javascript/">javascript</a>代码量，但是wordpress本身用上了prototype.js,这两者之间有兼容性问题，脚本当场罢工。打架的主要罪魁祸首是document.getElementById的快捷函数"$"，jquery和prototype都有这个偷懒的东东。</p>
<p>网上提到了一个很简单的解决办法:</p>
<div class="igBar"><span id="ljavascript-40"><a href="#" onclick="javascript:showCodeTxt('javascript-40'); return false;">PLAIN TEXT</a></span></div>
<div class="syntax_hilite"><span class="langName">JAVASCRIPT:</span>
<div id="javascript-40">
<div class="javascript">
<ol>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script src=<span style="color: #3366CC;">"jquery.js"</span>&gt;&lt;/script&gt;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;script type=<span style="color: #3366CC;">"text/javascript"</span>&gt;</div>
</li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">jQuery.<span style="color: #006600;">noConflict</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;</div>
</li>
<li style="font-weight: bold;color:#26536A;">
<div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/script&gt; </div>
</li>
</ol>
</div>
</div>
</div>
<p></p>
<p>只要加入一行:</p>
<blockquote><p>jQuery.noConflict();</p></blockquote>
<p>就能解决冲突的问题，看来<a href="http://jquery.com">jquery</a>早就对这个情况有应对.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/266/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>庆祝Spam karma反垃圾安全运行八个月无故障</title>
		<link>http://www.ooso.net/archives/275</link>
		<comments>http://www.ooso.net/archives/275#comments</comments>
		<pubDate>Thu, 25 Jan 2007 13:15:13 +0000</pubDate>
		<dc:creator>Volcano</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[spammer]]></category>

		<guid isPermaLink="false">http://www.ooso.net/index.php/archives/275</guid>
		<description><![CDATA[自从启用了Spam karma以来,wordperss上大量的垃圾留言,trackback从此销声匿迹,下面是它的赫赫战功:
   *  Total Spam Caught: 8468 (average karma: -118684.54)
    * Total Comments Approved: 218 (average karma: 12.24)
    * Total Comments Moderated: 58

				<span class="readmore"><a href="http://www.ooso.net/archives/275" title="庆祝Spam karma反垃圾安全运行八个月无故障">阅读全文（288字）</a></span>]]></description>
			<content:encoded><![CDATA[<p>自从启用了<a href="http://www.ooso.net/index.php/archives/180">Spam karma</a>以来,wordperss上大量的垃圾留言,trackback从此销声匿迹,下面是它的赫赫战功:</p>
<blockquote><p>   *  Total Spam Caught: 8468 (average karma: -118684.54)<br />
    * Total Comments Approved: 218 (average karma: 12.24)<br />
    * Total Comments Moderated: 58<br />
    * Current Version: 2.2 final r3
</p></blockquote>
<p>Spam karma自动咔嚓了8468个垃圾留言,据我观察基本没有误杀,很让人惊讶. 要是换做从前我手工审核, 只怕早就不胜其烦,就把blog关掉了事.</p>
<h3>科技才是第一生产力!</h3>
]]></content:encoded>
			<wfw:commentRss>http://www.ooso.net/archives/275/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
