<?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>Think Again &#187; W3C</title>
	<atom:link href="http://www.thinkagain.cn/archives/tag/w3c/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thinkagain.cn</link>
	<description>Inspire thinking, inspire creativity, inspire future.</description>
	<lastBuildDate>Tue, 31 Aug 2010 15:42:47 +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 Hacks:解决晒SPAM数无法通过W3C验证&#8230;续</title>
		<link>http://www.thinkagain.cn/archives/987.html</link>
		<comments>http://www.thinkagain.cn/archives/987.html#comments</comments>
		<pubDate>Wed, 20 Aug 2008 12:11:57 +0000</pubDate>
		<dc:creator>山之岚</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[验证]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.thinkagain.cn/?p=987</guid>
		<description><![CDATA[ 假设您已经阅读过上文，对于此问题背景的来龙去脉有所了解。此文将正式列出问题的解决方法。很简单。在此之前，继续啰嗦下。其实我很早就hack了akismet的部分代码使之生成的显示spam数的... ]]></description>
			<content:encoded><![CDATA[<p>假设您已经阅读过<a href="http://www.thinkagain.cn/archives/986.html">上文</a>，对于此问题背景的来龙去脉有所了解。此文将正式列出问题的解决方法。很简单。在此之前，继续啰嗦下。其实我很早就hack了akismet的部分代码使之生成的显示spam数的方框能通过W3C验证。一直觉得没有什么意义将如何如何写出来，因为大部分的网友都不会去重视这个问题的。</p>
<p>直到最近在<a href="http://www.girlqiqi.cn/" target="_blank">googlefish</a>的网站上看到，她对<a href="http://www.girlqiqi.cn/2008/08/css-to-jss-for-w3c-validator/" target="_blank">W3C验证</a>以及<a href="http://www.girlqiqi.cn/2008/08/akismet-and-zoundry-and-xmlrpc-story/" target="_blank">akismet</a>等的一些文章，难得一个女孩子(没弄错吧)能讨论这些技术话题，觉得还是将此问题挑出来吧。假设欲解决此问题的网友已经略懂php和html代码，否则头晕脑胀别怪我啊。</p>
</p>
<p>先来分析下，用文本编辑器打开akismet.php查看其源代码。Akismet的晒SPAM数方框是由akismet_counter()函数提供的，widget是由widget_akismet_style()函数提供。问题在于，这个函数被调用时，会自动生成css代码。而这是不允许的，因为xhtml规范规定css必须在header内被加载，所以首先要把这部分css移调。然后再适当修改下生成方框的html代码。以akismet_counter()为例，介绍下具体的代码修改。</p>
<p>1. 将akismet_counter()源代码中的css定义手动复制到模板的css中，然后将该部分代码删除。</p>
<p>源代码中的css定义部分：</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">style</span> <span style="color: #ff0000">type</span><span style="color: #0000ff">=&quot;text/css&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span> #akismetwrap #aka,#aka:link,#aka:hover,#aka:visited,#aka:active{color:#fff;text-decoration:none}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> #aka:hover{border:none;text-decoration:none}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> #aka:hover #akismet1{display:none}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span> #aka:hover #akismet2,#akismet1{display:block}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span> #akismet2{display:none;padding-top:2px}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span> #akismeta{font-size:16px;font-weight:bold;line-height:18px;text-decoration:none}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span> #akismetcount{display:block;font:15px Verdana,Arial,Sans-Serif;font-weight:bold;text-decoration:none}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span> #akismetwrap #akismetstats{background:url(<span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">echo</span> <span style="color: #ff0000">get_option</span>(<span style="color: #0000ff">'siteurl'</span>); ?<span style="color: #0000ff">&gt;</span>/wp-content/plugins/akismet/akismet.gif) no-repeat top left;border:none;color:#fff;font:11px 'Trebuchet MS','Myriad Pro',sans-serif;height:40px;line-height:100%;overflow:hidden;padding:8px 0 0;text-align:center;width:120px}</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">style</span><span style="color: #0000ff">&gt;</span></pre>
</div>
</div>
<p><u>注意，必须指定好背景图片的地址。</u>文中background:url(&lt;?php echo get_option(&#8216;siteurl&#8217;); ?&gt;/wp-content/plugins/akismet/akismet.gif)这句代码。</p>
<p>2. 修改生成方框的html代码。这里将源代码的方框html代码部分贴出来。</p>
<p>源代码：</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetwrap&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetstats&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span>         <span style="color: #0000ff">&lt;</span><span style="color: #800000">a</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;aka&quot;</span> <span style="color: #ff0000">href</span><span style="color: #0000ff">=&quot;http://akismet.com&quot;</span> <span style="color: #ff0000">title</span><span style="color: #0000ff">=&quot;&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet1&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetcount&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">echo</span> $<span style="color: #ff0000">count</span>; ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span> </pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetsc&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'spam comments'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  11:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  12:</span>          <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet2&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  13:</span>              <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetbb&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  14:</span>              <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'blocked by'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  15:</span>              <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;&lt;</span><span style="color: #800000">br</span> <span style="color: #0000ff">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  16:</span>              <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismeta&quot;</span><span style="color: #0000ff">&gt;</span>Akismet<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  17:</span>          <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  18:</span>          <span style="color: #0000ff">&lt;/</span><span style="color: #800000">a</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  19:</span>      <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  20:</span>  <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
</div>
</div>
<p>修改后：</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetwrap&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetstats&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span>         <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;aka&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet1&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetcount&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">echo</span> $<span style="color: #ff0000">count</span>; ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetsc&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'spam comments'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  11:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  12:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet2&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  13:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetbb&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  14:</span>             <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'blocked by'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  15:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  16:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">br</span> <span style="color: #0000ff">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  17:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismeta&quot;</span><span style="color: #0000ff">&gt;</span>Akismet<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  18:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  19:</span>         <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  20:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  21:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
</div>
</div>
<p>注意对照下，我用&lt;div&gt;替代了源代码的&lt;a&gt;。</p>
<p>修改后的akismet_counter()函数：</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> function akismet_counter() {</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   2:</span> $count = number_format(get_option('akismet_spam_count'));</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   3:</span> ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   4:</span> <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetwrap&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   5:</span>     <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetstats&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   6:</span>         <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;aka&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   7:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet1&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">   8:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetcount&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   9:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">echo</span> $<span style="color: #ff0000">count</span>; ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  10:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  11:</span>                 <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetsc&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  12:</span>                 <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'spam comments'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  13:</span>                 <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  14:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  15:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">div</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismet2&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  16:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismetbb&quot;</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  17:</span>             <span style="color: #0000ff">&lt;?</span><span style="color: #800000">php</span> <span style="color: #ff0000">_e</span>(<span style="color: #0000ff">'blocked by'</span>) ?<span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  18:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  19:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">br</span> <span style="color: #0000ff">/&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  20:</span>             <span style="color: #0000ff">&lt;</span><span style="color: #800000">span</span> <span style="color: #ff0000">id</span><span style="color: #0000ff">=&quot;akismeta&quot;</span><span style="color: #0000ff">&gt;</span>Akismet<span style="color: #0000ff">&lt;/</span><span style="color: #800000">span</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  21:</span>             <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  22:</span>         <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  23:</span>     <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  24:</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">div</span><span style="color: #0000ff">&gt;</span></pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">  25:</span> <span style="color: #0000ff">&lt;?</span>php</pre>
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><span style="color: #606060">  26:</span> }</pre>
</div>
</div>
<p>修改后的代码产生的效果是和源代码一模一样的。却可以正常通过xhtml和css的w3c验证。akismet是由matt等WP原创人员开发的，除了wordpress外，还提供了其它平台的服务。但不知为什么他们写的插件也竟然不考虑w3c规范问题，因为这个问题其实很容易解决的。直接将该css写到header的hook里面去就可以了。wp的一些内置函数生成的代码也存在无法通过W3C验证的问题。如<a href="http://www.thinkagain.cn/archives/721.html" target="_blank">此文</a>谈到的wp_get_archives函数生成的下拉框问题等。</p>
<p>Akismet的代码修改到此为止。有兴趣的可以自己手动修改看看。</p>
<p><u>我这里想要总结的却并不是akismet的问题了。</u>从这个例子可以得知，活用css的属性使得网页不用加载js就可以生成很多效果。如上面的akismet的这个仅仅是利用了css的2个属性，hover和display。就可以实现显示内容切换了。单单利用css也可以做出很多非常炫的效果，如下拉或折叠菜单，图片切换等等。更多的css活用等着您去挖掘。</p>
<p>挖得越深，收获的就越多。</p>
<hr/><p style="font-size:1.5em;font-weight:bold;"><a href="http://www.thinkagain.cn/archives/987.html#comments">评论11:</a></p><p><strong>11.</strong><i>2008.11.29.8:28.am</i>.&nbsp;<a href="http://smartr.cn">Jinwen</a>: 最近把自己网站也弄上这个，确实累人，只换得页脚的两个链接 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' /> </p><p><strong>10.</strong><i>2008.08.22.2:29.pm</i>.&nbsp;<a href="http://3284265.cn">shamas</a>: </p><p><strong>9.</strong><i>2008.08.22.12:14.pm</i>.&nbsp;<a href="http://www.surdark.net">浮黑</a>: 新插件不少人在等啊</p><p><strong>8.</strong><i>2008.08.21.11:11.am</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-69052" rel="nofollow">@Yacca </a>那就满足下你的好奇心，收到的回复邮件，就是现在还在调试中的新插件。等解决几个bug后，即将放出来了。 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' /> </p><p><strong>7.</strong><i>2008.08.21.10:34.am</i>.&nbsp;<a href="http://www.eemir3.com">Yacca</a>: <a href="#comment-69046" rel="nofollow">@山之岚 </a>另外插件... 好奇心吊上来了...</p><p><strong>6.</strong><i>2008.08.21.9:27.am</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-68984" rel="nofollow">@googlefish </a>难怪看你的站上有诸如琪琪吃饭十大招之类的文章。呵呵。p.s，你所提到的那个hot friends的添加到分类的功能，估计还得再等几天再弄了。手头上正在调试另外一个插件。 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /> </p><p><strong>5.</strong><i>2008.08.20.11:13.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: <a href="#comment-68984" rel="nofollow">@googlefish </a>你的女儿博客，难得发现她的影子，还是改名叫琪琪老爸吧。</p><p><strong>4.</strong><i>2008.08.20.9:49.pm</i>.&nbsp;<a href="http://photozero.net">neekey</a>: 那个“@”图片不明显啊，我刚才还以为是按Gravatar图标呢。</p><p><strong>3.</strong><i>2008.08.20.9:48.pm</i>.&nbsp;<a href="http://photozero.net">neekey</a>: 晕乎。现在谁都给女儿弄博客呢</p><p><strong>2.</strong><i>2008.08.20.9:03.pm</i>.&nbsp;<a href="http://myhou.org">MY-Hou</a>: 你老又把人家七尺男兒誤成姑娘了  <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' /> </p><p><strong>1.</strong><i>2008.08.20.8:39.pm</i>.&nbsp;<a href="http://www.girlqiqi.cn">googlefish</a>: 呵呵,谢谢提供解决方法.
另外,打击你一下,你弄错了.
琪琪的空间是我女儿的空间,今年上幼儿园. 
 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p><hr/><p style="font-size:1.5em;font-weight:bold;">推荐阅读</p><p><i>2008.08.20.1:52.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/986.html" title="此文谨献给爱晒SPAM数的人。比如说，看这篇文章的您，因为您要不是正想">Wordpress Hacks: to 解决晒Askimet SPAM数无法通过W3C验证问题 (24)</a></p><p><i>2007.10.23.10:31.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/824.html" title="

打开WP的后台，看到这一组数字。这是挂上Akismet近半年来的统计。我都">10005 SPAM COMMENTS (3)</a></p><p><i>2007.09.15.10:41.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/721.html" title="继将CSS修改符合W3C规范后，今天花了点时间，也将模板代码修改完毕，通过">继续修改模板 (4)</a></p><p><i>2007.05.03.7:17.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/162.html" title="今天上网站一看，Akismet已报拦截了255个垃圾留言了。上周升级wordpress程序">Akismet反垃圾留言 (0)</a></p><p><i>2009.01.03.4:57.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1031.html" title="English user please navigates to http://wordpress.org/extend/plugins/wp-smilies/&#160; for instruct">Wordpress插件: WP Smilies (42)</a></p><p><i>2008.12.19.12:20.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1030.html" title=" 有段时间没有写些技术类的文章了，（p.s，似乎其它文章也没多写。。。">12行代码给Wordpress主题挂上AJAX (34)</a></p><p><i>2008.12.07.9:51.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1029.html" title=" 这一阵子，Google Friend Connect似乎闹得挺热乎的。周围的网友博客们纷纷在">Hot friends新增支持用户自定义头像显示 (63)</a></p><p><i>2008.10.27.9:52.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1024.html" title="如题。将Hot friends和mailtocommenter插件分别更新到1.3.2和1.3版。

其中hotfriends">从更新hot friends和mailtocmmenter谈起 (33)</a></p><hr/><p>Copyright &copy; 2010&nbsp;|&nbsp;<a href="http://www.thinkagain.cn">Think Again</a>&nbsp;|&nbsp;<a href="http://www.thinkagain.cn/archives/987.html">原文链接</a></p><img src="http://img.tongji.cn.yahoo.com/710673/ystat.gif"/>]]></content:encoded>
			<wfw:commentRss>http://www.thinkagain.cn/archives/987.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>WordPress Hacks: to 解决晒Askimet SPAM数无法通过W3C验证问题</title>
		<link>http://www.thinkagain.cn/archives/986.html</link>
		<comments>http://www.thinkagain.cn/archives/986.html#comments</comments>
		<pubDate>Wed, 20 Aug 2008 05:52:05 +0000</pubDate>
		<dc:creator>山之岚</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[akismet]]></category>
		<category><![CDATA[验证]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.thinkagain.cn/?p=986</guid>
		<description><![CDATA[ 此文谨献给爱晒SPAM数的人。比如说，看这篇文章的您，因为您不是正想解决这问题要不就是有想晒SPAM数的念头。嗯，还有我，以及A，B，C君。 
言归正传，SPAM这玩意，就不用在这里进行名词... ]]></description>
			<content:encoded><![CDATA[<p>此文谨献给爱晒SPAM数的人。比如说，看这篇文章的您，因为您要不是正想解决这问题要不就是有想晒SPAM数的念头。嗯，还有我，以及A，B，C君。<img style="margin: 0px 5px" src="http://www.thinkagain.cn/wp-content/uploads/2008/08/nospam.gif" align="left" alt="no spam"/> </p>
<p>言归正传，SPAM这玩意，就不用在这里进行名词解释了。到网络上搜一搜，Wordpress的Anti-SPAM插件有一大箩筐。然则，个人以为内置的Akismet插件可以说是一个最优秀的Anti-Spam插件之一。它像一堵防火墙，会很老实地帮用户过滤掉高达9*.*%的SPAM外(难免有漏网之鱼)，还内置了函数和Widget供用户来晒SPAM数。</p>
</p>
<p>不大明白什么是晒SPAM数？看看本页面的页脚就知道了吧。也就是有一个蓝色小方框，上面晒着挂插件起到现在为止的SPAM数。嗯，我的么，已经超过7.5w了。按理说，树大招风，可我这小庙也没供什么大菩萨，这SPAM还是日渐日增。估计博客的日独立访问ip可能还没有日SPAM数的增长速度快。</p>
<p>其二，说说W3C验证，通常涉及最普遍的有二种，xhtml和css验证。前者是指网页是否符合定义的标准要求。后者是网页加载的css是否符合W3C标准(css1.1或css2.1)。进行xhtml验证时，验证引擎会加载网页内容，然后根据header部分的第一行定义，如本页面为：</p>
<div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; background-color: #f4f4f4">
<div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none">
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #606060">   1:</span> <span style="color: #0000ff">&lt;!</span><span style="color: #800000">DOCTYPE</span> <span style="color: #ff0000">html</span> <span style="color: #ff0000">PUBLIC</span> <span style="color: #0000ff">&quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;</span> <span style="color: #0000ff">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;</span><span style="color: #0000ff">&gt;</span></pre>
</p></div>
</div>
<p>定义本页是根据xhtml 1.0 transitional标准编制的。当然，strict版更严格。本站的模板本身是符合w3c的xhtml和css规范的，但是由于加载了thickbox效果，所以无法通过css验证，索性也将wp_addbookmark都挂上半透膜效果。xhtml方面，首页是没问题的，文章页，因为加载了自己正在编制的一个评论邮件插件(注意下面的@按钮)，所以无法通过。另外xhtml规范对flash支持不好，所有内嵌flash(包括视频，如youtube的)的网页都无法通过。</p>
<p>那么有没有必要编制通过w3c验证的网页呢？这么说来着吧，对于普通用户而言，这点重要性不算太大。因为要通过w3c验证的话，除了在使用的插件和模板生成的html代码符合规范外，编写文章时候也必须要注意这方面问题，总之，很烦很啰嗦。不过用Windwos live writer写文章会自动帮用户解决这问题，不过要记得在要设置好选项。</p>
<p>然而对于其它一些高级用户，比如说，嗯哼，我以及<a href="#commentform" target="_blank">A</a>，<a href="#commentform" target="_blank">B</a>，<a href="#commentform" target="_blank">C</a>君等，对自己的站点有变态要求等。当然这个是笑话，个人觉得W3C验证还是很重要的，<u>因为规范的页面生成DOM文档，能有助于搜索引擎理解网页内容。</u>可能会有助于所谓的SEO。我一直对SEO不是抱太大兴趣。国内搜索出来的相关SEO文章，大部分都在谈meta keyword之类的。似乎SEO就是弄这些东西，被这些单调重复的东东倒了胃口。当然这些都是我的个人理解。对错由您来定。</p>
<p>闲扯了半天，这些都是前奏，理解了上述写的一大堆废话，才能明白为什么要做这件事情以及写这篇文章的必要性了。现在开始拉开正文序幕。</p>
<p>嗯，接着写下去，文章太长了。欲知详情，下回分解。</p>
<p>p.s，别拿转头扔我。鲜花是可以接受嘀。</p>
<hr/><p style="font-size:1.5em;font-weight:bold;"><a href="http://www.thinkagain.cn/archives/986.html#comments">评论24:</a></p><p><strong>24.</strong><i>2008.10.21.7:50.pm</i>.&nbsp;<a href="http://www.lpfrx.com">无聊空间</a>: Akismet我前两天才启用，确实不错，至少没了英文spam了，世界清净了很多</p><p><strong>23.</strong><i>2008.08.24.6:49.pm</i>.&nbsp;<a href="http://www.charlestang.cn">Charles</a>: AT all 最好让文章作者来审核。
还有 为什么你 AT askie我也收到了呢？奇怪啊</p><p><strong>22.</strong><i>2008.08.24.12:14.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: 我觉得与其这样，干脆不要在下面的注意中写“@all"的说明了</p><p><strong>21.</strong><i>2008.08.24.12:12.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-69403" rel="nofollow">@ddkk3000 </a>插件设定只要出现@all就会群发邮件。刚才18和19，还有20的你里面都含有@all了，估计上面的几个朋友已经收到3封邮件了。赶紧到后台将此选项关闭掉先。后台里面可以设置@all的权限，如管理员或注册用户等，方可使用@all。</p><p><strong>20.</strong><i>2008.08.24.12:04.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: <a href="#comment-69402" rel="nofollow">@山之岚 </a>

thinkagain兄，为什么18楼的同学没有“@all+空格”我都收到邮件了？</p><p><strong>19.</strong><i>2008.08.24.12:00.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-69400" rel="nofollow">@askie </a>嗯，这个@all 如果开启的话，的确会造成邮件泛滥。我在后台设置了可选项，用户自行决定吧。</p><p><strong>18.</strong><i>2008.08.24.11:54.am</i>.&nbsp;<a href="http://www.pkphp.com">askie</a>: @all测试这样子会否垃圾泛滥！</p><p><strong>17.</strong><i>2008.08.21.2:18.pm</i>.&nbsp;<a href="http://www.charlestang.cn">Charles</a>: 都7w多了，简直是 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' />   <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' />  
我还是棵小树苗呢 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' />   <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' /> </p><p><strong>16.</strong><i>2008.08.21.10:14.am</i>.&nbsp;<a href="http://www.eemir3.com">Yacca</a>: 写这么多还只是扯开了序幕...-.-</p><p><strong>15.</strong><i>2008.08.21.9:25.am</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-69042" rel="nofollow">@shamas </a>批评一下，没有看文中说明。这些error主要是因为正在测试的一个插件造成的。 <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' /> </p><p><strong>14.</strong><i>2008.08.21.8:37.am</i>.&nbsp;<a href="http://3284265.cn">shamas</a>: 好像这个博客没有通过验啊,我点了下有42处ER</p><p><strong>13.</strong><i>2008.08.20.7:25.pm</i>.&nbsp;<a href="http://www.girlqiqi.cn">googlefish</a>: 呵呵,是的.强大的akismet在前台显示部分居然不能通过w3c的验证,我试着改了一下,虽然通过了验证,但效果不是很理想,我想它前台的效果主要是通过css实现鼠标划过切换不同层的效果就可以了,剩下的就是要聆听thinkagain给我们讲讲如何实现这个效果或者有更好的办法.期待中......</p><p><strong>12.</strong><i>2008.08.20.7:10.pm</i>.&nbsp;<a href="http://www.mygtd.cn">mygtd</a>: 用机器SPAM易防，如果人工来呢？</p><p><strong>11.</strong><i>2008.08.20.7:04.pm</i>.&nbsp;<a href="http://yanxc.com/blog">Yanxc</a>: 相对而言，我的SPAM基本都被忠实的Akismet拦截了。我还是相当满意的。
高深的SEO境界就是化有形为无形。这样也有利于用户的体验，起码让他们可以尽快找到自己需要的内容。
我们讨厌的只是黑帽SEO，连GOOGLE也是提倡SEO优化的。</p><p><strong>10.</strong><i>2008.08.20.6:51.pm</i>.&nbsp;<a href="http://myhou.org">MY-Hou</a>: 用验证码又感觉会烦到来留言的朋友...唉</p><p><strong>9.</strong><i>2008.08.20.6:28.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: @山之岚 <i>2008-08-20 16:16:25:</i>@MY-Hou <i>2008-08-20 15:44:35:</i>对Akismet总体颇满意的，但它今天就给我漏了俩...  <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> akismet似乎也会间歇性抽风，有时候问题比较严重，漏网的比较多。有的时候又不会，相对那些被拦住的，这个概率可以算非常低了。

这个框架怎么显示成4楼那样？</p><p><strong>8.</strong><i>2008.08.20.6:27.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: @ddkk3000 <i>2008-08-20 18:20:35:</i>暂时应该没有其他语言的留言，所以把中文以外的全挡了。

我怎么框架不正常？</p><p><strong>7.</strong><i>2008.08.20.6:20.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: 暂时应该没有其他语言的留言，所以把中文以外的全挡了。</p><p><strong>6.</strong><i>2008.08.20.5:12.pm</i>.&nbsp;<a href="http://3284265.cn">shamas</a>: 顶起,直到下文出现……不过我没晒这个出来，主要是那个放到我的里面颜色不搭配，只好作罢，我也只管功能，能挡住就行了。漏网之鱼暂且只过了数十条，还行！</p><p><strong>5.</strong><i>2008.08.20.4:35.pm</i>.&nbsp;<a href="http://photozero.net">neekey</a>: 以前我用Akismet的时候常有前台直接给漏过的，后来用了验证码，只有Trackback偶尔有SPAM了。看来以后要搞个伪装更好的的Trackback URL</p><p><strong>4.</strong><i>2008.08.20.4:16.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: @MY-Hou
<div style="padding:5px;border:1px dashed #DADADA">
<i>2008-08-20 15:44:35:</i><br/>对Akismet总体颇满意的，但它今天就给我漏了俩...  <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' />  </div>akismet似乎也会间歇性抽风，有时候问题比较严重，漏网的比较多。有的时候又不会，相对那些被拦住的，这个概率可以算非常低了。</p><p><strong>3.</strong><i>2008.08.20.3:44.pm</i>.&nbsp;<a href="http://myhou.org">MY-Hou</a>: 对Akismet总体颇满意的，但它今天就给我漏了俩...  <img src='http://www.thinkagain.cn/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' /> </p><p><strong>2.</strong><i>2008.08.20.2:32.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-68944" rel="nofollow">@neekey </a>Akismet在我站上工作的非常好。少有漏网和误判的。大部分的spam都是通过接口的，你的这种做法可以无法解决trackback spam的。</p><p><strong>1.</strong><i>2008.08.20.2:28.pm</i>.&nbsp;<a href="http://photozero.net">neekey</a>: Akismet，个人感觉真的很一般，漏网鱼和误判远远大于正确判断，所以我还一直用自己的SidXSpam验证码，简单容易（不过偶尔也有俄国的人肉SPAM，下回改成中文验证码，让他们SPAM去）</p><hr/><p style="font-size:1.5em;font-weight:bold;">推荐阅读</p><p><i>2008.08.20.8:11.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/987.html" title="假设您已经阅读过上文，对于此问题背景的来龙去脉有所了解。此文将正式">Wordpress Hacks:解决晒SPAM数无法通过W3C验证&#8230;续 (11)</a></p><p><i>2007.10.23.10:31.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/824.html" title="

打开WP的后台，看到这一组数字。这是挂上Akismet近半年来的统计。我都">10005 SPAM COMMENTS (3)</a></p><p><i>2007.09.15.10:41.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/721.html" title="继将CSS修改符合W3C规范后，今天花了点时间，也将模板代码修改完毕，通过">继续修改模板 (4)</a></p><p><i>2007.05.03.7:17.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/162.html" title="今天上网站一看，Akismet已报拦截了255个垃圾留言了。上周升级wordpress程序">Akismet反垃圾留言 (0)</a></p><p><i>2009.01.03.4:57.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1031.html" title="English user please navigates to http://wordpress.org/extend/plugins/wp-smilies/&#160; for instruct">Wordpress插件: WP Smilies (42)</a></p><p><i>2008.12.19.12:20.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1030.html" title=" 有段时间没有写些技术类的文章了，（p.s，似乎其它文章也没多写。。。">12行代码给Wordpress主题挂上AJAX (34)</a></p><p><i>2008.12.07.9:51.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1029.html" title=" 这一阵子，Google Friend Connect似乎闹得挺热乎的。周围的网友博客们纷纷在">Hot friends新增支持用户自定义头像显示 (63)</a></p><p><i>2008.10.27.9:52.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/1024.html" title="如题。将Hot friends和mailtocommenter插件分别更新到1.3.2和1.3版。

其中hotfriends">从更新hot friends和mailtocmmenter谈起 (33)</a></p><hr/><p>Copyright &copy; 2010&nbsp;|&nbsp;<a href="http://www.thinkagain.cn">Think Again</a>&nbsp;|&nbsp;<a href="http://www.thinkagain.cn/archives/986.html">原文链接</a></p><img src="http://img.tongji.cn.yahoo.com/710673/ystat.gif"/>]]></content:encoded>
			<wfw:commentRss>http://www.thinkagain.cn/archives/986.html/feed</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
		<item>
		<title>继续修改模板</title>
		<link>http://www.thinkagain.cn/archives/721.html</link>
		<comments>http://www.thinkagain.cn/archives/721.html#comments</comments>
		<pubDate>Sat, 15 Sep 2007 14:41:27 +0000</pubDate>
		<dc:creator>山之岚</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[W3C]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[XHTML]]></category>

		<guid isPermaLink="false">http://www.thinkagain.cn/archives/721.html</guid>
		<description><![CDATA[ 继将CSS修改符合W3C规范后，今天花了点时间，也将模板代码修改完毕，通过W3C XHTML 1.0 Transitional验证。若不是好友风暴轻狂的提醒，我自己以前还从未注意过这些验证问题。不过狂兄最近似乎... ]]></description>
			<content:encoded><![CDATA[<p>继将CSS修改符合W3C规范后，今天花了点时间，也将模板代码修改完毕，通过W3C XHTML 1.0 Transitional验证。若不是好友<a href="http://lxz.name" target="_blank">风暴轻狂</a>的提醒，我自己以前还从未注意过这些验证问题。不过狂兄最近似乎比较忙，很久没看到他的狂言了。</p>
<p>一直对自己现有的模板不太满意，无论是布局还是配色。且因为编写该模板时，自己刚接触Wordpress，不说php，当时连对html和css等基本不懂，几乎是边写模板，边查资料这样编过来的，所以很多地方都不符合规范。用W3C的在线XHTML检查，会查出多达几百个错误。本想花点时间重新写一个模板，计划回归2栏布局，昨天和<a href="http://ecvip.org" target="_blank">Oxygen</a>聊天，他告诉我，这是“审美疲劳”现象。回过头，想想也是，当初&#8221;<a href="http://www.thinkagain.cn/archives/103.html">首个3 columns WordPress模板制作完毕!</a>&#8220;时，也曾是无比兴奋。</p>
<p>今天是周六，研究室人比较少，难得清静。于是就挂上耳麦，边听&#8221;辛晓琪的爱的回答&#8221;，开始修改现有模板代码。一动手，马上就发现不少问题，禁不住开始要骂TMD了。看来不仅仅是我的代码，很多插件生成的代码等通不过W3C验证，随便列举几个：</p>
<p>插件生成的代码无法通过验证：</p>
<blockquote><p>Akismet提供的Spam数查看代码；</p>
<p>WS Download Manager生成的下载框代码；</p>
<p>Pagenavi提供的下拉页面显示框代码；</p>
</blockquote>
<p>&nbsp;</p>
<p>WordPress提供的下拉存档显示框代码无法通过验证，wp_get_archives函数，WP官方提供的dropdown Box代码：</p>
<blockquote><p><span style="color: #0000ff">&lt;</span><span style="color: #800000">select </span><span style="color: #ff0000">name</span>=<span style="color: #0000ff">&#8220;archive-dropdown&#8221; </span><span style="color: #ff0000">onChange</span></p>
<p><span style="color: #ff0000"></span>=<span style="color: #0000ff">&#8216;document</span><span style="color: #0000ff">.location.href=this.options</span></p>
<p><span style="color: #0000ff">[this.selectedIndex].value;&#8217;</span><span style="color: #0000ff">&gt;</span></p>
<p><span style="color: #0000ff"></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">option</span> <span style="color: #ff0000">value</span>=<span style="color: #0000ff">&#8220;&#8221;</span><span style="color: #0000ff">&gt;</span></p>
<p><span style="color: #0000ff"></span><span style="color: #0000ff">&lt;?</span>php <a style="color: #0000ff" href="http://www.php.net/echo">echo</a> attribute_escape(__(&#8216;<span style="color: #8b0000">Select Month</span>&#8216;)); <span style="color: #0000ff">?&gt;</span></p>
<p><span style="color: #0000ff"></span><span style="color: #0000ff">&lt;/</span><span style="color: #800000">option</span><span style="color: #0000ff">&gt;</span></p>
<p><span style="color: #0000ff">&lt;?</span>php wp_get_archives(&#8216;<span style="color: #8b0000">type=monthly&amp;format=option&amp;show_post_count=1</span></p>
<p><span style="color: #8b0000"></span>&#8216;); <span style="color: #0000ff">?&gt;</span> <span style="color: #0000ff">&lt;/</span><span style="color: #800000">select</span><span style="color: #0000ff">&gt;</span></p>
</blockquote>
<p>其中<span style="color: red">onChange</span>是大写，但Xhtml中所有元素必须是以小写形式出现，所以务必将<span style="color: red">onChange</span>改为<span style="color: red">onchange</span>。</p>
<p><span style="color: #0000ff"></span>&nbsp;</p>
<p>&nbsp;</p>
<p>Windows Live Writer编写的代码无法通过验证：</p>
<blockquote><p>WLW自带的表格编制功能编制的表格中，会自动生成<span style="color: red">unSelectable=&#8221;on&#8221;</span>，务必将该代码删掉。</p>
</blockquote>
<blockquote><p>WLW的图片编辑功能，有的会自动生成<span style="color: red">atomicselection=&#8221;true&#8221;</span>，必须删除该代码。</p>
</blockquote>
<blockquote><p>WLW插入图片，均为&lt;img src=&#8221;**&#8221;&gt;，此种写法，虽可以正常显示图片，但规范的写法是&lt;img src=&#8221;**&#8221;/&gt;，即每个img必须要有闭合符号/。</p>
</blockquote>
<p>&nbsp;</p>
<p>还有，Google Adsense Search代码无法通过验证，只好暂替换为WP自带的站内搜索了。Youtube提供的视频内嵌html代码也无法通过验证。这个不完全是Youtube的问题，因为Youtube的flv视频属于flash，而Xhtml对flash的支持较差。除了以上的一些问题外，其实只要在编制模板的时候，小心注意下，都能通过W3C的验证。总结了些，希望能够有所帮助，如：</p>
<p>1.页首，一般在header.php内，一定要有文档类型声明，如下面代码将文档声明为XHTML 1.0 Transitional。</p>
<blockquote><p><span style="color: #0000ff">&lt;</span>!DOCTYPE html PUBLIC &#8220;-//W3C//DTD XHTML 1.0 Transitional//EN&#8221; </p>
<p>&#8220;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#8221;<span style="color: #0000ff">&gt;</span></p>
<p><span style="color: #0000ff"></span><span style="color: #0000ff">&lt;</span><span style="color: #800000">html</span> <span style="color: #ff0000">xmlns</span>=<span style="color: #0000ff">http://www.w3.org/1999/xhtml</span></p>
<p><span style="color: #0000ff"></span>&nbsp;&lt;?<span style="color: #ff0000">php</span> <span style="color: #ff0000">language_attributes</span>(); ?<span style="color: #0000ff">&gt;</span>&gt;</p>
<p><span style="color: #0000ff">&lt;</span><span style="color: #800000">head</span> <span style="color: #ff0000">profile</span>=<span style="color: #0000ff">&#8220;http://gmpg.org/xfn/11&#8243;</span><span style="color: #0000ff">&gt;</span></p>
<p><span style="color: #0000ff">&lt;meta http-equiv=&#8221;Content-Type&#8221; content=&#8221;</span></p>
<p><span style="color: #0000ff">&lt;?php bloginfo(&#8216;html_type&#8217;); ?&gt;;</span></p>
<p><span style="color: #0000ff">&nbsp;charset=&lt;?php bloginfo(&#8216;charset&#8217;); ?&gt;&#8221; /&gt;</span></p>
</blockquote>
<p>&nbsp;</p>
<p>2.代码中的每个元素的前后标签必须都有，且前后标签内必须包含内容，即不能存在空元素。如&lt;ul&gt;&lt;/ul&gt;是非法的，且&lt;p&gt;&lt;p&gt;****&lt;/p&gt;&lt;/p&gt;之类的重复嵌套也是非法。</p>
<p>3.诸如&lt;br&gt;&lt;hr&gt;等标签必须包括闭合符/，如&lt;br&gt;是非法，而正确的是&lt;br/&gt;。</p>
<p>4.img元素必须包括alt属性，否则将视为错误。</p>
<p>5.所有元素都应该以小写形式出现。</p>
<p>6.&amp;符号，必须以&amp;amp;形式出现等。</p>
<p>晚上将目前首页内含的8个文章的html代码都修改了，除了含有ws download下载框和youtube视频外，其它的几篇都可以通过W3C验证。拟将几个页面代码修改下，其余文章就算了，任其自然吧。重要的是从现在开始要注意所发文章的代码了，因为习惯用WLW写文章，而WLW竟然存在这么多兼容性问题，所以以后每篇文章发布前都要检查下其html。看来用WLW等编辑软件离线发布文章时，最好要养成检查html代码的习惯。</p>
<p>修改模板的同时，顺手将最新留言的函数Hack了，原来留言只部分留言内容，现在改为显示留言者名字和留言内容。稍微调整了下侧边栏和页脚的显示内容，挂上了W3C XHTML和CSS验证标志，嘿嘿，以及CreativeCommon的版权说明logo。接下来打算安排点时间，将站内搜索改为Google Ajax Search，以及继续修改模板的CSS。今天只修改了菜单栏的字体显示效果，改天要来个大动作，将颜色搭配等修改下。</p>
<hr/><p style="font-size:1.5em;font-weight:bold;"><a href="http://www.thinkagain.cn/archives/721.html#comments">评论4:</a></p><p><strong>4.</strong><i>2007.09.24.9:31.am</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: 狂兄说得对。我也开始糊涂，模板到底该怎么弄了。</p><p><strong>3.</strong><i>2007.09.23.8:44.pm</i>.&nbsp;<a href="http://neimba.com">yuanzhu</a>: 模板真的不错，尤其是上面的标题画</p><p><strong>2.</strong><i>2007.09.23.1:40.pm</i>.&nbsp;<a href="http://lxz.name">ddkk3000</a>: 模板越简单越不易疲劳，字体越大越方便阅读。边栏越少越好，否则游客不会看，而且不容易集中阅读，影响视觉啊。</p><p><strong>1.</strong><i>2007.09.18.12:29.pm</i>.&nbsp;<a href="http://www.marketing-life.cn">Shaoqing</a>: 还是别改成两栏了。我采用的是两栏，SIDEBAR太多东西，拉得很长，感觉不是很好。
最新留言栏，改得不错啊，比之前的好。
另外，自带的日历样子实在太看，不会修改，我还是没用它。</p><hr/><p style="font-size:1.5em;font-weight:bold;">推荐阅读</p><p><i>2008.09.09.8:58.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/994.html" title="今天，Wordpress官方发布了2.6.2版。没有跑去Trac看代码变动地方，直接就将程">Wordpress Hacks:WP2.2版后中文邮件标题乱码解决方法 (22)</a></p><p><i>2008.07.27.10:44.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/971.html" title="WP2.6带来了很多新功能。如后台的turbo等。相比2.3到2.5，2.5到2.6之间给我的">Wordpress Hacks:如何关闭WP2.6的主题预览 (17)</a></p><p><i>2007.12.08.10:50.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/888.html" title="2007-12-09：注，我已经写了一个插件用于含有nextpage或more标签的feed全文输出">如何使用Wordpress内置的分页（Nextpage）功能？ (50)</a></p><p><i>2007.10.31.12:42.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/830.html" title="Updated:此问题已经在2.3.3中被修复。
*****************************
前几天，将Wordp">Wordpress Hacks:升级2.3.1可能出现邮件提醒失效的解决方法 (20)</a></p><p><i>2007.10.22.11:05.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/822.html" title="在wordpress中，默认点击评论者的链接时，会在同一窗口内打开该链接。这在">Wordpress Hacks: 在新窗口中打开评论者链接和no follow属性 (16)</a></p><p><i>2007.09.11.8:43.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/707.html" title="晚上写extended summary实在是无聊之极，打开FF又逛到了Blog上。回想起曾和风">CSS通过W3C验证 (5)</a></p><p><i>2007.08.21.8:44.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/611.html" title="又是一时心血来潮，试用过Wordpress后，想装上Movable Type 4.0玩玩看。于是就">图文介绍如何在本地服务器安装Movable Type 4.0 (13)</a></p><p><i>2007.06.11.3:55.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/189.html" title="由于博客上的图片大部分都是放在Flickr上的，所以Flickr被禁后导致国内朋友">WordPress解决Flickr图片显示方法 (3)</a></p><hr/><p>Copyright &copy; 2010&nbsp;|&nbsp;<a href="http://www.thinkagain.cn">Think Again</a>&nbsp;|&nbsp;<a href="http://www.thinkagain.cn/archives/721.html">原文链接</a></p><img src="http://img.tongji.cn.yahoo.com/710673/ystat.gif"/>]]></content:encoded>
			<wfw:commentRss>http://www.thinkagain.cn/archives/721.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS通过W3C验证</title>
		<link>http://www.thinkagain.cn/archives/707.html</link>
		<comments>http://www.thinkagain.cn/archives/707.html#comments</comments>
		<pubDate>Tue, 11 Sep 2007 12:43:19 +0000</pubDate>
		<dc:creator>山之岚</dc:creator>
				<category><![CDATA[Blogger]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[W3C]]></category>

		<guid isPermaLink="false">http://www.thinkagain.cn/archives/707.html</guid>
		<description><![CDATA[ 晚上写extended summary实在是无聊之极，打开FF又逛到了Blog上。回想起曾和风暴轻狂谈过CSS的W3C验证问题，自己的模板虽然是通过了W3C的CSS验证，但提示竟然有多达58个Warnings。趁着兴头，将模板... ]]></description>
			<content:encoded><![CDATA[<p> 晚上写extended summary实在是无聊之极，打开FF又逛到了Blog上。回想起曾和<a href="http://lxz.name">风暴轻狂</a>谈过CSS的<a href="http://jigsaw.w3.org/css-validator/">W3C验证</a>问题，自己的模板虽然是通过了W3C的CSS验证，但提示竟然有多达58个Warnings。趁着兴头，将模板的style.css下载了下来，对着W3C的Warning，一个个给它修正过来。嘿嘿，功夫不负有心人哪，花了近1个小时，顺利搞定，现在模板的CSS可以完全通过W3C的验证了，Warning一个都没有。有兴趣，<a href="http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.thinkagain.cn&#038;warning=1&#038;profile=css21&#038;usermedium=all">点此</a>检查下。</p>
<p>对照着Warnings，发现很多问题都是出现在颜色的定义和诸如hover、active等伪类的定义上。也懒得多花时间去刨根问底，只是简单做了些Hacks。凑合着用吧。等下次改版重写CSS时再注意细节。 </p>
<hr/><p style="font-size:1.5em;font-weight:bold;"><a href="http://www.thinkagain.cn/archives/707.html#comments">评论5:</a></p><p><strong>5.</strong><i>2008.12.19.9:26.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: <a href="#comment-81538" rel="nofollow">@WEB </a>这个是因为折叠目录那个插件生成的代码的问题。升级到2.7后，似乎这个插件工作有些不大正常。回头要修改下。</p><p><strong>4.</strong><i>2008.12.19.12:12.pm</i>.&nbsp;<a href="http://2admin_c.814e.com/order/youyi.html">WEB</a>: Result:	1 Error
Line 415, Column 10: ID "parent_3" already defined.
LZ文件类别宣告是过渡标准（Transitional）
用 严格标准（Strict）试验哈～</p><p><strong>3.</strong><i>2007.09.13.10:59.am</i>.&nbsp;<a href="http://www.marketing-life.cn">Shaoqing</a>: 我的估计不少ERRORS.唉</p><p><strong>2.</strong><i>2007.09.12.8:34.pm</i>.&nbsp;<a href="http://www.thinkagain.cn">山之岚</a>: Warning无所谓，error就不大好了。
嘿嘿，刚才帮你测了下，有4个errors，不过都是颜色定义的，很容易改掉。</p><p><strong>1.</strong><i>2007.09.12.8:22.pm</i>.&nbsp;<a href="http://ljhui.cn">ljhui</a>: 我用的那个主题.有这么多前辈在用就该不会存在Warning的问题.</p><hr/><p style="font-size:1.5em;font-weight:bold;">推荐阅读</p><p><i>2007.09.15.10:41.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/721.html" title="继将CSS修改符合W3C规范后，今天花了点时间，也将模板代码修改完毕，通过">继续修改模板 (4)</a></p><p><i>2008.09.09.8:58.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/994.html" title="今天，Wordpress官方发布了2.6.2版。没有跑去Trac看代码变动地方，直接就将程">Wordpress Hacks:WP2.2版后中文邮件标题乱码解决方法 (22)</a></p><p><i>2008.08.20.8:11.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/987.html" title="假设您已经阅读过上文，对于此问题背景的来龙去脉有所了解。此文将正式">Wordpress Hacks:解决晒SPAM数无法通过W3C验证&#8230;续 (11)</a></p><p><i>2008.08.20.1:52.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/986.html" title="此文谨献给爱晒SPAM数的人。比如说，看这篇文章的您，因为您要不是正想">Wordpress Hacks: to 解决晒Askimet SPAM数无法通过W3C验证问题 (24)</a></p><p><i>2008.08.03.11:23.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/978.html" title="难得一个周末呆在家里，想睡个懒觉都不行。隔壁的朝鲜学校的音乐CIRCLE的">鸟儿早起 (43)</a></p><p><i>2008.07.27.10:44.am</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/971.html" title="WP2.6带来了很多新功能。如后台的turbo等。相比2.3到2.5，2.5到2.6之间给我的">Wordpress Hacks:如何关闭WP2.6的主题预览 (17)</a></p><p><i>2007.12.08.10:50.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/888.html" title="2007-12-09：注，我已经写了一个插件用于含有nextpage或more标签的feed全文输出">如何使用Wordpress内置的分页（Nextpage）功能？ (50)</a></p><p><i>2007.10.31.12:42.pm</i>.&nbsp;<a href="http://www.thinkagain.cn/archives/830.html" title="Updated:此问题已经在2.3.3中被修复。
*****************************
前几天，将Wordp">Wordpress Hacks:升级2.3.1可能出现邮件提醒失效的解决方法 (20)</a></p><hr/><p>Copyright &copy; 2010&nbsp;|&nbsp;<a href="http://www.thinkagain.cn">Think Again</a>&nbsp;|&nbsp;<a href="http://www.thinkagain.cn/archives/707.html">原文链接</a></p><img src="http://img.tongji.cn.yahoo.com/710673/ystat.gif"/>]]></content:encoded>
			<wfw:commentRss>http://www.thinkagain.cn/archives/707.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
