<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>老四的博客 &#187; 网络</title>
	<atom:link href="http://bulog.org/tag/net/feed" rel="self" type="application/rss+xml" />
	<link>http://bulog.org</link>
	<description>希望给你自由</description>
	<lastBuildDate>Sun, 25 Mar 2012 11:09:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>温和一点</title>
		<link>http://bulog.org/logs/essay/wen-he.html</link>
		<comments>http://bulog.org/logs/essay/wen-he.html#comments</comments>
		<pubDate>Tue, 08 Mar 2011 07:00:27 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[随笔]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=2271</guid>
		<description><![CDATA[前几天大黄打电话来说PR更新了，晚上回去一查发现 bulog 这域名已经PR4了，算是谷歌对这博客一年多来还苟延残喘的活着的鼓励。虽然这段时间的后半截博客越来越难产，最近这一两月更是一文不拨，但它总算还活着。这不是一个健康的生命状态，但活着就有希望，就有改变的可能；而死亡，可能是涅槃，更可能是轮回。 我想上面一段话容易让善于联想的人产生联想（其实善于联想的人对每句话都会产生联想，就像阴谋论者会以为所有事件背后都有操纵者），但那实非我的本意，更不能代表我对某些观点的态度，我只是想单纯的说一件事情。这件事就是我做了一个又一个网站，一个又一个博客，没有越来越好来来来来，只有没完没了的从新鲜到厌倦。所以从这个博客开始，我决心做一个温和的改良派，即使以前的文章惨不忍睹，也不一杆子打死，删网站关域名重新来过。尽管这只是一件小事，但冲动同样只能创造悲剧。 相关日志2009/11/14 -- 博客自动生成description与keywords(完整版) (1)2009/11/14 -- Wp kit cn中的几种变量 (5)2010/04/23 -- 滑动关闭侧边栏(基于jQuery1.4) (20)2010/04/22 -- wordpress 默认小工具修改表 (17)2010/04/17 -- Widget Logic 参数 (9)2010/03/23 -- 无插件实现 wordpress 彩色标签云效果 (13)]]></description>
			<content:encoded><![CDATA[<p>前几天大黄打电话来说PR更新了，晚上回去一查发现 bulog 这域名已经PR4了，算是谷歌对这博客一年多来还苟延残喘的活着的鼓励。虽然这段时间的后半截博客越来越难产，最近这一两月更是一文不拨，但它总算还活着。这不是一个健康的生命状态，但活着就有希望，就有改变的可能；而死亡，可能是涅槃，更可能是轮回。<span id="more-2271"></span></p>
<p>我想上面一段话容易让善于联想的人产生联想（其实善于联想的人对每句话都会产生联想，就像阴谋论者会以为所有事件背后都有操纵者），但那实非我的本意，更不能代表我对某些观点的态度，我只是想单纯的说一件事情。这件事就是我做了一个又一个网站，一个又一个博客，没有越来越好来来来来，只有没完没了的从新鲜到厌倦。所以从这个博客开始，我决心做一个温和的改良派，即使以前的文章惨不忍睹，也不一杆子打死，删网站关域名重新来过。尽管这只是一件小事，但冲动同样只能创造悲剧。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li><li>2010/04/23 -- <a href="http://bulog.org/share/wordpress/close-sidebar.html" title="滑动关闭侧边栏(基于jQuery1.4)">滑动关闭侧边栏(基于jQuery1.4)</a> (20)</li><li>2010/04/22 -- <a href="http://bulog.org/share/wordpress/default-widgets.html" title="wordpress 默认小工具修改表">wordpress 默认小工具修改表</a> (17)</li><li>2010/04/17 -- <a href="http://bulog.org/share/wordpress/widget-logic.html" title="Widget Logic 参数">Widget Logic 参数</a> (9)</li><li>2010/03/23 -- <a href="http://bulog.org/share/wordpress/wordpress-colore-tag.html" title="无插件实现 wordpress 彩色标签云效果">无插件实现 wordpress 彩色标签云效果</a> (13)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/logs/essay/wen-he.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>向 Alexa 提交网站信息(新版本)</title>
		<link>http://bulog.org/share/zahui/site-info-from-alexa.html</link>
		<comments>http://bulog.org/share/zahui/site-info-from-alexa.html#comments</comments>
		<pubDate>Sat, 06 Mar 2010 04:13:24 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[杂烩]]></category>
		<category><![CDATA[站长]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=1310</guid>
		<description><![CDATA[Alexa 改版之后，以前向其提交网站信息的教程都已经失效，许多站长硬是找不着提交入口，从用户体验上看， Alexa 真是糟糕透顶。昨天看到百度上有人询问向 Alexa 新版提交网站信息方法，帮他在 google 上搜索一圈未果，索性自己写一篇，释放释放一点热量，也不枉我这几天常看的一本书&#8212;&#8212;《雷峰同志的故事》。 首先，进入 Alexa 官方网站：http://www.alexa.com/，点击右上角注册账号（图1，图2）。进入信箱找到 Alexa 发的邮件，点击那一长串链接，完成注册，并登陆。 登陆成功后，点击菜单中的 For Site Owners（图3a），然后点击 Claim Your Site (图3b) 在框中输入网站域名（图4） 点击确认后 Alexa 提供两种方式用来确定你的网站管理者身份， 一种是提供txt文件让你上传至网站根目录，即使用网站地址+文件名可以访问到 Alexa 提供的txt文件； 或者在网站首页头部文件中加入 Alexa 提供的代码（图5）。 完成后点击相应验证方式后的 Verify my text file。 通过验证后跳出一个表单，填写网站信息，这个不用多说，写完后提交即可。最后会提示在两个工作日内处理你的请求，结束。 相关日志2011/03/08 -- 温和一点 (13)2010/04/17 &#8230; <a href="http://bulog.org/share/zahui/site-info-from-alexa.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Alexa 改版之后，以前向其提交网站信息的教程都已经失效，许多站长硬是找不着提交入口，从用户体验上看， Alexa 真是糟糕透顶。昨天看到百度上有人询问<a href="http://bulog.org/share/zahui/site-info-from-alexa.html">向 Alexa 新版提交网站信息</a>方法，帮他在 google 上搜索一圈未果，索性自己写一篇，释放释放一点热量，也不枉我这几天常看的一本书&#8212;&#8212;《雷峰同志的故事》。</p>
<p><span id="more-1310"></span></p>
<div class="wp-caption alignnone" style="width: 210px"><img title="向 alexa 提交网站信息1" src="http://i565.photobucket.com/albums/ss94/heziblog/1-5.jpg" alt="向 alexa 提交网站信息1" width="200" height="156" /><p class="wp-caption-text">图1</p></div>
<p><strong>首先，进入 Alexa 官方网站：</strong><a href="http://www.alexa.com/"><strong>http://www.alexa.com/</strong></a><strong>，点击右上角注册账号（图1，图2）。<strong>进入信箱找到 Alexa 发的邮件，点击那一长串链接，完成注册，并登陆。</strong></strong></p>
<div class="wp-caption alignnone" style="width: 494px"><img class=" " title="向 alexa 提交网站信息2" src="http://i565.photobucket.com/albums/ss94/heziblog/2-2.jpg" alt="向 alexa 提交网站信息2" width="484" height="284" /><p class="wp-caption-text">图2</p></div>
<p><strong>登陆成功后，点击菜单中的 For Site Owners（图3a），然后点击 Claim Your Site (图3b)</strong></p>
<div class="wp-caption alignnone" style="width: 521px"><img class=" " title="向 alexa 提交网站信息3" src="http://i565.photobucket.com/albums/ss94/heziblog/3-1.jpg" alt="向 alexa 提交网站信息3" width="511" height="181" /><p class="wp-caption-text">图3</p></div>
<p><strong>在框中输入网站域名（图4）</strong></p>
<div class="wp-caption alignnone" style="width: 322px"><img class=" " title="向 alexa 提交网站信息4" src="http://i565.photobucket.com/albums/ss94/heziblog/4-1.jpg" alt="向 alexa 提交网站信息4" width="312" height="187" /><p class="wp-caption-text">图4</p></div>
<p><strong>点击确认后 Alexa 提供两种方式用来确定你的网站管理者身份，</strong></p>
<p><strong>一种是提供txt文件让你上传至网站根目录，即使用网站地址+文件名可以访问到 Alexa 提供的txt文件；</strong></p>
<p><strong>或者在网站首页头部文件中加入 Alexa 提供的代码（图5）。</strong></p>
<div class="wp-caption alignnone" style="width: 614px"><img class="  " title="向 alexa 提交网站信息5" src="http://i565.photobucket.com/albums/ss94/heziblog/5-1.jpg" alt="向 alexa 提交网站信息5" width="604" height="270" /><p class="wp-caption-text">图5</p></div>
<p><strong>完成后点击相应验证方式后的 Verify my text file。</strong></p>
<p><strong>通过验证后跳出一个表单，填写网站信息，这个不用多说，写完后提交即可。最后会提示在两个工作日内处理你的请求，结束。</strong></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/04/17 -- <a href="http://bulog.org/share/wordpress/widget-logic.html" title="Widget Logic 参数">Widget Logic 参数</a> (9)</li><li>2010/03/15 -- <a href="http://bulog.org/share/tool/icons-16-16.html" title="一套精美图标(16×16)">一套精美图标(16×16)</a> (6)</li><li>2010/01/31 -- <a href="http://bulog.org/share/wordpress/what-is-blog.html" title="如何搭建一个独立博客？">如何搭建一个独立博客？</a> (30)</li><li>2009/12/03 -- <a href="http://bulog.org/logs/ogc.html" title="从Orz到OGC">从Orz到OGC</a> (5)</li><li>2009/11/16 -- <a href="http://bulog.org/share/advanced-systemcare-pro-edition.html" title="Advanced SystemCare™ PRO Edition">Advanced SystemCare™ PRO Edition</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/zahui/site-info-from-alexa.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>从Orz到OGC</title>
		<link>http://bulog.org/logs/ogc.html</link>
		<comments>http://bulog.org/logs/ogc.html#comments</comments>
		<pubDate>Thu, 03 Dec 2009 15:46:32 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[闲言]]></category>
		<category><![CDATA[笑一笑]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=678</guid>
		<description><![CDATA[晚上在山寨画报看到“英国财政部的LOGO竟然如此YY”一文，有些怀疑。Google一下，原来确有此事，不过此logo的主人其实是“英国商务部（Office of Government Commerce）”。再搜索OGC，发现这三字母大有内涵，佩服同志们淫荡的想像力。 OGC在维基百科有如下注解： &#8220;OGC&#8220;是从网路聊天之表情符号中延伸出，初时意指男性自慰/手淫之表象， 其中O为人体头部，G为上下两侧为左右手，中间则一横为男性生殖器官，C则表示为双脚。 如同表情符号失意体前弯（Orz），OGC后续也延伸出许多变化形式 最常见的如oec，代表左撇子在自慰之意象。 O8&#62;C，代表女性自慰（8为胸部，&#62;为双手，也作OB&#62;C）等。 不过，要是中间“G”的那一勾再长点的话，倒像是一个阿弥陀佛的小和尚-_-!，这样看就和谐了。 相关日志2011/07/02 -- 测试一下 (23)2011/03/08 -- 温和一点 (13)2010/03/06 -- 向 Alexa 提交网站信息(新版本) (5)2009/12/10 -- 与人斗其乐无穷 (2)2009/11/26 -- 金坷垃 (7)2009/11/16 -- Advanced SystemCare™ PRO Edition (1)]]></description>
			<content:encoded><![CDATA[<p>晚上在山寨画报看到“<a rel="nofollow" href="http://bigfools.com/2009/12/1313.html" target="_blank">英国财政部的LOGO竟然如此YY</a>”一文，有些怀疑。Google一下，原来确有此事，不过此logo的主人其实是“英国商务部（<a href="http://www.ogc.gov.uk/" target="_blank">Office of Government Commerce</a>）”。再搜索<a href="http://bulog.org/logs/ogc.html">OGC</a>，发现这三字母大有内涵，佩服同志们淫荡的想像力。</p>
<p><span id="more-678"></span></p>
<p>OGC在维基百科有如下注解：</p>
<blockquote><p><img class="alignleft" title="OGC" src="http://i565.photobucket.com/albums/ss94/heziblog/1-2.png" alt="OGC" width="40" height="120" /></p>
<p><img class="  alignright" title="ogc" src="http://i565.photobucket.com/albums/ss94/heziblog/ogc.gif" alt="ogc" width="40" height="120" />&#8220;<a href="http://bulog.org/logs/ogc.html">OGC</a>&#8220;是从网路聊天之表情符号中延伸出，初时意指男性自慰/手淫之表象， 其中O为人体头部，G为上下两侧为左右手，中间则一横为男性生殖器官，C则表示为双脚。</p>
<p>如同表情符号失意体前弯（Orz），OGC后续也延伸出许多变化形式<br />
最常见的如<a href="http://bulog.org/logs/ogc.html">oec</a>，代表左撇子在自慰之意象。<br />
<a href="http://bulog.org/logs/ogc.html"> O8&gt;C</a>，代表女性自慰（8为胸部，&gt;为双手，也作<a href="http://bulog.org/logs/ogc.html">OB&gt;C</a>）等。</p></blockquote>
<p>不过，要是中间“G”的那一勾再长点的话，倒像是一个阿弥陀佛的小和尚-_-!，这样看就<a href="http://bulog.org/logs/baidu-mei-ji-ji-2.html">和谐</a>了。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/07/02 -- <a href="http://bulog.org/logs/essay/ce-shi.html" title="测试一下">测试一下</a> (23)</li><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/03/06 -- <a href="http://bulog.org/share/zahui/site-info-from-alexa.html" title="向 Alexa 提交网站信息(新版本)">向 Alexa 提交网站信息(新版本)</a> (5)</li><li>2009/12/10 -- <a href="http://bulog.org/share/v-a/shi-shang-zui-da-zuo-bi-zhan-zheng.html" title="与人斗其乐无穷">与人斗其乐无穷</a> (2)</li><li>2009/11/26 -- <a href="http://bulog.org/share/jin-ke-la.html" title="金坷垃">金坷垃</a> (7)</li><li>2009/11/16 -- <a href="http://bulog.org/share/advanced-systemcare-pro-edition.html" title="Advanced SystemCare™ PRO Edition">Advanced SystemCare™ PRO Edition</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/logs/ogc.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Advanced SystemCare™ PRO Edition</title>
		<link>http://bulog.org/share/advanced-systemcare-pro-edition.html</link>
		<comments>http://bulog.org/share/advanced-systemcare-pro-edition.html#comments</comments>
		<pubDate>Mon, 16 Nov 2009 10:25:21 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[电脑]]></category>
		<category><![CDATA[网络]]></category>
		<category><![CDATA[软件]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=595</guid>
		<description><![CDATA[Advanced SystemCare™ PRO Edition是国外一款分析系统性能瓶颈的优化软件。现在最新版本为3.4多国语言版，使用起来不会有语言障碍。下载地址 Advanced SystemCare™ PRO Edition提供的免费版本目前只有最基本的检测与修复，真正的核心优化并没有向免费用户开放。因此我们需要通过信用卡支付购买注册码，以升级到专业版。当然，这对于大部分人来说是相当麻烦的一件事；而且作为一款优化软件卖到二十美元也的确是不便宜。所以，如果你没有信用卡支付美元的条件，或者是囊中羞涩的话，也可以继续向下看。 用户名：key4lock 注册码：BE2C-BE2C-XXXX-XXXX（注：XXXX处可随意输入，注册时需断网。） 相关日志2011/03/08 -- 温和一点 (13)2010/03/21 -- Wordpress 主题生成软件 (18)2010/03/06 -- 向 Alexa 提交网站信息(新版本) (5)2009/12/12 -- More-link (2)2009/12/03 -- 从Orz到OGC (5)2009/11/14 -- 博客自动生成description与keywords(完整版) (1)]]></description>
			<content:encoded><![CDATA[<p><a href="http://bulog.org/logs/advanced-systemcare-pro-edition.html">Advanced SystemCare™ PRO Edition</a>是国外一款分析系统性能瓶颈的优化软件。现在最新版本为3.4多国语言版，使用起来不会有语言障碍。<a href="http://download.iobit.com/asc-setup.exe">下载地址</a></p>
<p><a href="http://bulog.org/logs/advanced-systemcare-pro-edition.html">Advanced SystemCare™ PRO Edition</a>提供的免费版本目前只有最基本的检测与修复，真正的核心优化并没有向免费用户开放。因此我们需要通过信用卡支付购买注册码，以升级到专业版。当然，这对于大部分人来说是相当麻烦的一件事；而且作为一款优化软件卖到二十美元也的确是不便宜。所以，如果你没有<a href="http://bulog.org/logs/advanced-systemcare-pro-edition.html">信用卡支付美元</a>的条件，或者是囊中羞涩的话，也可以继续向下看。</p>
<p><span id="more-595"></span>用户名：key4lock<br />
注册码：BE2C-BE2C-XXXX-XXXX<strong>（注：XXXX处可随意输入，注册时需断网。）</strong></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/03/21 -- <a href="http://bulog.org/share/wordpress/wordpress-artisteer.html" title="Wordpress 主题生成软件">Wordpress 主题生成软件</a> (18)</li><li>2010/03/06 -- <a href="http://bulog.org/share/zahui/site-info-from-alexa.html" title="向 Alexa 提交网站信息(新版本)">向 Alexa 提交网站信息(新版本)</a> (5)</li><li>2009/12/12 -- <a href="http://bulog.org/share/wordpress/more-link.html" title="More-link">More-link</a> (2)</li><li>2009/12/03 -- <a href="http://bulog.org/logs/ogc.html" title="从Orz到OGC">从Orz到OGC</a> (5)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/advanced-systemcare-pro-edition.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>博客自动生成description与keywords(完整版)</title>
		<link>http://bulog.org/share/wp-description-keywords.html</link>
		<comments>http://bulog.org/share/wp-description-keywords.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 15:55:04 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=581</guid>
		<description><![CDATA[本段代码加入了独立Page页与分类页的 Description 和 Keywords，功能可与 All in One SEO 插件相媲美。注：分类面与独立Page页若未使用默认链接，则需将代码中的数字ID改为自己设定的别名。 修改方法： 把 header.php 中的（不一定完全匹配，认准） 1 &#60;title&#62;&#60;?php wp_title&#40;'&#38;laquo;', true, 'right'&#41;; ?&#62; &#60;?php bloginfo&#40;'name'&#41;; ?&#62;&#60;/title&#62; 改为： 1 &#60;?php include_once&#40;&#34;seo.php&#34;&#41;; ?&#62; 把以下代码保存为 seo.php 放置在主题目录中。 1 2 3 4 5 6 7 8 9 10 11 &#8230; <a href="http://bulog.org/share/wp-description-keywords.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>本段代码加入了独立Page页与分类页的 Description 和 Keywords，功能可与 <a href="http://bulog.org/share/wp-description-keywords.html">All in One SEO</a> 插件相媲美。<em>注：分类面与独立Page页若未使用默认链接，则需将代码中的数字ID改为自己设定的别名。</em><br />
<span id="more-581"></span><br />
修改方法：<br />
把 header.php 中的（不一定完全匹配，认准<title></title>）</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo;'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'right'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;</pre></td></tr></table></div>

<p>改为：</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;seo.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>把以下代码保存为 seo.php 放置在主题目录中。</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;!--###Title Begin, By Lc.###--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_search<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;搜索结果 | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span>wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span>wp_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> single_cat_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_month<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'is_tag'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_tag<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span>  single_tag_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">##定义一个函数.解决截取中文乱码的问题###
</span><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'utf8Substr'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
 <span style="color: #000000; font-weight: bold;">function</span> utf8Substr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$str</span><span style="color: #339933;">,</span> <span style="color: #000088;">$from</span><span style="color: #339933;">,</span> <span style="color: #000088;">$len</span><span style="color: #009900;">&#41;</span>
 <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">return</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'</span><span style="color: #339933;">.</span><span style="color: #000088;">$from</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'}'</span><span style="color: #339933;">.</span>
          <span style="color: #0000ff;">'((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'</span><span style="color: #339933;">.</span><span style="color: #000088;">$len</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'}).*#s'</span><span style="color: #339933;">,</span>
          <span style="color: #0000ff;">'$1'</span><span style="color: #339933;">,</span><span style="color: #000088;">$str</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
 <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;我们身处急速上涨的数据海洋中…我们如何避免信息的没顶之灾呢？柳城博客(Lc.)∷关注生物信息学，分享学习Linux、PHP+Mysql、Perl/BioPerl等的心得，努力在数据的海洋里畅游。&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;生物信息学,Perl,Bioperl,PHP,Mysql,Linux,NCBI,摄影&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$description</span>  <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_excerpt</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">preg_match</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/&lt;p&gt;(.*)&lt;\/p&gt;/iU'</span><span style="color: #339933;">,</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;&lt;p&gt;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$result</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$post_content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$result</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$post_content_r</span> <span style="color: #339933;">=</span> <span style="color: #990000;">explode</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_content</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$post_content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post_content_r</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'0'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
         <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> utf8Substr<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_content</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">220</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>  
  <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>     
    <span style="color: #000088;">$tags</span> <span style="color: #339933;">=</span> wp_get_post_tags<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tags</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$keywords</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$tag</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">name</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;,&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">###这里是分类页面。自行改变is_category的ID。###
</span><span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">34</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;生物信息学(Bioinformatics)是一门利用计算机技术研究生物系统之规律的学科。通过实例分析，介绍生物信息学的入学知识，包含生物信息学的数据库等。重点是NCBI的中文教程。&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;生物信息学,Bioinformatics,NCBI,影响因子&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #666666; font-style: italic;">###这里是Page页。同上。多个页面的话自行添加就是###
</span><span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;关于柳城博客（Lc.）的介绍，联系方式，以及网站历程。柳城博客（LIUCHENG.NAME）∷努力在数据的海洋里畅游。&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;生物信息学,Perl,Bioperl,PHP,Mysql,Linux,NCBI,摄影&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">135</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$description</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;柳城博客(Lc.)的留言板。有什么问题或建议请在这里留言! 我会尽快回复~ 感谢您的支持！！&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$keywords</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;柳城博客,Lc.,留言板,留言本&quot;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;meta name=&quot;description&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$description</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
&lt;meta name=&quot;keywords&quot; content=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #990000;">rtrim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$keywords</span><span style="color: #339933;">,</span><span style="color: #0000ff;">','</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; /&gt;
&lt;!--###Description &amp; Keywords End, By Lc.###--&gt;</pre></td></tr></table></div>

<p>原文链接：<a href="http://liucheng.name/1127/">http://liucheng.name/1127/</a></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li><li>2010/04/23 -- <a href="http://bulog.org/share/wordpress/close-sidebar.html" title="滑动关闭侧边栏(基于jQuery1.4)">滑动关闭侧边栏(基于jQuery1.4)</a> (20)</li><li>2010/04/22 -- <a href="http://bulog.org/share/wordpress/default-widgets.html" title="wordpress 默认小工具修改表">wordpress 默认小工具修改表</a> (17)</li><li>2010/04/17 -- <a href="http://bulog.org/share/wordpress/widget-logic.html" title="Widget Logic 参数">Widget Logic 参数</a> (9)</li><li>2010/03/23 -- <a href="http://bulog.org/share/wordpress/wordpress-colore-tag.html" title="无插件实现 wordpress 彩色标签云效果">无插件实现 wordpress 彩色标签云效果</a> (13)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/wp-description-keywords.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wp kit cn中的几种变量</title>
		<link>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html</link>
		<comments>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html#comments</comments>
		<pubDate>Sat, 14 Nov 2009 08:56:31 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[分享]]></category>
		<category><![CDATA[博客]]></category>
		<category><![CDATA[盒子]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=554</guid>
		<description><![CDATA[Wp kit cn是一款非常方便实用的侧边栏工具插件。Wp kit cn中的“最新留言”可后台直接定义样式。如设置Gravatar头像，标题内容，链接位置等各种各种样式。其根本是Wp kit cn所遵循的几种基本变量。 这几种变量格式如下： %post_title%—文章的标题 %comment_count%—该篇文章的评论数量 %comment_auhtor%—评论作者 %comment_auhtor_url%—评论作者的网站 %permalink%—该条评论的永久链接 %comment_excerpt%—评论摘要 %gravatar%—头像 使用示例： %gravatar% &#60;a href=&#8221;%permalink%&#8221;&#62;%comment_excerpt%&#60;/a&#62; 在Wp kit cn“最新留言”，“评论链接的自定义格式”中放入以上代码，显示样式则如本站侧栏。当然，你也可以加入title等元素，使内容为更丰富。 相关日志2011/03/08 -- 温和一点 (13)2009/11/14 -- 博客自动生成description与keywords(完整版) (1)2009/11/06 -- 让wp自动生成description与keywords (8)2010/04/23 -- 滑动关闭侧边栏(基于jQuery1.4) (20)2010/04/22 -- wordpress 默认小工具修改表 (17)2010/04/17 -- &#8230; <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://bulog.org/logs/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>是一款非常方便实用的侧边栏工具插件。<a href="http://bulog.org/logs/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>中的“最新留言”可后台直接定义样式。如设置Gravatar头像，标题内容，链接位置等各种各种样式。其根本是Wp kit cn所遵循的几种基本变量。</p>
<p><span id="more-554"></span></p>
<p>这几种变量格式如下：</p>
<blockquote><p>%post_title%—文章的标题<br />
%comment_count%—该篇文章的评论数量<br />
%comment_auhtor%—评论作者<br />
%comment_auhtor_url%—评论作者的网站<br />
%permalink%—该条评论的永久链接<br />
%comment_excerpt%—评论摘要<br />
%gravatar%—头像</p></blockquote>
<p>使用示例：</p>
<blockquote><p>%gravatar% &lt;a href=&#8221;%permalink%&#8221;&gt;%comment_excerpt%&lt;/a&gt;</p></blockquote>
<p>在<a href=" http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html">Wp kit cn</a>“最新留言”，“评论链接的自定义格式”中放入以上代码，显示样式则如本站侧栏。当然，你也可以加入title等元素，使内容为更丰富。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li><li>2009/11/06 -- <a href="http://bulog.org/logs/description-keywords.html" title="让wp自动生成description与keywords">让wp自动生成description与keywords</a> (8)</li><li>2010/04/23 -- <a href="http://bulog.org/share/wordpress/close-sidebar.html" title="滑动关闭侧边栏(基于jQuery1.4)">滑动关闭侧边栏(基于jQuery1.4)</a> (20)</li><li>2010/04/22 -- <a href="http://bulog.org/share/wordpress/default-widgets.html" title="wordpress 默认小工具修改表">wordpress 默认小工具修改表</a> (17)</li><li>2010/04/17 -- <a href="http://bulog.org/share/wordpress/widget-logic.html" title="Widget Logic 参数">Widget Logic 参数</a> (9)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>让wp自动生成description与keywords</title>
		<link>http://bulog.org/logs/description-keywords.html</link>
		<comments>http://bulog.org/logs/description-keywords.html#comments</comments>
		<pubDate>Thu, 05 Nov 2009 16:23:34 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[闲言]]></category>
		<category><![CDATA[盒子]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=469</guid>
		<description><![CDATA[过去的某一段时间，我非常喜欢装系统，大约三四天就会装上一次。只是系统装起来方便，安装常用软件却很麻烦，所以，我养成了装绿色软件的习惯。 这种习惯一直保持到我开始使用各类网站程序。但凡是修改代码就可实现的功能，我一定不会用插件去实现。虽然我对php几乎是一无所知，但现在有google，有百度，以及无数乐于分享经验的Blogger。 今天，我来分享一个关于WP文章页自动生成description与keywords的代码。这是我刚开始接触WP时看到的，现在已经想不起作者的名字与网站，就当转自网络吧，并欢迎各位继续转载。 关于单篇代码生成description与keywords的好处可以搜索一下，这里就不重复了。 将以下代码放在使用模板中header.php文件的&#60;title&#62;&#60;/title&#62;以下， $description = "博客整体说明。"; $keywords = "博客整体关键字"; } else if (is_single()){ if ($post->post_excerpt) { $description = $post->post_excerpt; } else { $description = mb_substr(preg_replace('&#124;s*&#124;','',strip_tags($post->post_content)),0,180,'UTF-8'); } $keywords = ""; $tags = wp_get_post_tags($post->ID); foreach ($tags as $tag ) { &#8230; <a href="http://bulog.org/logs/description-keywords.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>过去的某一段时间，我非常喜欢装系统，大约三四天就会装上一次。只是系统装起来方便，安装常用软件却很麻烦，所以，我养成了装绿色软件的习惯。</p>
<p>这种习惯一直保持到我开始使用各类网站程序。但凡是修改代码就可实现的功能，我一定不会用插件去实现。虽然我对php几乎是一无所知，但现在有google，有百度，以及无数乐于分享经验的Blogger。</p>
<p>今天，我来分享一个关于WP文章页<a href="http://bulog.org/logs/description-keywords.html">自动生成description与keywords</a>的代码。这是我刚开始接触WP时看到的，现在已经想不起作者的名字与网站，就当转自网络吧，并欢迎各位继续转载。</p>
<p>关于单篇代码生成<a href="http://bulog.org/logs/description-keywords.html">description与keywords</a>的好处可以搜索一下，这里就不重复了。</p>
<p>将以下代码放在使用模板中header.php文件的&lt;title&gt;&lt;/title&gt;以下，</p>
<p><span id="more-469"></span><br />
<code>$description = "博客整体说明。";<br />
$keywords = "博客整体关键字";<br />
} else if (is_single()){<br />
if ($post->post_excerpt) {<br />
$description     = $post->post_excerpt;<br />
} else {<br />
$description = mb_substr(preg_replace('|s*|','',strip_tags($post->post_content)),0,180,'UTF-8');<br />
}<br />
$keywords = "";<br />
$tags = wp_get_post_tags($post->ID);<br />
foreach ($tags as $tag ) {<br />
$keywords = $keywords . $tag->name . ",";<br />
}<br />
}<br />
?><br />
<meta name="keywords" content="<?=$keywords?>" /><br />
<?if (is_home()){<br />
<meta name="description" content="<?=$description?>" /></code></p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/03/06 -- <a href="http://bulog.org/share/zahui/site-info-from-alexa.html" title="向 Alexa 提交网站信息(新版本)">向 Alexa 提交网站信息(新版本)</a> (5)</li><li>2009/12/03 -- <a href="http://bulog.org/logs/ogc.html" title="从Orz到OGC">从Orz到OGC</a> (5)</li><li>2009/11/16 -- <a href="http://bulog.org/share/advanced-systemcare-pro-edition.html" title="Advanced SystemCare™ PRO Edition">Advanced SystemCare™ PRO Edition</a> (1)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/logs/description-keywords.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>为WP建立清晰的逻辑结构</title>
		<link>http://bulog.org/share/wordpress/wp-mulu-jiegou.html</link>
		<comments>http://bulog.org/share/wordpress/wp-mulu-jiegou.html#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:26:56 +0000</pubDate>
		<dc:creator>老四</dc:creator>
				<category><![CDATA[WP]]></category>
		<category><![CDATA[网络]]></category>

		<guid isPermaLink="false">http://bulog.org/?p=350</guid>
		<description><![CDATA[今天晚上将WP目录结构优化，使之更符合逻辑。 1，更改分类目录的显示结构，使之呈现以下变化： 修改前的文章分类地址：http://bulog.org/category/logs 修改后的文章分类地址：http://bulog.org/logs 方法：找到在 wp-includes/文件夹下的 category-template.php文件： 找到此代码，大概在二十多行： $catlink = $wp_rewrite-&#62;get_category_permastruct(); 在下面添加 $catlink = str_replace(&#8216;/category’, &#8220;&#8221;, $catlink); 也可以使用“Top Level Categories”插件实现此效果。 2，在WP后台中进入设置－固定链接，在自定义链接中输入以下内容： /%category%/%postname%.html 这样，logs分类下的文章地址形式为： http://bulog.org/logs/wp-mulu-jiegou.html 通过以上两步，博客的链接形式更符合逻辑。如此清晰的结构，相信搜索引擎也不会讨厌吧。 相关日志2011/03/08 -- 温和一点 (13)2010/03/06 -- 向 Alexa 提交网站信息(新版本) (5)2009/12/03 -- 从Orz到OGC (5)2009/11/16 -- Advanced SystemCare™ &#8230; <a href="http://bulog.org/share/wordpress/wp-mulu-jiegou.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>今天晚上将WP目录结构优化，使之更符合逻辑。</p>
<p><strong>1</strong>，更改分类目录的显示结构，使之呈现以下变化：</p>
<blockquote><p>修改前的文章分类地址：http://bulog.org/category/logs<br />
修改后的文章分类地址：http://bulog.org/logs</p></blockquote>
<p>方法：找到在 wp-includes/文件夹下的 category-template.php文件：<br />
找到此代码，大概在二十多行：</p>
<blockquote><p>$catlink = $wp_rewrite-&gt;get_category_permastruct();</p></blockquote>
<p>在下面添加</p>
<blockquote><p>$catlink = str_replace(&#8216;/category’, &#8220;&#8221;, $catlink);</p></blockquote>
<p>也可以使用“Top Level Categories”插件实现此效果。</p>
<p><span id="more-350"></span></p>
<p><strong>2</strong>，在WP后台中进入设置－固定链接，在自定义链接中输入以下内容：</p>
<blockquote><p>/%category%/%postname%.html</p></blockquote>
<p>这样，logs分类下的文章地址形式为：</p>
<p>http://bulog.org/logs/<span id="editable-post-name" style="outline-width: 0px; outline-style: initial; outline-color: initial; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: #fffbcc; background-position: initial initial; background-repeat: initial initial; padding: 0px; margin: 0px; border: 0px initial initial;" title="点击编辑这部分固定链接">wp-mulu-jiegou</span>.html</p>
<p>通过以上两步，博客的链接形式更符合逻辑。如此清晰的结构，相信搜索引擎也不会讨厌吧。</p>
<h3  class="related_post_title">相关日志</h3><ul class="related_post"><li>2011/03/08 -- <a href="http://bulog.org/logs/essay/wen-he.html" title="温和一点">温和一点</a> (13)</li><li>2010/03/06 -- <a href="http://bulog.org/share/zahui/site-info-from-alexa.html" title="向 Alexa 提交网站信息(新版本)">向 Alexa 提交网站信息(新版本)</a> (5)</li><li>2009/12/03 -- <a href="http://bulog.org/logs/ogc.html" title="从Orz到OGC">从Orz到OGC</a> (5)</li><li>2009/11/16 -- <a href="http://bulog.org/share/advanced-systemcare-pro-edition.html" title="Advanced SystemCare™ PRO Edition">Advanced SystemCare™ PRO Edition</a> (1)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-description-keywords.html" title="博客自动生成description与keywords(完整版)">博客自动生成description与keywords(完整版)</a> (1)</li><li>2009/11/14 -- <a href="http://bulog.org/share/wp-kit-cn-bian-lian-han-shu.html" title="Wp kit cn中的几种变量">Wp kit cn中的几种变量</a> (5)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://bulog.org/share/wordpress/wp-mulu-jiegou.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

