<?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>Let's whisper &#187; theme</title>
	<atom:link href="http://www.whisperer.name/tag/theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whisperer.name</link>
	<description>Let's whisper.</description>
	<lastBuildDate>Thu, 02 Feb 2012 05:52:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>iNove修改小记</title>
		<link>http://www.whisperer.name/2011/08/some-theme-changes/</link>
		<comments>http://www.whisperer.name/2011/08/some-theme-changes/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 09:45:42 +0000</pubDate>
		<dc:creator>whisperer</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[theme]]></category>

		<guid isPermaLink="false">http://www.whisperer.name/?p=96</guid>
		<description><![CDATA[这是一则WP折腾的流水账，近几天的一些大修小补，不说出来我怕你们发现不了 嵌套评论 　　这是最重要的改变，我爱iNove的@对话式评论，但是我更爱嵌套。WP升级到3.x后Quick Comments不能用了，没有Ajax评论可不行，我想用Willin的Ajax comments，这也促使我做出改变。过程之曲折自不必说，参考了几个模板，结果就是你现在看到的样子。照顾了以前的@评论，保留@悬浮提示（IE不好意思啦，CSS3属性）。 Willin系列 　　真正的大师有木有！除了Ajax Comments，我还一口气用上了他的Comment Mail Notify（代替Mail To Commenter），小墙（代替Akismet），my-visitors（代替WP-Postviews和WordPress Database Backup），Mini Pagenavi（代替WP-PageNavi）。Willin的插件都很精悍，除了这些插件，很多WP问题在他那儿都有答案。(不一一ping了) 侧边栏最新评论 　　也是由于WP升级，mg12的wp-recentcomments插件不能用（现已升级），侧边栏的最新评论改用代码插入，效果也不错。评论比较长的话把鼠标移到最后的“»”上试试。如果是在文章页面，你还可能看到下面这个模块。一排都是自己的头像，有木有小震撼小惊喜？方法来自万戈。 jQuery效果 　　既然加载了几十K的jQuery，为什么不好好利用一下。比如右上角的订阅，比如评论框。 　　编辑器去掉了js几十k的QuickTags，换成非插件给wordpress加上评论编辑器，原作者不知是谁（更新：qiqiboy）。 　　关于评论表情，A.shun用高亮的字体说过，“作为一个懒人，我不允许在自己的博客上插入一个表情要点两下鼠标。” 很不幸，我用的Highslide4WP就需要点两下鼠标，好吧，我也算懒人，于是表情改为了代码插入。而且特意用了hover动作，不知道算不算只点一下鼠标，A.shun给过吗? 插件的去留 　　除了以上提到的这些，受升级影响还停掉了Easyarchives。用上了zwwooooo的代码实现WordPress归档页面模板。 　　新添加的插件，External Links，文章内容中的外部链接的标示就是用它实现的。Gravatar Signup Encouragement，如果评论者填写的邮件没有用Gravatar，会给一个提示，引导他去设置头像。这两个插件都可以用代码实现，懒得折腾了，腻了就停掉。 目前的问题和bug 　　回复评论时，如果评论框里有输入，点击“取消回复”后，不能清空输入内容。&#60;/&#62; 　　用jQuery.mini 1.3.2有下面两个bug，目前我在用1.3.1，一切正常。 　　SlideDown效果失去焦点时，如果再点击目标时，又重复Slidedown一次。形象一点就是点击一下评论框，编辑器滑出，点击评论框以外位置，编辑器并没有收回，但是再点击评论框时，编辑器还是有滑出动作。（是不是我代码写的不对？） 　　经过嵌套评论的@回复，悬浮效果会有“双眼皮”，如下图。 　　最后，有没有简洁的图片插件推荐？只要能实现点击缩略图能打开原图就可以。现在我用的是Showfom小盆友的Auto HighSlide。 特别鸣谢 　　Willin Kan ZWWoOoOo 万戈 A.shun 　　如果你们有访问统计的话，会发现最近有很多来自我的PV，哈哈。 　　折腾了好久，除了很多不值一提的小修补，发现也没多少值得写的，不过，会不会有人问，这个主题为什么叫iNove？ Related Posts2009/10/07 -- 我的WordPress插件展示 (177)2009/09/01 -- 美化iNove的Google自定义搜索 (108)2009/08/11 -- 抛弃Lightview Plus (6)2011/10/10 -- 广告来了 (70)2011/09/07 [...]]]></description>
			<content:encoded><![CDATA[<p>这是一则WP折腾的流水账，近几天的一些大修小补，不说出来我怕你们发现不了 <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>
<p><span style="color: #cc214e;"><strong>嵌套评论</strong></span></p>
<p>　　这是最重要的改变，我爱iNove的@对话式评论，但是我更爱嵌套。WP升级到3.x后Quick Comments不能用了，没有Ajax评论可不行，我想用Willin的<a  href="http://kan.willin.org/?p=1271" target="_blank">Ajax comments</a>，这也促使我做出改变。过程之曲折自不必说，参考了几个模板，结果就是你现在看到的样子。照顾了以前的@评论，保留@悬浮提示（IE不好意思啦，CSS3属性）。<span id="more-96"></span></p>
<p><img class="alignnone size-full wp-image-98" title="at" src="http://www.whisperer.name/wp-content/uploads/2011/08/at.png" alt="" width="597" height="190" /></p>
<p><strong><a  href="http://kan.willin.org/" target="_blank">Willin系列</a></strong></p>
<p>　　真正的大师有木有！除了Ajax Comments，我还一口气用上了他的Comment Mail Notify（代替Mail To Commenter），小墙（代替Akismet），my-visitors（代替WP-Postviews和WordPress Database Backup），Mini Pagenavi（代替WP-PageNavi）。Willin的插件都很精悍，除了这些插件，很多WP问题在他那儿都有答案。(不一一ping了)</p>
<p><strong><span style="color: #cc214e;">侧边栏最新评论</span></strong></p>
<p>　　也是由于WP升级，mg12的wp-recentcomments插件不能用（现已升级），侧边栏的最新评论改用代码插入，效果也不错。评论比较长的话把鼠标移到最后的“<span style="color: #cc214e;">»</span>”上试试。如果是在文章页面，你还可能看到下面这个模块。一排都是自己的头像，有木有小震撼小惊喜？方法来自<a  href="http://wange.im/show-your-recent-comments-in-wordpress.html" target="_blank">万戈</a>。</p>
<p><img class="alignnone size-full wp-image-100" title="rc-comments" src="http://www.whisperer.name/wp-content/uploads/2011/08/rc-comments.png" alt="" width="249" height="228" /></p>
<p><span style="color: #cc214e;"><strong>jQuery效果</strong></span></p>
<p>　　既然加载了几十K的jQuery，为什么不好好利用一下。比如右上角的订阅，比如评论框。</p>
<p>　　编辑器去掉了js几十k的QuickTags，换成<a  href="http://www.alexgao.com/2011/03/04/non-plug-in-to-add-comment-editor/" target="_blank">非插件给wordpress加上评论编辑器</a>，原作者不知是谁（更新：<a  href="http://www.qiqiboy.com/" target="_blank">qiqiboy</a>）。</p>
<p>　　关于评论表情，A.shun用高亮的字体<a  href="http://www.a-shun.com/archives/21422.html">说过</a>，“作为一个懒人，我不允许在自己的博客上插入一个表情要点两下鼠标。” 很不幸，我用的Highslide4WP就需要点两下鼠标，好吧，我也算懒人，于是表情改为了代码插入。而且特意用了hover动作，不知道算不算只点一下鼠标，A.shun给过吗? <img src='http://www.whisperer.name/wp-includes/images/smilies/icon_surprised.gif' alt=':-o' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-97" title="smileshover" src="http://www.whisperer.name/wp-content/uploads/2011/08/smileshover.png" alt="" width="376" height="171" /></p>
<p><span style="color: #cc214e;"><strong>插件的去留</strong></span></p>
<p>　　除了以上提到的这些，受升级影响还停掉了Easyarchives。用上了zwwooooo的<a  href="http://zww.me/archives/25209" target="_blank">代码实现WordPress归档页面模板</a>。</p>
<p>　　新添加的插件，<a  href="http://www.semiologic.com/software/external-links/" target="_blank">External Links</a>，文章内容中的外部链接的标示就是用它实现的。<a  href="http://blog.milandinic.com/wordpress/plugins/gravatar-signup-encouragement/">Gravatar Signup Encouragement</a>，如果评论者填写的邮件没有用Gravatar，会给一个提示，引导他去设置头像。这两个插件都可以用代码实现，懒得折腾了，腻了就停掉。</p>
<p><strong><span style="color: #cc214e;">目前的问题和bug</span></strong></p>
<p>　　回复评论时，如果评论框里有输入，点击“取消回复”后，不能清空输入内容。&lt;/&gt;</p>
<p>　　用jQuery.mini 1.3.2有下面两个bug，目前我在用1.3.1，一切正常。</p>
<p>　　SlideDown效果失去焦点时，如果再点击目标时，又重复Slidedown一次。形象一点就是点击一下评论框，编辑器滑出，点击评论框以外位置，编辑器并没有收回，但是再点击评论框时，编辑器还是有滑出动作。（是不是我代码写的不对？）</p>
<p>　　经过嵌套评论的@回复，悬浮效果会有“双眼皮”，如下图。</p>
<p><img class="alignnone size-full wp-image-99" title="atbug" src="http://www.whisperer.name/wp-content/uploads/2011/08/atbug.png" alt="" width="595" height="191" /></p>
<p>　　最后，有没有简洁的图片插件推荐？只要能实现点击缩略图能打开原图就可以。现在我用的是Showfom小盆友的<a  href="http://zou.lu/auto-hishslide-wordpress-plugin/" target="_blank">Auto HighSlide</a>。</p>
<p><strong><span style="color: #cc214e;">特别鸣谢</span></strong></p>
<p>　　<a  href="http://kan.willin.org/">Willin Kan</a> <a  href="http://zww.me/" target="_blank">ZWWoOoOo</a> <a  href="http://wange.im/" target="_blank">万戈</a> <a  href="http://www.a-shun.com/" target="_blank">A.shun</a></p>
<p>　　如果你们有访问统计的话，会发现最近有很多来自我的PV，哈哈。</p>
<p>　　折腾了好久，除了很多不值一提的小修补，发现也没多少值得写的，不过，会不会有人问，这个主题为什么叫iNove？</p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>2009/10/07 -- <a  href="http://www.whisperer.name/2009/10/wordpress-plugins-being-used/" title="我的WordPress插件展示">我的WordPress插件展示</a> (177)</li><li>2009/09/01 -- <a  href="http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/" title="美化iNove的Google自定义搜索">美化iNove的Google自定义搜索</a> (108)</li><li>2009/08/11 -- <a  href="http://www.whisperer.name/2009/08/abandon-lightview-plus/" title="抛弃Lightview Plus">抛弃Lightview Plus</a> (6)</li><li>2011/10/10 -- <a  href="http://www.whisperer.name/2011/10/ads-actived/" title="广告来了">广告来了</a> (70)</li><li>2011/09/07 -- <a  href="http://www.whisperer.name/2011/09/conflict-between-weibo-share-and-google-site-verification/" title="微博分享和Google网站验证疑似冲突">微博分享和Google网站验证疑似冲突</a> (16)</li><li>2011/08/16 -- <a  href="http://www.whisperer.name/2011/08/free-virtual-host-form-cosbeta/" title="换虚拟主机啦">换虚拟主机啦</a> (31)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.whisperer.name/2011/08/some-theme-changes/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		</item>
		<item>
		<title>美化iNove的Google自定义搜索</title>
		<link>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/</link>
		<comments>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 11:56:54 +0000</pubDate>
		<dc:creator>whisperer</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[知识技巧]]></category>
		<category><![CDATA[iNove]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[美化]]></category>

		<guid isPermaLink="false">http://www.whisperer.name/?p=42</guid>
		<description><![CDATA[iNove主题在后台的“主题选项”中设置了一个定制Google自定义搜索的功能，以优化WordPress的搜索结果。我一直没有启用这个功能，直到看到A-shun同学折腾后的搜索页面，恍然大悟，原来我也是想要搜索结果在当前主题内展示，而不是跳转到Google的页面。我也做出了一些改变，把搜索结果页面整合到了主题中，具体的效果，可以到NeoEase和Let's whisper随便搜索些东西来比较一下。 [比较这里吧：前 &#124; 后] 其中参考了我爱水煮鱼的教程，如果你不是用iNove，可以直接看那篇教程。以下我就针对iNove，开始： 1、登陆到Google自定义搜索，创建你的自定义搜索。（此处略去x百字） 2、创建一个搜索结果模板。把下面代码保存为cse.php，上传至iNove主题的文件夹。（cse意为custom search engine，你可以换成其他） &#60;?php/*Template Name: cse*/?&#62;&#60;?php get_header(); ?&#62;&#60;div id="cse-search-results"&#62;&#60;/div&#62;&#60;script type="text/javascript"&#62;&#160; var googleSearchIframeName = "cse-search-results";&#160; var googleSearchFormName = "cse-search-box";&#160; var googleSearchFrameWidth =600;&#160; var googleSearchDomain = "www.google.com";&#160; var googleSearchPath = "/cse";&#60;/script&#62;&#60;script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"&#62;&#60;/script&#62;&#60;?php get_footer(); ?&#62; var googleSearchFrameWidth =605为搜索结果页面的宽度，iNove默认的宽度是605。 3、在WordPress中创建一个页面，比如我的，地址为http://www.whisperer.name/cse，标题为Search Result，模板选择刚刚创建的cse。 然后在导航栏隐藏这个页面，在iNove的文件夹找到templates/header.php，找到下面一行： wp_list_pages('title_li=0&#38;sort_column=menu_order'); 改成， wp_list_pages('title_li=0&#38;sort_column=menu_order&#38;exclude=41'); 其中exclude=41意思是在导航栏隐藏这个cse页面，41是这个页面的ID，在/wp-admin/edit-pages.php页面，鼠标悬浮在页面的标题上，在下面状态栏就可以看到post=41。 4、定义搜索框。仍然是templates/header.php，找到下面代码: &#60;form action="http://www.google.com/cse" method="get"&#62;     &#60;div [...]]]></description>
			<content:encoded><![CDATA[<p><a  href="http://www.neoease.com/inove/" target="_blank">iNove</a>主题在后台的“主题选项”中设置了一个定制Google自定义搜索的功能，以优化WordPress的搜索结果。我一直没有启用这个功能，直到看到<a  href="http://www.a-shun.com/" target="_blank">A-shun</a>同学<a  href="http://www.a-shun.com/archives/21257.html" target="_blank">折腾</a>后的搜索页面，恍然大悟，原来我也是想要搜索结果在当前主题内展示，而不是跳转到Google的页面。我也做出了一些改变，把搜索结果页面整合到了主题中，具体的效果，<span style="text-decoration: line-through;">可以到</span><a  href="http://www.neoease.com/" target="_blank"><span style="text-decoration: line-through;">NeoEase</span></a><span style="text-decoration: line-through;">和</span><a  href="http://www.whisperer.name/"><span style="text-decoration: line-through;">Let's whisper</span></a><span style="text-decoration: line-through;">随便搜索些东西来比较一下。</span> [比较这里吧：<a  href="http://www.google.com/cse?q=inove&#038;cx=014782006753236413342%3A1ltfrybsbz4&#038;ie=UTF-8" target="_blank">前</a> | <a  href="http://www.neoease.com/cse/?q=inove&#038;cx=014782006753236413342%3A1ltfrybsbz4&#038;cof=FORID%3A11&#038;ie=UTF-8#993" target="_blank">后</a>]</p>
<p>其中参考了<a  href="http://fairyfish.net/2008/04/29/integrate-google-custom-search-into-wordpress/" target="_blank">我爱水煮鱼的教程</a>，如果你不是用iNove，可以直接看那篇教程。以下我就针对iNove，开始：</p>
<p>1、登陆到<a  href="http://www.google.com/coop/cse/">Google自定义搜索</a>，创建你的自定义搜索。（此处略去x百字）</p>
<p>2、创建一个搜索结果模板。把下面代码保存为<span style="background-color: #dddddd;">cse.php</span>，上传至iNove主题的文件夹。（cse意为custom search engine，你可以换成其他）<span id="more-42"></span></p>
<p><DIV style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0" class=source jQuery1255539165484="15"><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">/*</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">Template Name: cse</SPAN><BR><SPAN style="FONT-STYLE: italic; COLOR: #999999">*/</SPAN><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">get_header</SPAN>(); <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"cse-search-results"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;&lt;/div&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;script </SPAN><SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text/javascript"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchIframeName</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"cse-search-results"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchFormName</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"cse-search-box"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchFrameWidth</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN><SPAN style="COLOR: #3677a9">600</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchDomain</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"www.google.com"</SPAN>;<BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">var</SPAN> <SPAN style="COLOR: #d0d0d0">googleSearchPath</SPAN> <SPAN style="COLOR: #d0d0d0">=</SPAN> <SPAN style="COLOR: #ed9d13">"/cse"</SPAN>;<BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/script&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;script </SPAN><SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text/javascript"</SPAN> <SPAN style="COLOR: #bbbbbb">src=</SPAN><SPAN style="COLOR: #ed9d13">"http://www.google.com/afsonline/show_afs_search.js"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;&lt;/script&gt;</SPAN><BR><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">get_footer</SPAN>(); <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><BR></DIV></p>
<p><span style="background-color: #dddddd;">var googleSearchFrameWidth =605</span>为搜索结果页面的宽度，iNove默认的宽度是605。</p>
<p>3、在WordPress中创建一个页面，比如我的，地址为<span style="background-color: #dddddd;">http://www.whisperer.name/cse</span>，标题为<span style="background-color: #dddddd;">Search Result</span>，模板选择刚刚创建的cse。</p>
<p>然后在导航栏隐藏这个页面，在iNove的文件夹找到<span style="background-color: #dddddd;">templates/header.php</span>，找到下面一行：</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #d0d0d0">wp_list_pages('title_li=0&amp;sort_column=menu_order');</span></div>
<p>改成，</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #d0d0d0">wp_list_pages('title_li=0&amp;sort_column=menu_order&amp;exclude=41');</span></div>
<p>其中<span style="background-color: #dddddd;">exclude=41</span>意思是在导航栏隐藏这个cse页面，<span style="background-color: #dddddd;">41</span>是这个页面的ID，在<span style="background-color: #dddddd;">/wp-admin/edit-pages.php</span>页面，鼠标悬浮在页面的标题上，在下面状态栏就可以看到<span style="background-color: #dddddd;">post=41</span>。</p>
<p>4、定义搜索框。仍然是<span style="background-color: #dddddd;">templates/header.php</span>，找到下面代码:</p>
<div class="source" style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0"><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;form</span> <span style="COLOR: #bbbbbb">action=</span><span style="COLOR: #ed9d13">"http://www.google.com/cse"</span> <span style="COLOR: #bbbbbb">method=</span><span style="COLOR: #ed9d13">"get"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span><br />
    <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"content"</span><span style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"text"</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"textfield"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"q"</span> <span style="COLOR: #bbbbbb">size=</span><span style="COLOR: #ed9d13">"24"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"submit"</span> <span style="COLOR: #bbbbbb">class=</span><span style="COLOR: #ed9d13">"button"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"sa"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">""</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"hidden"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"cx"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">"</span><span style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">echo</span> <span style="COLOR: #40ffff">$options</span><span style="COLOR: #d0d0d0">[</span><span style="COLOR: #ed9d13">'google_cse_cx'</span><span style="COLOR: #d0d0d0">];</span> <span style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</span><span style="COLOR: #ed9d13">"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
        <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</span> <span style="COLOR: #bbbbbb">type=</span><span style="COLOR: #ed9d13">"hidden"</span> <span style="COLOR: #bbbbbb">name=</span><span style="COLOR: #ed9d13">"ie"</span> <span style="COLOR: #bbbbbb">value=</span><span style="COLOR: #ed9d13">"UTF-8"</span> <span style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</span><br />
    <span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/div&gt;</span><br />
<span style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/form&gt;</span></div>
<p>改成，</p>
<p><DIV style="BACKGROUND-COLOR: #1e1e27; FONT-FAMILY: 'Consolas','Lucida Console','Courier New'; COLOR: #d0d0d0" class=source jQuery1255538284046="15"><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;form</SPAN> <SPAN style="COLOR: #bbbbbb">action=</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #d0d0d0">bloginfo</SPAN>(<SPAN style="COLOR: #ed9d13">'wpurl'</SPAN>) <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><SPAN style="COLOR: #ed9d13">/cse"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"cse-search-box"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;div</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"content"</SPAN><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"cx"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN><SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">&lt;?php</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">echo</SPAN> <SPAN style="COLOR: #40ffff">$options</SPAN><SPAN style="COLOR: #d0d0d0">[</SPAN><SPAN style="COLOR: #ed9d13">'google_cse_cx'</SPAN><SPAN style="COLOR: #d0d0d0">];</SPAN> <SPAN style="COLOR: #cd2828; FONT-WEIGHT: bold">?&gt;</SPAN><SPAN style="COLOR: #ed9d13">"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"cof"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"FORID:11"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"hidden"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"ie"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">"UTF-8"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"text"</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"textfield"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"searchtxt"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"q"</SPAN> <SPAN style="COLOR: #bbbbbb">size=</SPAN><SPAN style="COLOR: #ed9d13">"24"</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp;&nbsp;&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;input</SPAN> <SPAN style="COLOR: #bbbbbb">type=</SPAN><SPAN style="COLOR: #ed9d13">"submit"</SPAN> <SPAN style="COLOR: #bbbbbb">class=</SPAN><SPAN style="COLOR: #ed9d13">"button"</SPAN> <SPAN style="COLOR: #bbbbbb">id=</SPAN><SPAN style="COLOR: #ed9d13">"searchbtn"</SPAN> <SPAN style="COLOR: #bbbbbb">name=</SPAN><SPAN style="COLOR: #ed9d13">"sa"</SPAN> <SPAN style="COLOR: #bbbbbb">value=</SPAN><SPAN style="COLOR: #ed9d13">""</SPAN> <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">/&gt;</SPAN><BR>&nbsp; <SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/div&gt;</SPAN><BR><SPAN style="COLOR: #6ab825; FONT-WEIGHT: bold">&lt;/form&gt;</SPAN><BR></DIV></p>
<p>其中第一行的<span style="background-color: #dddddd;">&lt; ?php bloginfo('wpurl') ?&gt;/cse</span>是刚刚你创建的搜索结果页面的地址。</p>
<p>5、在iNove的主题选项中，勾选使用Google自定义引擎，填上你的CX值。</p>
<p>这样，所有的工作都做完了。你可以随时在WordPress默认搜索和Google自定义搜索之间进行切换。并且不需要再另外用css定义搜索框了，已经沿用原来的搜索框样式了。</p>
<p><span style="color: #800000;">PS：这个是可以在后台切换两种搜索模式，应该可以在搜索框旁边定义一个按钮，让访客可以自行选择。刚入WP的时候在某个博客上看到过，谁知道怎么定义的话不妨共享出来。</span></p>
<p><span style="color: #800000;"><strong>2009/09/24  update:</strong> </span><span style="color: #800000;">在IE6下出现错位的同学，请更新一下第4步中的代码，感谢<a  id="commentauthor-1074" rel="external nofollow" href="http://bigyang.com/">bigyang </a>。</span></p>
<p><br class="spacer_" /></p>
<h3  class="related_post_title">Related Posts</h3><ul class="related_post"><li>2011/08/06 -- <a  href="http://www.whisperer.name/2011/08/some-theme-changes/" title="iNove修改小记">iNove修改小记</a> (45)</li><li>2011/10/10 -- <a  href="http://www.whisperer.name/2011/10/ads-actived/" title="广告来了">广告来了</a> (70)</li><li>2011/09/07 -- <a  href="http://www.whisperer.name/2011/09/conflict-between-weibo-share-and-google-site-verification/" title="微博分享和Google网站验证疑似冲突">微博分享和Google网站验证疑似冲突</a> (16)</li><li>2011/08/16 -- <a  href="http://www.whisperer.name/2011/08/free-virtual-host-form-cosbeta/" title="换虚拟主机啦">换虚拟主机啦</a> (31)</li><li>2011/07/28 -- <a  href="http://www.whisperer.name/2011/07/recall-gravatar/" title="解决Gravatar头像不显示">解决Gravatar头像不显示</a> (34)</li><li>2009/10/11 -- <a  href="http://www.whisperer.name/2009/10/gradual-change/" title="网页渐变效果">网页渐变效果</a> (63)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.whisperer.name/2009/09/improve-the-google-custom-search-results-of-inove/feed/</wfw:commentRss>
		<slash:comments>108</slash:comments>
		</item>
	</channel>
</rss>

