<?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>砼砼&#039;s blog &#187; Wordpress</title>
	<atom:link href="http://tossp.com/tag/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://tossp.com</link>
	<description>砼&#60;-这个字读tong，男人是泥做的，女人是水做的，我是混凝土做的。</description>
	<lastBuildDate>Sun, 18 Jul 2010 18:57:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<atom:link rel='hub' href='http://tossp.com/?pushpress=hub'/>
	
<!-- Start Of Script Generated By WP-PostViews Plus -->
<script type='text/javascript' src='http://tossp.com/wp-includes/js/jquery/jquery.js?ver=1.4.2'></script>
<script type="text/javascript">
/* <![CDATA[ */
/* ]]> */
</script>
<!-- End Of Script Generated By WP-PostViews Plus -->
	<item>
		<title>WP:额，换域名了～</title>
		<link>http://tossp.com/wp-volume-change-the-domain-of-the.html</link>
		<comments>http://tossp.com/wp-volume-change-the-domain-of-the.html#comments</comments>
		<pubDate>Tue, 22 Jun 2010 10:25:53 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2147</guid>
		<description><![CDATA[不得不承认，我经常蛋疼，昨晚又疼了一次，一个不小心把域名给换了。。。
换域名的主要理由是，国内好多网站，包括联想（lenovo）在内，都无法识别我的域名邮箱（im-t.net）。
刚好想到一个单词toss，就把域名给换了。
谷歌大叔告诉我toss pig 的意思是抛猪，pig toss 的意思是猪折腾。。。囧
<div class="clear"></div><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html" title="WP:额，换域名了～" rel="external" class="more-link">阅读全文-—共1671字</a>]]></description>
			<content:encoded><![CDATA[<p>不得不承认，我经常蛋疼，昨晚又疼了一次，一个不小心把域名给换了。。。</p>
<p>换域名的主要理由是，国内好多网站，包括联想（lenovo）在内，都无法识别我的域名邮箱（im-t.net）。</p>
<p>刚好想到一个单词toss，就把域名给换了。</p>
<p>谷歌大叔告诉我toss pig 的意思是抛猪，pig toss 的意思是猪折腾。。。囧</p>
<p>一番权衡（抛硬币）后，最终选定了这个tossp.com，咱也不是什么文学青年就不讨论是含义的了，</p>
<p>换域名以后免不鸟要修改数据库，恰好，哥每次都忘记要修改些什么东西。。。。</p>
<p>最后，不得已慢慢检查数据库的资料，</p>
<h2>数据库更新</h2>
<p>进入phpadmin，输入以下SQL命令，表名根据自己的实际情况修改。</p>
<div class="codecolorer-container sql blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_options <span style="color: #993333; font-weight: bold;">SET</span> option_value <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>option_value<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://im-t.net'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://tossp.com'</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333; font-weight: bold;">WHERE</span> option_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'home'</span> <span style="color: #993333; font-weight: bold;">OR</span> option_name <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'siteurl'</span>;<br />
<span style="color: #808080; font-style: italic;">--修改blog的url路径</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_posts <span style="color: #993333; font-weight: bold;">SET</span> post_content <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>post_content<span style="color: #66cc66;">,</span> &nbsp;<span style="color: #ff0000;">'http://im-t.net'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://tossp.com'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #808080; font-style: italic;">--替换已发布文章中的链接</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_posts <span style="color: #993333; font-weight: bold;">SET</span> guid <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>guid<span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://im-t.net'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://tossp.com'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #808080; font-style: italic;">--修改固定链接</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_users <span style="color: #993333; font-weight: bold;">SET</span> user_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'http://tossp.com'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> ID<span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span>;<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_users <span style="color: #993333; font-weight: bold;">SET</span> user_email <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'电子邮件'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> ID<span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span>;<br />
<span style="color: #808080; font-style: italic;">--修改管理员的资料（网站和邮箱）</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_content <span style="color: #66cc66;">=</span> <span style="color: #993333; font-weight: bold;">REPLACE</span><span style="color: #66cc66;">&#40;</span>comment_content<span style="color: #66cc66;">,</span><span style="color: #ff0000;">'http://im-t.net'</span><span style="color: #66cc66;">,</span> <span style="color: #ff0000;">'http://tossp.com'</span><span style="color: #66cc66;">&#41;</span>;<br />
<span style="color: #808080; font-style: italic;">--替换评论里面的网址</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author_email <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'电子邮件'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> user_id<span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span>;<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author_url <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'http://tossp.com/'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> user_id<span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span>;<br />
<span style="color: #808080; font-style: italic;">--修改评论者的网站和邮箱，user_id= 1一般是指admin这个对应wp_users表里面的ID字段</span><br />
<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> user_id <span style="color: #66cc66;">=</span> <span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">WHERE</span> comment_author<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'冰淼·十二少'</span>;<br />
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_author <span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'砼砼'</span> <span style="color: #993333; font-weight: bold;">WHERE</span> comment_author<span style="color: #66cc66;">=</span> <span style="color: #ff0000;">'冰淼·十二少'</span>;<br />
<span style="color: #808080; font-style: italic;">--这个是由于我的历史原因，要修改的。。。就不细说了</span></div></div>
<p>嗯嗯，数据库的更新就是这样的了，你也可以根据自己的情况，写一些语句</p>
<h2>域名301跳转</h2>
<p>换域名以后的第二件事儿就是跳转保，同样的修改<code class="codecolorer text default"><span class="text">.htaccess</span></code>文件实现</p>
<p>添加了这样的两行代码</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTP_HOST<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>^tossp.com$ <span style="color: #7a0874; font-weight: bold;">&#91;</span>NC<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
RewriteRule ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ http:<span style="color: #000000; font-weight: bold;">//</span>tossp.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>L,<span style="color: #007800;">R</span>=<span style="color: #000000;">301</span><span style="color: #7a0874; font-weight: bold;">&#93;</span></div></div>
<p>修改以后就是，这个样子的</p>
<div class="codecolorer-container bash blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"> <span style="color: #666666; font-style: italic;"># BEGIN WordPress</span><br />
RewriteEngine On<br />
RewriteBase <span style="color: #000000; font-weight: bold;">/</span><br />
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>HTTP_HOST<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>^tossp.com$ <span style="color: #7a0874; font-weight: bold;">&#91;</span>NC<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
RewriteRule ^<span style="color: #7a0874; font-weight: bold;">&#40;</span>.<span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>$ http:<span style="color: #000000; font-weight: bold;">//</span>tossp.com<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$1</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>L,<span style="color: #007800;">R</span>=<span style="color: #000000;">301</span><span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>REQUEST_FILENAME<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>-f<br />
RewriteCond <span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>REQUEST_FILENAME<span style="color: #7a0874; font-weight: bold;">&#125;</span> <span style="color: #000000; font-weight: bold;">!</span>-d<br />
RewriteRule . <span style="color: #000000; font-weight: bold;">/</span>index.php <span style="color: #7a0874; font-weight: bold;">&#91;</span>L<span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
<span style="color: #666666; font-style: italic;"># END WordPress</span></div></div>
<p>含义就是，只要不是用http://tossp.com/访问的，全部301转向到http://tossp.com/。嘿嘿</p>
<p>至于其中的利弊自个儿权衡了～</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-volume-change-the-domain-of-the.html#comments" title="to the comments">已有7条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-volume-change-the-domain-of-the.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;bodytext=%E4%B8%8D%E5%BE%97%E4%B8%8D%E6%89%BF%E8%AE%A4%EF%BC%8C%E6%88%91%E7%BB%8F%E5%B8%B8%E8%9B%8B%E7%96%BC%EF%BC%8C%E6%98%A8%E6%99%9A%E5%8F%88%E7%96%BC%E4%BA%86%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%80%E4%B8%AA%E4%B8%8D%E5%B0%8F%E5%BF%83%E6%8A%8A%E5%9F%9F%E5%90%8D%E7%BB%99%E6%8D%A2%E4%BA%86%E3%80%82%E3%80%82%E3%80%82%0D%0A%0D%0A%E6%8D%A2%E5%9F%9F%E5%90%8D%E7%9A%84%E4%B8%BB%E8%A6%81%E7%90%86%E7%94%B1%E6%98%AF%EF%BC%8C%E5%9B%BD%E5%86%85%E5%A5%BD%E5%A4%9A%E7%BD%91%E7%AB%99%EF%BC%8C%E5%8C%85%E6%8B%AC%E8%81%94%E6%83%B3%EF%BC%88lenovo%EF%BC%89%E5%9C%A8%E5%86%85%EF%BC%8C%E9%83%BD%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E6%88%91%E7%9A%84%E5%9F%9F%E5%90%8D%E9%82%AE%E7%AE%B1%EF%BC%88im-t.net%EF%BC%89%E3%80%82%0D%0A%0D%0A%E5%88%9A%E5%A5%BD" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;notes=%E4%B8%8D%E5%BE%97%E4%B8%8D%E6%89%BF%E8%AE%A4%EF%BC%8C%E6%88%91%E7%BB%8F%E5%B8%B8%E8%9B%8B%E7%96%BC%EF%BC%8C%E6%98%A8%E6%99%9A%E5%8F%88%E7%96%BC%E4%BA%86%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%80%E4%B8%AA%E4%B8%8D%E5%B0%8F%E5%BF%83%E6%8A%8A%E5%9F%9F%E5%90%8D%E7%BB%99%E6%8D%A2%E4%BA%86%E3%80%82%E3%80%82%E3%80%82%0D%0A%0D%0A%E6%8D%A2%E5%9F%9F%E5%90%8D%E7%9A%84%E4%B8%BB%E8%A6%81%E7%90%86%E7%94%B1%E6%98%AF%EF%BC%8C%E5%9B%BD%E5%86%85%E5%A5%BD%E5%A4%9A%E7%BD%91%E7%AB%99%EF%BC%8C%E5%8C%85%E6%8B%AC%E8%81%94%E6%83%B3%EF%BC%88lenovo%EF%BC%89%E5%9C%A8%E5%86%85%EF%BC%8C%E9%83%BD%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E6%88%91%E7%9A%84%E5%9F%9F%E5%90%8D%E9%82%AE%E7%AE%B1%EF%BC%88im-t.net%EF%BC%89%E3%80%82%0D%0A%0D%0A%E5%88%9A%E5%A5%BD" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;t=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;annotation=%E4%B8%8D%E5%BE%97%E4%B8%8D%E6%89%BF%E8%AE%A4%EF%BC%8C%E6%88%91%E7%BB%8F%E5%B8%B8%E8%9B%8B%E7%96%BC%EF%BC%8C%E6%98%A8%E6%99%9A%E5%8F%88%E7%96%BC%E4%BA%86%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%80%E4%B8%AA%E4%B8%8D%E5%B0%8F%E5%BF%83%E6%8A%8A%E5%9F%9F%E5%90%8D%E7%BB%99%E6%8D%A2%E4%BA%86%E3%80%82%E3%80%82%E3%80%82%0D%0A%0D%0A%E6%8D%A2%E5%9F%9F%E5%90%8D%E7%9A%84%E4%B8%BB%E8%A6%81%E7%90%86%E7%94%B1%E6%98%AF%EF%BC%8C%E5%9B%BD%E5%86%85%E5%A5%BD%E5%A4%9A%E7%BD%91%E7%AB%99%EF%BC%8C%E5%8C%85%E6%8B%AC%E8%81%94%E6%83%B3%EF%BC%88lenovo%EF%BC%89%E5%9C%A8%E5%86%85%EF%BC%8C%E9%83%BD%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E6%88%91%E7%9A%84%E5%9F%9F%E5%90%8D%E9%82%AE%E7%AE%B1%EF%BC%88im-t.net%EF%BC%89%E3%80%82%0D%0A%0D%0A%E5%88%9A%E5%A5%BD" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;body=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;bm_description=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&amp;body=%E4%B8%8D%E5%BE%97%E4%B8%8D%E6%89%BF%E8%AE%A4%EF%BC%8C%E6%88%91%E7%BB%8F%E5%B8%B8%E8%9B%8B%E7%96%BC%EF%BC%8C%E6%98%A8%E6%99%9A%E5%8F%88%E7%96%BC%E4%BA%86%E4%B8%80%E6%AC%A1%EF%BC%8C%E4%B8%80%E4%B8%AA%E4%B8%8D%E5%B0%8F%E5%BF%83%E6%8A%8A%E5%9F%9F%E5%90%8D%E7%BB%99%E6%8D%A2%E4%BA%86%E3%80%82%E3%80%82%E3%80%82%0D%0A%0D%0A%E6%8D%A2%E5%9F%9F%E5%90%8D%E7%9A%84%E4%B8%BB%E8%A6%81%E7%90%86%E7%94%B1%E6%98%AF%EF%BC%8C%E5%9B%BD%E5%86%85%E5%A5%BD%E5%A4%9A%E7%BD%91%E7%AB%99%EF%BC%8C%E5%8C%85%E6%8B%AC%E8%81%94%E6%83%B3%EF%BC%88lenovo%EF%BC%89%E5%9C%A8%E5%86%85%EF%BC%8C%E9%83%BD%E6%97%A0%E6%B3%95%E8%AF%86%E5%88%AB%E6%88%91%E7%9A%84%E5%9F%9F%E5%90%8D%E9%82%AE%E7%AE%B1%EF%BC%88im-t.net%EF%BC%89%E3%80%82%0D%0A%0D%0A%E5%88%9A%E5%A5%BD" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&uri=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&amp;title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E%20-%20http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-volume-change-the-domain-of-the.html&title=WP%3A%E9%A2%9D%EF%BC%8C%E6%8D%A2%E5%9F%9F%E5%90%8D%E4%BA%86%EF%BD%9E&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-volume-change-the-domain-of-the.html/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WP:添加按钮到WordPress编辑器</title>
		<link>http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html</link>
		<comments>http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html#comments</comments>
		<pubDate>Tue, 02 Feb 2010 15:04:01 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[CC视频]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2026</guid>
		<description><![CDATA[其实准确的说，并不是添加到了编辑器，而是添加到了wordpress的“上传/插入”栏。
这篇日志主要介绍，怎样在“添加文新章”、“编辑文章”和“添加新页面”等后台页面中，添加自定义按钮，而不需要修改wordpress的核心文件。
在这里是以添加“CC视频”按钮为例。
昨天，在帮忙做一个新BLOG的时候，遇到的问题。该BLOG需要视频功能，最后，选定的是“CC视频”，需要在后台添加一个上传视频的按钮实现和WP接合。
<div class="clear"></div><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html" title="WP:添加按钮到WordPress编辑器" rel="external" class="more-link">阅读全文-—共521字</a>]]></description>
			<content:encoded><![CDATA[<p>其实准确的说，并不是添加到了编辑器，而是添加到了<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>的“上传/插入”栏。</p>
<p>这篇日志主要介绍，怎样在“添加文新章”、“编辑文章”和“添加新页面”等后台页面中，添加自定义按钮，而不需要修改<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>的核心文件。</p>
<p>在这里是以添加“CC视频”按钮为例。</p>
<p>昨天，在帮忙做一个新BLOG的时候，遇到的问题。该BLOG需要视频功能，最后，选定的是“CC视频”，需要在后台添加一个上传视频的按钮实现和WP接合。</p>
<p>在一阵狂GG以后，决定hook函数，直接把以下的代码插入主题的<code class="codecolorer text default"><span class="text">functions.php</span></code>文件即可。</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #666666; font-style: italic;">/* Actions. */</span><br />
&nbsp; &nbsp; add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'media_buttons'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_cc_viode'</span> <span style="color: #339933;">,</span><span style="color: #cc66cc;">11</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <br />
<span style="color: #009933; font-style: italic;">/**<br />
&nbsp;* 添加CC播客按钮<br />
&nbsp;* - Feature image input box.<br />
&nbsp;* - 2010年2月2日 03:13:40<br />
&nbsp;* @since 0.1<br />
&nbsp;*/</span><br />
<br />
&nbsp;<span style="color: #000000; font-weight: bold;">function</span> imt_cc_viode<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
&lt;!-- cc视频插件代码 --&gt;&lt;object width='86' height='22'&gt;&lt;param name='wmode' value='transparent' /&gt;&lt;param name='allowScriptAccess' value='always' /&gt;&lt;param name='movie' value='http://union.bokecc.com/flash/plugin/plugin_16.swf?userID=xxxxx&amp;type=WordPress' /&gt;&lt;embed src='http://union.bokecc.com/flash/plugin/plugin_16.swf?userID=xxxxx&amp;type=WordPress' type='application/x-shockwave-flash' width='86' height='22' allowScriptAccess='always' wmode='transparent'&gt;&lt;/embed&gt;&lt;/object&gt;&lt;!-- cc视频插件代码 --&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <br />
&nbsp;<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>效果图如下：</p>
<div class="wp-caption alignnone" style="width: 360px"><a class="highslide-image" onclick="return hs.expand(this);" href="http://dl.dropbox.com/u/431760/blog/2010%2002/002.jpg"><img title="点击显示大图" src="http://dl.dropbox.com/u/431760/blog/2010%2002/002-T.jpg" alt="image" width="350" height="164" /></a><p class="wp-caption-text">添加按钮到<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">WordPress</a>编辑器</p></div>
<p>直接在<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>后台上传的视频：</p>
<p><object id="cc_5654337" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="500" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="wmode" value="opaque" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://union.bokecc.com/flash/player.swf?videoID=18108_5654337&amp;autoStart=false&amp;share=false" /><param name="name" value="cc_5654337" /><param name="allowfullscreen" value="true" /><embed id="cc_5654337" type="application/x-shockwave-flash" width="500" height="400" src="http://union.bokecc.com/flash/player.swf?videoID=18108_5654337&amp;autoStart=false&amp;share=false" allowfullscreen="true" allowscriptaccess="always" wmode="opaque" name="cc_5654337"></embed></object></p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html#comments" title="to the comments">已有9条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-add-a-button-to-the-<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>-editor.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;bodytext=%E5%85%B6%E5%AE%9E%E5%87%86%E7%A1%AE%E7%9A%84%E8%AF%B4%EF%BC%8C%E5%B9%B6%E4%B8%8D%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86%E7%BC%96%E8%BE%91%E5%99%A8%EF%BC%8C%E8%80%8C%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86wordpress%E7%9A%84%E2%80%9C%E4%B8%8A%E4%BC%A0%2F%E6%8F%92%E5%85%A5%E2%80%9D%E6%A0%8F%E3%80%82%0D%0A%0D%0A%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E6%80%8E%E6%A0%B7%E5%9C%A8%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%87%E6%96%B0%E7%AB%A0%E2%80%9D%E3%80%81%E2%80%9C%E7%BC%96%E8%BE%91%E6%96%87%E7%AB%A0%E2%80%9D%E5%92%8C%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%B0%E9%A1%B5%E9%9D%A2%E2%80%9D%E7%AD%89%E5%90%8E%E5%8F%B0%E9%A1%B5%E9%9D%A2%E4%B8%AD%EF%BC%8C%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;notes=%E5%85%B6%E5%AE%9E%E5%87%86%E7%A1%AE%E7%9A%84%E8%AF%B4%EF%BC%8C%E5%B9%B6%E4%B8%8D%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86%E7%BC%96%E8%BE%91%E5%99%A8%EF%BC%8C%E8%80%8C%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86wordpress%E7%9A%84%E2%80%9C%E4%B8%8A%E4%BC%A0%2F%E6%8F%92%E5%85%A5%E2%80%9D%E6%A0%8F%E3%80%82%0D%0A%0D%0A%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E6%80%8E%E6%A0%B7%E5%9C%A8%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%87%E6%96%B0%E7%AB%A0%E2%80%9D%E3%80%81%E2%80%9C%E7%BC%96%E8%BE%91%E6%96%87%E7%AB%A0%E2%80%9D%E5%92%8C%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%B0%E9%A1%B5%E9%9D%A2%E2%80%9D%E7%AD%89%E5%90%8E%E5%8F%B0%E9%A1%B5%E9%9D%A2%E4%B8%AD%EF%BC%8C%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;t=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;annotation=%E5%85%B6%E5%AE%9E%E5%87%86%E7%A1%AE%E7%9A%84%E8%AF%B4%EF%BC%8C%E5%B9%B6%E4%B8%8D%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86%E7%BC%96%E8%BE%91%E5%99%A8%EF%BC%8C%E8%80%8C%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86wordpress%E7%9A%84%E2%80%9C%E4%B8%8A%E4%BC%A0%2F%E6%8F%92%E5%85%A5%E2%80%9D%E6%A0%8F%E3%80%82%0D%0A%0D%0A%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E6%80%8E%E6%A0%B7%E5%9C%A8%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%87%E6%96%B0%E7%AB%A0%E2%80%9D%E3%80%81%E2%80%9C%E7%BC%96%E8%BE%91%E6%96%87%E7%AB%A0%E2%80%9D%E5%92%8C%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%B0%E9%A1%B5%E9%9D%A2%E2%80%9D%E7%AD%89%E5%90%8E%E5%8F%B0%E9%A1%B5%E9%9D%A2%E4%B8%AD%EF%BC%8C%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;body=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;bm_description=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&amp;body=%E5%85%B6%E5%AE%9E%E5%87%86%E7%A1%AE%E7%9A%84%E8%AF%B4%EF%BC%8C%E5%B9%B6%E4%B8%8D%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86%E7%BC%96%E8%BE%91%E5%99%A8%EF%BC%8C%E8%80%8C%E6%98%AF%E6%B7%BB%E5%8A%A0%E5%88%B0%E4%BA%86wordpress%E7%9A%84%E2%80%9C%E4%B8%8A%E4%BC%A0%2F%E6%8F%92%E5%85%A5%E2%80%9D%E6%A0%8F%E3%80%82%0D%0A%0D%0A%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E6%80%8E%E6%A0%B7%E5%9C%A8%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%87%E6%96%B0%E7%AB%A0%E2%80%9D%E3%80%81%E2%80%9C%E7%BC%96%E8%BE%91%E6%96%87%E7%AB%A0%E2%80%9D%E5%92%8C%E2%80%9C%E6%B7%BB%E5%8A%A0%E6%96%B0%E9%A1%B5%E9%9D%A2%E2%80%9D%E7%AD%89%E5%90%8E%E5%8F%B0%E9%A1%B5%E9%9D%A2%E4%B8%AD%EF%BC%8C%E6%B7%BB%E5%8A%A0%E8%87%AA%E5%AE%9A%E4%B9" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&uri=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&amp;title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8%20-%20http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-add-a-button-to-the-wordpress-editor.html&title=WP%3A%E6%B7%BB%E5%8A%A0%E6%8C%89%E9%92%AE%E5%88%B0WordPress%E7%BC%96%E8%BE%91%E5%99%A8&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>WP:2.9中实现评论使用QQ头像</title>
		<link>http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html</link>
		<comments>http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html#comments</comments>
		<pubDate>Sun, 03 Jan 2010 08:09:06 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[Hybrid]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2016</guid>
		<description><![CDATA[这篇日志主要是简单的演示下在wordpress 2.9+中，对于新的表的使用
主要实现的功能：在评论中支持使用QQ头像～
主程序：wordpress 2.9
主题：hybrid 0.7框架 子主题是我自己弄的一个支持AJAX评论的的主题
<div class="clear"></div><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html" title="WP:2.9中实现评论使用QQ头像" rel="external" class="more-link">阅读全文-—共1058字</a>]]></description>
			<content:encoded><![CDATA[<p>这篇日志主要是简单的演示下在<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a> 2.9+中，对于新的表的使用</p>
<p>主要实现的功能：在评论中支持使用<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>头像～</p>
<p>主程序：<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a> 2.9</p>
<p>主题：<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">hybrid</a> 0.7框架 子主题是我自己弄的一个支持<a href="http://tossp.com/tag/ajax" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with ajax">AJAX</a>评论的的主题</p>
<p>这是一篇WP 2.9+的档案，这只是一个简单的演示，只是给大家提供一些思路，在代码的上修改的余地很大（毕竟我自己都觉得代码不够精炼），欢迎演绎或者提供更好的想法。</p>
<p>当然，欢迎拍砖～</p>
<h1>正文</h1>
<h2>准备工作</h2>
<p>首先麻花腾提供了一个接口，可以通过<code class="codecolorer text default"><span class="text">http://face7.qun.qq.com/cgi/svr/face/getface?&amp;uin=QQ号码</span></code> 这样一个地址获得当前<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>的JPG格式图片头像，这位我们实现这个功能提供了前提。</p>
<p>首先，要做的是获取用户的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>号，这里有两种情况</p>
<ol>
<li>注册用户的资料，只能有用户在后台自己更新</li>
<li>游客的资料，我选择的是在发表评论的时候，填入</li>
</ol>
<p>OK，在用户填写了足够的信息，并且用户把数据POST过来我们就可以拿到<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>号了。</p>
<p>由于是远程调用，所以，我们还要对<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>进行一些加密的操作，以保护隐私。</p>
<p>嗯嗯，思路大概就是这个样子的了，下面看看代码实现。</p>
<h2>step by step</h2>
<p>请注意看代码中的注释，我相信这些代码不难理解</p>
<p>打开主题的<code class="codecolorer text default"><span class="text">functions.php</span></code>文件</p>
<p>首先，是对注册用户的信息添加，使用下面这段代码让我们在<code class="codecolorer text default"><span class="text">http://tossp.com/wp-admin/profile.php</span></code>中添加一个BOX，用于获取注册用户的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>号</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #009933; font-style: italic;">/**<br />
*HOOK两个函数：<br />
*imt_show_extra_profile_fields<br />
*用于显示扩展信息的BOX<br />
*<br />
*imt_save_extra_profile_fields<br />
*用于保存我们的扩展信息<br />
*/</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_show_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_show_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'personal_options_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user_profile_update'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_save_extra_profile_fields'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> imt_show_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span><br />
<br />
&nbsp; &nbsp; &lt;h3&gt;扩展配置信息（仅被当前主题支持）&lt;/h3&gt;<br />
<br />
&nbsp; &nbsp; &lt;table class=&quot;form-table&quot;&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;tr&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;th&gt;&lt;label for=&quot;imtqq&quot;&gt;腾讯QQ&lt;/label&gt;&lt;/th&gt;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;input type=&quot;text&quot; name=&quot;imtqq&quot; id=&quot;imtqq&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span> get_the_author_meta<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'imtqq'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user</span><span style="color: #339933;">-/&gt;</span>ID <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>&quot; class=&quot;regular-text&quot; /&gt;&lt;br /&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;span class=&quot;description&quot;&gt;请输入你的腾讯QQ号码（纯数字）&lt;/span&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/td&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &lt;/tr&gt;<br />
<br />
&nbsp; &nbsp; &lt;/table&gt;<br />
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> imt_save_extra_profile_fields<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$imt_user_qq</span><span style="color: #339933;">=</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'imtqq'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'edit_user'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$user_id</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">ereg</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[1-9][0-9]{4,}$&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$imt_user_qq</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//对POST数据进行校验，必须是一个5位以上的数字</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imtqq'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imt_user_qq</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//否则保存用户QQ为10000</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; update_usermeta<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$user_id</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imtqq'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'10000'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <br />
<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>对WP默认的头像进行替换，并不修改用户既定的DIV结构。</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #009933; font-style: italic;">/**<br />
*HOOK get_avatar，对WP默认的头像进行替换，并不修改用户既定的DIV结构<br />
*<br />
*/</span><br />
add_filter<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'get_avatar'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_qq_face'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> imt_qq_face<span style="color: #009900;">&#40;</span><span style="color: #000088;">$a</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #339933;">,</span> <span style="color: #000088;">$size</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$key</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;im-t.net&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//这里设置关键密钥必须和qqface.php文件的密钥相同</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$imt_get_qq_face</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://tossp.com/qqface.php?&amp;qq=%s'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//加密的QQ获取头像地址, %s表示QQ号</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//这里替换成你的qqface.php文件地址，没用有函数而是全部写死的</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$qq_face_size</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//单独指定QQ头像的大小, false or integer</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$qq</span><span style="color: #339933;">=</span>get_comment_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imtqq'</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><br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//这个是WP2.9的新函数，用于获取comment的扩展信息。</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">is_object</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">!=</span><span style="color: #000088;">$qq</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #0000ff;">'10000'</span><span style="color: #339933;">!=</span><span style="color: #000088;">$qq</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$qq</span> <span style="color: #339933;">=</span> <span style="color: #990000;">base64_encode</span><span style="color: #009900;">&#40;</span>encrypt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$qq</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//这里是对QQ号码进行加密，以免在传递URL参数的过程中泄露用户隐私</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #666666; font-style: italic;">//毕竟有隐私保护显的咱专业一点儿是不？</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'/src=\'[^\']*\'/'</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'src=\''</span> <span style="color: #339933;">.</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'%s'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$qq</span><span style="color: #339933;">,</span> <span style="color: #000088;">$imt_get_qq_face</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'\''</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$qq_face_size</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'\''</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$size</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'\''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'\''</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$qq_face_size</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'\''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$a</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$a</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>最后加入相应的加密函数：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #009933; font-style: italic;">/**<br />
*这段加密函数是在网上找的，当然你可以换成你自己的函数<br />
*/</span><br />
<span style="color: #000000; font-weight: bold;">function</span> encrypt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//加密</span><br />
&nbsp; &nbsp; <span style="color: #990000;">srand</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span><span style="color: #990000;">microtime</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">*</span><span style="color: #cc66cc;">1000000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$encrypt_key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">rand</span><span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">32000</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">==</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tmp</span><span style="color: #339933;">.=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #339933;">,</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ^ <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #339933;">,</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> keyED<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tmp</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> keyED<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//动态密钥生成</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$encrypt_key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">==</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tmp</span><span style="color: #339933;">.=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ^ <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #339933;">,</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>对于<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">hybrid</a>主题框架的用户，这样改是不够的，还要重写hybrid_avatar：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
remove_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hybrid_before_comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hybrid_avatar'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hybrid_before_comment'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_avatar'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> imt_avatar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #000088;">$hybrid</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>get_option<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'show_avatars'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/* Get/set some comment variables. */</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$comment_type</span> <span style="color: #339933;">=</span> get_comment_type<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$author</span> <span style="color: #339933;">=</span> esc_html<span style="color: #009900;">&#40;</span> get_comment_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$url</span> <span style="color: #339933;">=</span> esc_url<span style="color: #009900;">&#40;</span> get_comment_author_url<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'pingback'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$comment_type</span> <span style="color: #339933;">||</span> <span style="color: #0000ff;">'trackback'</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$comment_type</span> <span style="color: #009900;">&#41;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$default_avatar</span> <span style="color: #339933;">=</span> THEME_IMAGES <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/<span style="color: #006699; font-weight: bold;">{$comment_type}</span>.png&quot;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$default_avatar</span> <span style="color: #339933;">=</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">{$hybrid-&gt;prefix}</span>_<span style="color: #006699; font-weight: bold;">{$comment_type}</span>_avatar&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$default_avatar</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$avatar</span> <span style="color: #339933;">=</span> get_avatar<span style="color: #009900;">&#40;</span> get_comment_author_email<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'80'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$default_avatar</span><span style="color: #339933;">,</span> <span style="color: #000088;">$author</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
&nbsp; &nbsp; <span style="color: #000088;">$avatar</span> <span style="color: #339933;">=</span> imt_qq_face<span style="color: #009900;">&#40;</span><span style="color: #000088;">$avatar</span><span style="color: #339933;">,</span> get_comment<span style="color: #009900;">&#40;</span>get_comment_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'80'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #666666; font-style: italic;">/* If URL input, wrap avatar in hyperlink. */</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #000088;">$url</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$avatar</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$url</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; rel=&quot;external nofollow&quot; title=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$author</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot;&gt;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$avatar</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">echo</span> apply_filters<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'imt_avatar'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$avatar</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>打开<code class="codecolorer text default"><span class="text">comment-form.php</span></code>文件（这个是hybrid0.7才有的），修改你的评论提交表，或者修改你对应位置的代码</p>
<p>先把这个文件从<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">hybrid</a>复制到你子主题里面，找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;p class=&quot;form-url&quot;&gt;<br />
&nbsp; &nbsp; &lt;label for=&quot;url&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hybrid'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment_author_url</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; size=&quot;</span><span style="color: #cc66cc;">40</span><span style="color: #0000ff;">&quot; tabindex=&quot;</span><span style="color: #cc66cc;">3</span><span style="color: #0000ff;">&quot; /&gt;<br />
&lt;/p&gt;&lt;!-- .form-url --&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;p class=&quot;form-url&quot;&gt;<br />
&nbsp; &nbsp; &lt;label for=&quot;url&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'Website'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'hybrid'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/label&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;url&quot; id=&quot;url&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_url<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment_author_url</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; size=&quot;</span><span style="color: #cc66cc;">40</span><span style="color: #0000ff;">&quot; tabindex=&quot;</span><span style="color: #cc66cc;">3</span><span style="color: #0000ff;">&quot; /&gt;<br />
&lt;/p&gt;&lt;!-- .form-url --&gt;<br />
<br />
&lt;!--其实就是添加了一下代码--&gt;<br />
<br />
&lt;p class=&quot;</span>form<span style="color: #339933;">-</span>imtqq<span style="color: #0000ff;">&quot;&gt;<br />
&nbsp; &nbsp; &lt;label for=&quot;</span>imtqq<span style="color: #0000ff;">&quot;&gt;&lt;?php _e( '腾讯QQ', 'hybrid' ); ?&gt;</span>&lt;/label&gt;<br />
&nbsp; &nbsp; &lt;input type=&quot;text&quot; class=&quot;text-input&quot; name=&quot;imtqq&quot; id=&quot;imtqq&quot; value=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> esc_attr<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$comment_author_imtqq</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> ?<span style="color: #339933;">/&gt;</span><span style="color: #0000ff;">&quot; size=&quot;</span><span style="color: #cc66cc;">40</span><span style="color: #0000ff;">&quot; tabindex=&quot;</span><span style="color: #cc66cc;">4</span><span style="color: #0000ff;">&quot; /&gt;<br />
&lt;/p&gt;&lt;!-- .form-imtqq --&gt;</span></div></div>
<p>OK，以上就已经获取到了评论用户的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>，并添加了一些必须的函数</p>
<p>打开主题的<code class="codecolorer text default"><span class="text">comments-ajax.php</span></code>文件，这个文件是用于支持<a href="http://tossp.com/tag/ajax" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with ajax">AJAX</a>评论的服务端文件，这里我们一样要修改他的数据获取</p>
<p>这个文件也许你的主题没有也许和我的不一样，那就只能是参照这修改你blog更目录下<code class="codecolorer text default"><span class="text">wp-comments-post.php</span></code>文件（这个方式是不推荐的），或者想办法HOOK他这个我还没具体看过。如果你用HOOK实现了请告诉我。</p>
<p>我们从获取游客的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">qq</a>开始，找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment_author</span> &nbsp; &nbsp; &nbsp; <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: #009900;">&#91;</span><span style="color: #0000ff;">'author'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_email</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_url</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_content</span> &nbsp; &nbsp; &nbsp;<span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment_author</span> &nbsp; &nbsp; &nbsp; <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: #009900;">&#91;</span><span style="color: #0000ff;">'author'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_email</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'email'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_url</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'url'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_content</span> &nbsp; &nbsp; &nbsp;<span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'comment'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_imtqq</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'imtqq'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//添加的是这后这行，获取游客的QQ</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>接下来我们获取注册用户的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>，找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment_author</span> &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_url</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment_author</span> &nbsp; &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">display_name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_email</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_url</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$wpdb</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">escape</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">user_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$comment_author_imtqq</span> <span style="color: #339933;">=</span> get_usermeta<span style="color: #009900;">&#40;</span> &nbsp;<span style="color: #000088;">$user</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'imtqq'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
<span style="color: #666666; font-style: italic;">//添加的是这后这行，获取注册用户的QQ</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>校验用户的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>信息，找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$comment_content</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; fail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'错误: 请填写评论内容'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$comment_content</span> <span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; fail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'错误: 请填写评论内容'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">!=</span><span style="color: #000088;">$comment_author_imtqq</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">ereg</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[1-9][0-9]{4,}$&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$comment_author_imtqq</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
&nbsp; &nbsp; fail<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'错误: QQ号码应该为大于5位的数字（'</span><span style="color: #339933;">.</span><span style="color: #000088;">$comment_author_imtqq</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'）'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>添加评论的扩展信息找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment</span> <span style="color: #339933;">=</span> get_comment<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #000088;">$comment</span> <span style="color: #339933;">=</span> get_comment<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment_id</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">!=</span><span style="color: #000088;">$comment_author_imtqq</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; update_comment_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imtqq'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$comment_author_imtqq</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #666666; font-style: italic;">//添加评论扩展信息</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>最后设置cookie，找到：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_email_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_url_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> clean_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>修改为：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_email_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> <span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_email</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_url_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> clean_url<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_author_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">setcookie</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comment_author_imtqq_'</span> <span style="color: #339933;">.</span> COOKIEHASH<span style="color: #339933;">,</span> get_comment_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">comment_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_qq'</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: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #cc66cc;">30000000</span><span style="color: #339933;">,</span> COOKIEPATH<span style="color: #339933;">,</span> COOKIE_DOMAIN<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//设置cookie的评论扩展信息</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>你在blog的根目录上添加一个<code class="codecolorer text default"><span class="text">qqface.php</span></code>文件，代码如下，用于访问远程文件</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
<span style="color: #009933; font-style: italic;">/**<br />
*腾讯QQ头像获取文件<br />
*为了避免在远程获取QQ头像的过程中泄漏用户隐私，<br />
*所以进行一个简单的加密。<br />
*/</span><br />
<br />
<span style="color: #000088;">$key</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;im-t.net&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//这里设置关键密钥必须和functions.php文件的密钥相同</span><br />
<br />
<span style="color: #000088;">$qq_nomber</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'qq'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$qq_nomber</span> &nbsp; <span style="color: #339933;">=</span> decrypt<span style="color: #009900;">&#40;</span><span style="color: #990000;">base64_decode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qq_nomber</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//解密QQ号</span><br />
<br />
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">ereg</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;^[1-9][0-9]{4,}$&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$qq_nomber</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//这个主要是防止无聊的测试</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$qq_nomber</span><span style="color: #339933;">=</span><span style="color: #000088;">$qq_nomber</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$qq_nomber</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'10000'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$qq_face_url</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'http://face7.qun.qq.com/cgi/svr/face/getface?&amp;uin='</span><span style="color: #339933;">.</span><span style="color: #000088;">$qq_nomber</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$data</span> <span style="color: #339933;">=</span> <span style="color: #990000;">file_get_contents</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qq_face_url</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'content-type:image/jpeg'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$data</span><span style="color: #339933;">;</span><br />
<br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> keyED<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//密钥生成函数</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$encrypt_key</span> <span style="color: #339933;">=</span> <span style="color: #990000;">md5</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">==</span><span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$ctr</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tmp</span><span style="color: #339933;">.=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ^ <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$encrypt_key</span><span style="color: #339933;">,</span><span style="color: #000088;">$ctr</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; <span style="color: #000088;">$ctr</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">function</span> decrypt<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #666666; font-style: italic;">//解密函数</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$txt</span> <span style="color: #339933;">=</span> keyED<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$key</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$tmp</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">&lt;</span>strlen<span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$md5</span> <span style="color: #339933;">=</span> <span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$i</span><span style="color: #339933;">++;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$tmp</span><span style="color: #339933;">.=</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">substr</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$txt</span><span style="color: #339933;">,</span><span style="color: #000088;">$i</span><span style="color: #339933;">,</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> ^ <span style="color: #000088;">$md5</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$tmp</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>现在就大功告成了，呼呼，</p>
<p>大概就是这样子了，欢迎指正拍砖～</p>
<p>最后必须要说，这仅仅是一个演示，希望可以抛砖引玉～</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html#comments" title="to the comments">已有32条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">qq</a>-picture.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;bodytext=%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E6%98%AF%E7%AE%80%E5%8D%95%E7%9A%84%E6%BC%94%E7%A4%BA%E4%B8%8B%E5%9C%A8wordpress%202.9%2B%E4%B8%AD%EF%BC%8C%E5%AF%B9%E4%BA%8E%E6%96%B0%E7%9A%84%E8%A1%A8%E7%9A%84%E4%BD%BF%E7%94%A8%0D%0A%0D%0A%E4%B8%BB%E8%A6%81%E5%AE%9E%E7%8E%B0%E7%9A%84%E5%8A%9F%E8%83%BD%EF%BC%9A%E5%9C%A8%E8%AF%84%E8%AE%BA%E4%B8%AD%E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F%EF%BD%9E%0D%0A%0D%0A%E4%B8%BB%E7%A8%8B%E5%BA%8F%EF%BC%9Awordpress%202.9%0D%0A%0D%0A%E4%B8%BB%E9%A2%98%EF%BC%9Ahybrid%200.7%E6%A1%86%E6%9E%B6%20%E5%AD%90%E4%B8%BB%E9%A2%98%E6%98%AF%E6%88%91%E8%87%AA%E5%B7%B1%E5%BC%84%E7%9A%84%E4%B8%80%E4%B8%AA%E6%94%AF%E6%8C%81AJA" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;notes=%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E6%98%AF%E7%AE%80%E5%8D%95%E7%9A%84%E6%BC%94%E7%A4%BA%E4%B8%8B%E5%9C%A8wordpress%202.9%2B%E4%B8%AD%EF%BC%8C%E5%AF%B9%E4%BA%8E%E6%96%B0%E7%9A%84%E8%A1%A8%E7%9A%84%E4%BD%BF%E7%94%A8%0D%0A%0D%0A%E4%B8%BB%E8%A6%81%E5%AE%9E%E7%8E%B0%E7%9A%84%E5%8A%9F%E8%83%BD%EF%BC%9A%E5%9C%A8%E8%AF%84%E8%AE%BA%E4%B8%AD%E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F%EF%BD%9E%0D%0A%0D%0A%E4%B8%BB%E7%A8%8B%E5%BA%8F%EF%BC%9Awordpress%202.9%0D%0A%0D%0A%E4%B8%BB%E9%A2%98%EF%BC%9Ahybrid%200.7%E6%A1%86%E6%9E%B6%20%E5%AD%90%E4%B8%BB%E9%A2%98%E6%98%AF%E6%88%91%E8%87%AA%E5%B7%B1%E5%BC%84%E7%9A%84%E4%B8%80%E4%B8%AA%E6%94%AF%E6%8C%81AJA" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;t=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;annotation=%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E6%98%AF%E7%AE%80%E5%8D%95%E7%9A%84%E6%BC%94%E7%A4%BA%E4%B8%8B%E5%9C%A8wordpress%202.9%2B%E4%B8%AD%EF%BC%8C%E5%AF%B9%E4%BA%8E%E6%96%B0%E7%9A%84%E8%A1%A8%E7%9A%84%E4%BD%BF%E7%94%A8%0D%0A%0D%0A%E4%B8%BB%E8%A6%81%E5%AE%9E%E7%8E%B0%E7%9A%84%E5%8A%9F%E8%83%BD%EF%BC%9A%E5%9C%A8%E8%AF%84%E8%AE%BA%E4%B8%AD%E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F%EF%BD%9E%0D%0A%0D%0A%E4%B8%BB%E7%A8%8B%E5%BA%8F%EF%BC%9Awordpress%202.9%0D%0A%0D%0A%E4%B8%BB%E9%A2%98%EF%BC%9Ahybrid%200.7%E6%A1%86%E6%9E%B6%20%E5%AD%90%E4%B8%BB%E9%A2%98%E6%98%AF%E6%88%91%E8%87%AA%E5%B7%B1%E5%BC%84%E7%9A%84%E4%B8%80%E4%B8%AA%E6%94%AF%E6%8C%81AJA" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;body=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;bm_description=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&amp;body=%E8%BF%99%E7%AF%87%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E6%98%AF%E7%AE%80%E5%8D%95%E7%9A%84%E6%BC%94%E7%A4%BA%E4%B8%8B%E5%9C%A8wordpress%202.9%2B%E4%B8%AD%EF%BC%8C%E5%AF%B9%E4%BA%8E%E6%96%B0%E7%9A%84%E8%A1%A8%E7%9A%84%E4%BD%BF%E7%94%A8%0D%0A%0D%0A%E4%B8%BB%E8%A6%81%E5%AE%9E%E7%8E%B0%E7%9A%84%E5%8A%9F%E8%83%BD%EF%BC%9A%E5%9C%A8%E8%AF%84%E8%AE%BA%E4%B8%AD%E6%94%AF%E6%8C%81%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F%EF%BD%9E%0D%0A%0D%0A%E4%B8%BB%E7%A8%8B%E5%BA%8F%EF%BC%9Awordpress%202.9%0D%0A%0D%0A%E4%B8%BB%E9%A2%98%EF%BC%9Ahybrid%200.7%E6%A1%86%E6%9E%B6%20%E5%AD%90%E4%B8%BB%E9%A2%98%E6%98%AF%E6%88%91%E8%87%AA%E5%B7%B1%E5%BC%84%E7%9A%84%E4%B8%80%E4%B8%AA%E6%94%AF%E6%8C%81AJA" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&uri=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&amp;title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F%20-%20http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html&title=WP%3A2.9%E4%B8%AD%E5%AE%9E%E7%8E%B0%E8%AF%84%E8%AE%BA%E4%BD%BF%E7%94%A8QQ%E5%A4%B4%E5%83%8F&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
		<item>
		<title>WP:在hybird框架中同步 WordPress 博客日志到 Qzone</title>
		<link>http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html</link>
		<comments>http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html#comments</comments>
		<pubDate>Sun, 13 Dec 2009 07:10:33 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[QQ]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2012</guid>
		<description><![CDATA[序
没办法在人民群众面前，我不是强大的某某党，我只能选择妥协～
有的人总是只看我的Qzone，今天居然问我，“你怎么不写blog啦？”
当时把我给囧的，好吧，不得不说，在国内，兼容麻花疼，也是有很大的优势，
<div class="clear"></div><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html" title="WP:在hybird框架中同步 WordPress 博客日志到 Qzone" rel="external" class="more-link">阅读全文-—共1657字</a>]]></description>
			<content:encoded><![CDATA[<h1>序</h1>
<p>没办法在人民群众面前，我不是强大的某某党，我只能选择妥协～</p>
<p>有的人总是只看我的Qzone，今天居然问我，“你怎么不写blog啦？”</p>
<p>当时把我给囧的，好吧，不得不说，在国内，兼容麻花疼，也是有很大的优势，</p>
<p>so，以下的一大段东西就诞生了。</p>
<p>没次我都强调是hybird框架中，其实和普通的主题真没什么区别</p>
<p>这篇日志主要是参考的水煮鱼童鞋的<a title="同步 WordPress 博客日志到 Qzone" href="http://fairyfish.net/2009/12/04/wp-qzone/">同步 WordPress 博客日志到 Qzone</a>。</p>
<p>有句话怎么说的？“我是强大的CP党！”</p>
<h1>正文</h1>
<p>其实很简单（都快成我开头的标准用语了）</p>
<p>打开你主题的<code class="codecolorer text default"><span class="text">functions.php</span></code>文件，添加以下两段代码，但是需要更加你自己的情况修改：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> smtp_mailer_qqmail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subject</span><span style="color: #339933;">,</span><span style="color: #000088;">$body</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$qq_number</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'156888120'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//这里改成你的QQ号</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$qq_password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'520520'</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//这里当然是密码了</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">class_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'PHPMailer'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require_once</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/class-phpmailer.php'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">require_once</span> ABSPATH <span style="color: #339933;">.</span> WPINC <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/class-smtp.php'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> PHPMailer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IsSMTP</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Mailer</span> &nbsp; <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;smtp&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">CharSet</span> &nbsp;<span style="color: #339933;">=</span> <span style="color: #0000ff;">'utf-8'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Encoding</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'base64'</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">IsHTML</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">SMTPAuth</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Host</span> &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;smtp.qq.com&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Username</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$qq_number</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;@qq.com&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Password</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$qq_password</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">From</span> &nbsp; &nbsp; <span style="color: #339933;">=</span> <span style="color: #000088;">$qq_number</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;@qq.com&quot;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">FromName</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$qq_number</span><span style="color: #339933;">;</span> <br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">AddAddress</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qq_number</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;@qzone.qq.com&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Subject</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$subject</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Body</span> &nbsp; &nbsp;<span style="color: #339933;">=</span> <span style="color: #000088;">$body</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$mail</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Send</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>好了，现在继续添加下一段</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000000; font-weight: bold;">function</span> publish_post_2_qzone<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$qzone</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'qzone'</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><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$qzone</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #000088;">$post_title</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_title'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$post_except</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_except'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_except</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$post_content</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post_except</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$post_content</span> <span style="color: #339933;">=</span> <span style="color: #990000;">mb_substr</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strip_tags</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_POST</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'post_content'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</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><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$post_content</span><span style="color: #339933;">=</span> <span style="color: #000088;">$post_content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;br /&gt;查看全文：&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span>get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; &nbsp; smtp_mailer_qqmail<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_title</span><span style="color: #339933;">,</span><span style="color: #000088;">$post_content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; &nbsp; add_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post_ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'qzone'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'true'</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><br />
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>源码很简单，我就不一一解释了。</p>
<p>最后，action启用代码：</p>
<p><code class="codecolorer php default"><span class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'publish_post'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'publish_post_2_qzone'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span></code></p>
<p>具体的效果可以参看我的<a href="http://tossp.com/tag/qq" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with QQ">QQ</a>空间！</p>
<h1>后记</h1>
<p>不得不承认我这人真没啥原创性，所以只能坐在巨人的肩膀上瞅瞅远处的风景了，水煮鱼还提供了相应的插件，大家可以去他的blog看看了。</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html#comments" title="to the comments">已有14条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-in-the-hybird-frame-sync-<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>-blog-entries-to-qzone.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;t=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone&amp;body=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;title=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;bm_description=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone&uri=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&amp;title=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone%20-%20http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&title=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html&title=WP%3A%E5%9C%A8hybird%E6%A1%86%E6%9E%B6%E4%B8%AD%E5%90%8C%E6%AD%A5%20WordPress%20%E5%8D%9A%E5%AE%A2%E6%97%A5%E5%BF%97%E5%88%B0%20Qzone&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>WP:跨页悬浮显示 @ 评论 (抄袭篇)</title>
		<link>http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html</link>
		<comments>http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html#comments</comments>
		<pubDate>Sat, 28 Nov 2009 21:25:23 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[Hybrid]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2006</guid>
		<description><![CDATA[这篇日志在2009-12-03 15:56:04最后一次修订。不得不承认，我是一个极度缺乏创意的人，极度缺乏想象力的人
一觉睡醒闲来无事，又添加了一个比较鸡肋的功能。。。。。
既然添加了，那还是简单的记录一下，添加过程～具体的原理，流程等等就不细说了，需要的童鞋可以和我一样去参考（抄袭）NeoEase的跨页悬浮显示 @ 评论 (代码篇)/（原理篇）
<div class="clear"></div><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html" title="WP:跨页悬浮显示 @ 评论 (抄袭篇)" rel="external" class="more-link">阅读全文-—共4085字</a>]]></description>
			<content:encoded><![CDATA[<div class="revised">这篇日志在<abbr title="星期四, 12月 3rd, 2009, 3:56 pm">2009-12-03 15:56:04</abbr>最后一次修订。</div><br /><p>不得不承认，我是一个极度缺乏创意的人，极度缺乏想象力的人</p>
<p>一觉睡醒闲来无事，又添加了一个比较鸡肋的功能。。。。。</p>
<p>既然添加了，那还是简单的记录一下，添加过程～具体的原理，流程等等就不细说了，需要的童鞋可以和我一样去参考（抄袭）NeoEase的<a href="http://www.neoease.com/at-reply-tip-from-diff-page-works-2/">跨页悬浮显示 @ 评论 (代码篇)</a>/<a href="http://www.neoease.com/at-reply-tip-from-diff-page-works/">（原理篇）</a></p>
<p>同样的这次还是在hybird的子主题上面添加，其实和普通主题除了评论跨页回调其他的没什么不一样，呵呵</p>
<p>我会尽量写一些注释在代码里面，应该都能看懂了吧。。。</p>
<p>还有，我发现每次我写点东西总是要废话一大篇，哎～习惯了啊。。。。</p>
<p><div class="note"><div class="noteclassic">@ 回复是个好东西, 因为它结构简单, 处理方便; 嵌套回复则有更友好的用户体验, 可以调动访客回复的积极性. 对 @ 回复而言, 悬浮显示 @ 评论 (显示评论提示框) 在一定程度上可以提升 @回复的用户体验. 但是当评论出现分页的时候, 评论提示框就像被阉割一样, 功能不全. 表现为不能获取其他页面的评论信息, 本文将告诉你如何跨页处理.</div></div></p>
<p>step by step：</p>
<p>打开你主题的 <code class="codecolorer text default"><span class="text">functions.php</span></code>文件，在里面添加一下代码：</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">&lt;?php</span><br />
wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;prototype&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//引入WP自带的prototype内裤</span><br />
wp_register_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'commentstip'</span><span style="color: #339933;">,</span> IMT_GREEN_URL<span style="color: #339933;">.</span><span style="color: #0000ff;">'/js/comments-tip.js'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'0.2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
wp_enqueue_script<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'commentstip'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'0.2'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #666666; font-style: italic;">//上面这三行根据自己的情况选择插入的地方</span><br />
<span style="color: #666666; font-style: italic;">//因为只有is_single()||is_page()这样的地方才有评论啊，哈哈</span><br />
<br />
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'imt_load_comment'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//这一段是引入一个action，</span><br />
<span style="color: #000000; font-weight: bold;">function</span> imt_load_comment<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'action'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span><span style="color: #0000ff;">'load_comment'</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">!=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$comment</span> <span style="color: #339933;">=</span> get_comment<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$comment</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fail<span style="color: #009900;">&#40;</span><span style="color: #990000;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Whoops! Can\'t find the comment with id &nbsp;%1$s'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; hybrid_comments_callback<span style="color: #009900;">&#40;</span><span style="color: #000088;">$comment</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; hybrid_comments_end_callback<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #666666; font-style: italic;">//这个和上面的一行是格式化我的评论样式</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #990000;">die</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">?&gt;</span></div></div>
<p>JS里面使用了“cumulativeOffset”。所以需要引入prototype。就因为忘记引入这个东东，浪费了我好多时间。。。。</p>
<p>下面是<code class="codecolorer text default"><span class="text">/js/comments-tip.js</span></code>的代码：</p>
<div class="codecolorer-container javascript blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:500px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$imt<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <br />
<span style="color: #003366; font-weight: bold;">var</span> id<span style="color: #339933;">=</span><span style="color: #009966; font-style: italic;">/^#comment-/</span><span style="color: #339933;">;</span><br />
<span style="color: #003366; font-weight: bold;">var</span> at<span style="color: #339933;">=</span><span style="color: #009966; font-style: italic;">/:$/</span><span style="color: #339933;">;</span><br />
$imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#comments li p a'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span>id<span style="color: #009900;">&#41;</span><span style="color: #339933;">&amp;&amp;</span> $imt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">match</span><span style="color: #009900;">&#40;</span>at<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">addClass</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'tip-atreply'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #006600; font-style: italic;">//找出需要悬浮显示 @ 评论的地方，并加上tip-atreply</span><br />
<br />
$imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.tip-atreply'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> target <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> _commentId <span style="color: #339933;">=</span> $imt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">attr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'href'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span>_commentId<span style="color: #009900;">&#41;</span>.<span style="color: #000066; font-weight: bold;">is</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.comment'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;li class=&quot;comment-tip&quot;&gt;&lt;/li&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span>_commentId<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left<span style="color: #339933;">:</span>Position.<span style="color: #660066;">cumulativeOffset</span><span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> $imt<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; top<span style="color: #339933;">:</span>Position.<span style="color: #660066;">cumulativeOffset</span><span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">22</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span> <span style="color: #000066; font-weight: bold;">else</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> id <span style="color: #339933;">=</span> _commentId.<span style="color: #660066;">slice</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">9</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $imt.<span style="color: #660066;">ajax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; type<span style="color: #339933;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'GET'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>url<span style="color: #339933;">:</span> &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #3366CC;">'?action=load_comment&amp;id='</span> <span style="color: #339933;">+</span> id<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>cache<span style="color: #339933;">:</span> &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">false</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>dataType<span style="color: #339933;">:</span> &nbsp; &nbsp;<span style="color: #3366CC;">'html'</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>contentType<span style="color: #339933;">:</span> <span style="color: #3366CC;">'application/json; charset=utf-8'</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>beforeSend<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;li class=&quot;comment-tip&quot;&gt;&lt;/li&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;p class=&quot;ajax-loader msg&quot;&gt;&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">block</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;img src=&quot;'</span><span style="color: #339933;">+</span>imt_mysite_url<span style="color: #339933;">+</span><span style="color: #3366CC;">'images/ajax-loader.gif&quot; /&gt;正在拉取评论请稍候～'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeIn<span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeOut<span style="color: #339933;">:</span> <span style="color: #CC0000;">1000</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; css<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'350px'</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span>left<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> right<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span> &nbsp;padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'5px'</span><span style="color: #339933;">,</span> &nbsp;backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#000000'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-webkit-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-moz-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> .6<span style="color: #339933;">,</span> color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">,</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'wait'</span> <span style="color: #009900;">&#125;</span> &nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; left<span style="color: #339933;">:</span>Position.<span style="color: #660066;">cumulativeOffset</span><span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> $imt<span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #CC0000;">10</span><span style="color: #339933;">,</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; top<span style="color: #339933;">:</span>Position.<span style="color: #660066;">cumulativeOffset</span><span style="color: #009900;">&#40;</span>target<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#91;</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">-</span> <span style="color: #CC0000;">22</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">400</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>success<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">block</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;img src=&quot;'</span><span style="color: #339933;">+</span>imt_mysite_url<span style="color: #339933;">+</span><span style="color: #3366CC;">'images/ajax-loader.gif&quot; /&gt;拉取评论信息成功！'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeIn<span style="color: #339933;">:</span> <span style="color: #CC0000;">1500</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeOut<span style="color: #339933;">:</span> <span style="color: #CC0000;">1500</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout<span style="color: #339933;">:</span> <span style="color: #CC0000;">4000</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showOverlay<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; centerY<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; css<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'620px'</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span>left<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> right<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span> &nbsp;padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'5px'</span><span style="color: #339933;">,</span> &nbsp;backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#000000'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-webkit-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-moz-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> .6<span style="color: #339933;">,</span> color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">,</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'wait'</span> <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> addedComment <span style="color: #339933;">=</span> $imt<span style="color: #009900;">&#40;</span>data<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; addedComment.<span style="color: #660066;">hide</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">appendTo</span><span style="color: #009900;">&#40;</span>$imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>addedComment.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #339933;">,</span>error<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">block</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; message<span style="color: #339933;">:</span> <span style="color: #3366CC;">'&lt;img src=&quot;'</span><span style="color: #339933;">+</span>imt_mysite_url<span style="color: #339933;">+</span><span style="color: #3366CC;">'images/ajax-loader.gif&quot; /&gt;拉取评论信息失败！'</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeIn<span style="color: #339933;">:</span> <span style="color: #CC0000;">1500</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; fadeOut<span style="color: #339933;">:</span> <span style="color: #CC0000;">1500</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; timeout<span style="color: #339933;">:</span> <span style="color: #CC0000;">4000</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; showOverlay<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; centerY<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; css<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span> <span style="color: #3366CC;">'620px'</span><span style="color: #339933;">,</span> top<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span>left<span style="color: #339933;">:</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">,</span> right<span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #3366CC;">'none'</span><span style="color: #339933;">,</span> &nbsp;padding<span style="color: #339933;">:</span> <span style="color: #3366CC;">'5px'</span><span style="color: #339933;">,</span> &nbsp;backgroundColor<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#000000'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-webkit-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">'-moz-border-radius'</span><span style="color: #339933;">:</span> <span style="color: #3366CC;">'10px'</span><span style="color: #339933;">,</span> opacity<span style="color: #339933;">:</span> .6<span style="color: #339933;">,</span> color<span style="color: #339933;">:</span> <span style="color: #3366CC;">'#fff'</span><span style="color: #339933;">,</span>cursor<span style="color: #339933;">:</span><span style="color: #3366CC;">'wait'</span> <span style="color: #009900;">&#125;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'&lt;p class=&quot;msg&quot;&gt;拉取评论信息失败！&lt;/p&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'ol.comment-list .comment-tip'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">400</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $imt<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></div></div>
<p>我做了一些小的修改，添加了一点点特效。。。感觉没什么好解释。。。每个主题的DIV结构不一样，参照修改吧。。。</p>
<p>当然我不要忘了加入<a href="http://tossp.com/tag/css" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with css">CSS</a>样式，把我的给大家参考一下：</p>
<div class="codecolorer-container css blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#comments</span> .comment-tip<span style="color: #00AA00;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">999</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span><br />
-moz-border-radius-topleft<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
-moz-border-radius-topright<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
-moz-border-radius-bottomright<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
-moz-border-radius-bottomleft<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><br />
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">626px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p>忘记了是在哪个时候弄的这段代码了，马马虎虎将就用用吧，我相信你改的肯定比我好看（个屁）～</p>
<p>具体的DOME可以参考我的blog留言比较多的是“留言本”，去看看吧，半夜起来弄的，没有测试兼容性，在FF通过不知道IE6下面能不能通过呢？</p>
<p>有条件的童鞋帮忙测试一下了，谢谢，记得把结果告诉我！</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html#comments" title="to the comments">已有20条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;t=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20&amp;body=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;title=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;bm_description=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20&uri=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&amp;title=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20%20-%20http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&title=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-cross-page-suspension-show-comments-copied-articles.html&title=WP%3A%E8%B7%A8%E9%A1%B5%E6%82%AC%E6%B5%AE%E6%98%BE%E7%A4%BA%20%40%20%E8%AF%84%E8%AE%BA%20%28%E6%8A%84%E8%A2%AD%E7%AF%87%29%20&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>WP:Hybrid在感恩节提供更多的主题模板</title>
		<link>http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html</link>
		<comments>http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html#comments</comments>
		<pubDate>Fri, 27 Nov 2009 02:49:25 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[Hybrid]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=1999</guid>
		<description><![CDATA[大家感恩节快乐，好久没更新了，125说“老是不博，以后会‘勃’不起的哦”，苍天啊，雷死这个破孩子吧，淫家还未婚的说。。。。
恰好，今天Hybrid也因为感恩节提供了额外的主题模板，我太爱这个了，哈哈
此下载包括18页的模板，可以添加到你的孩子主题，让您的网站额外的功能。所有您需要做的是下载文件，解压缩，并上传您的模板要使用你的孩子主题文件夹。
<div class="clear"></div><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html" title="WP:Hybrid在感恩节提供更多的主题模板" rel="external" class="more-link">阅读全文-—共741字</a>]]></description>
			<content:encoded><![CDATA[<p>大家感恩节快乐，好久没更新了，125说“老是不博，以后会‘勃’不起的哦”，苍天啊，雷死这个破孩子吧，淫家还未婚的说。。。。</p>
<p>恰好，今天<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">Hybrid</a>也因为感恩节提供了额外的主题模板，我太爱这个了，哈哈</p>
<p>此下载包括18页的模板，可以添加到你的孩子主题，让您的网站额外的功能。所有您需要做的是下载文件，解压缩，并上传您的模板要使用你的孩子主题文件夹。</p>
<p>有些模板可能需要一些额外的代码输入。readme.html文件中已经写好了说明。</p>
<h3>下面是模板列表：</h3>
<ul>
<li>Archives By Category</li>
<li>Archives By Post Tag</li>
<li>Archives By Taxonomy</li>
<li>Blog Information</li>
<li>Category Cloud</li>
<li>Custom Query</li>
<li>Custom Query Excerpts</li>
<li>Link Category Cloud</li>
<li>List Authors</li>
<li>List Pages</li>
<li>Log In</li>
<li>No Asides</li>
<li>No Primary or Secondary</li>
<li>Profile</li>
<li>Quick Post</li>
<li>Redirect</li>
<li>Register</li>
<li>Thumbnail Archive</li>
</ul>
<p>在以后作者还会增加更多的模板，苍天~想象力和创造力，还是所有前进的原动力~，也许这就是东西方文化的不同吧</p>
<p>当然，在以后的“<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">Hybrid</a> 0.7”中“登录，配置文件和注册模板”可能会删除。因此，如果你有需要，作者建议自己更新到新的模板。</p>
<p>多了这么多模板有的忙了，呵呵，就是不知道其中有几个会是我看中的，为什么我总想不到这些好东西呢？哎~</p>
<p>附上下载地址：http://themehybrid.com/downloads/<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">hybrid</a>-page-templates.zip</p>
<p>vis：<a href="http://themehybrid.com/archives/2009/11/hybrid-page-templates">http://themehybrid.com/archives/2009/11/hybrid-page-templates</a></p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html#comments" title="to the comments">已有5条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-<a href="http://tossp.com/tag/hybrid" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Hybrid">hybrid</a>-thanksgiving-theme-templates-to-provide-more.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;t=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF&amp;body=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;title=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;bm_description=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF&uri=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&amp;title=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF%20-%20http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&title=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-hybrid-thanksgiving-theme-templates-to-provide-more.html&title=WP%3AHybrid%E5%9C%A8%E6%84%9F%E6%81%A9%E8%8A%82%E6%8F%90%E4%BE%9B%E6%9B%B4%E5%A4%9A%E7%9A%84%E4%B8%BB%E9%A2%98%E6%A8%A1%E6%9D%BF&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>写博客</title>
		<link>http://tossp.com/write-a-blog.html</link>
		<comments>http://tossp.com/write-a-blog.html#comments</comments>
		<pubDate>Sat, 29 Aug 2009 15:27:39 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[黑莓]]></category>

		<guid isPermaLink="false">http://tossp.com/write-a-blog.html</guid>
		<description><![CDATA[这是第一次用wordpress的黑莓本地客户端写blog。
由于是8700的4.5ROM没有习惯的拼音输入法，点讯又不支持这个应用的无切换输入，写一个标题竟然用了我近三分钟的时间，，，汗
实在是受不鸟了，还是直接切出来写。不得不承认，长期习惯于拼音录入的人确实不适合用五笔画输入。虽然在尝试过程中感觉黑莓的五笔画输入还是很强大的。。。
<div class="clear"></div><a href="http://tossp.com/write-a-blog.html" title="写博客" rel="external" class="more-link">阅读全文-—共787字</a>]]></description>
			<content:encoded><![CDATA[<p>这是第一次用<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>的黑莓本地客户端写blog。</p>
<p>由于是8700的4.5ROM没有习惯的拼音输入法，点讯又不支持这个应用的无切换输入，写一个标题竟然用了我近三分钟的时间，，，汗</p>
<p>实在是受不鸟了，还是直接切出来写。不得不承认，长期习惯于拼音录入的人确实不适合用五笔画输入。虽然在尝试过程中感觉黑莓的五笔画输入还是很强大的。。。</p>
<p>据说，适应五笔画输入需要一个月左右的时间，听起来好像没多久，但握这人比较笨，想想就行了，没必要去自己折磨自己一个月，习惯果然是个很难改变的东西阿</p>
<p>黑莓4.2的ROM带有拼音输入，但咱还是喜欢用最新版的，毕竟一般来说高版本在功能方面来说必须比低版本的ROM强大啊，这不是还有一个点讯拼音输入么，</p>
<p>这工作调整以后还没去新的环境看看，不知道上网方便不，不方便的话估计以后也就只有用这小手机写blog了或者是在电脑上写好用黑莓来发布，估计就是域名续费和主机续费麻烦一些。恩，反正就是谁也档不住咱新青年使用高科技的脚步，嘿嘿</p>
<p>PS：这篇日志前两次都没发送成功，第一次提示我dns或者blog错误，第二次提示我dns错误，然后我存为本地草稿，返回检查了应用的设置没有问题，获取了一下评论，…很正常的获取到了数据。不过在测试过程中很遗憾的发现，不能发表评论。。。算了wlw也不能发评论的，然后再测试一下发布日志，成功了。。。汗，我什么设置也没改阿。。。(我在想我是不是应该学习java，来为我这样的人写一个在黑莓上管理<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>的应用，毕竟觉得用浏览器管理很不爽，不节约流量就是浪费阿。。。可怜的我每个月只有30mb的流量因为是wap包年套餐，现在还不能改，好郁闷哇)</p>
<p>btw：通过手机上的浏览器，可以用cmwap访问我的blog，为什么这个应用就一定要用cmnet才能连上我的blog呢？好郁闷，虽然现在四川移动已经不区分cmwap和cmnet。。。困惑阿</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/write-a-blog.html#comments" title="to the comments">已有21条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/write-a-blog.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;bodytext=%E8%BF%99%E6%98%AF%E7%AC%AC%E4%B8%80%E6%AC%A1%E7%94%A8wordpress%E7%9A%84%E9%BB%91%E8%8E%93%E6%9C%AC%E5%9C%B0%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%86%99blog%E3%80%82%0A%0A%E7%94%B1%E4%BA%8E%E6%98%AF8700%E7%9A%844.5ROM%E6%B2%A1%E6%9C%89%E4%B9%A0%E6%83%AF%E7%9A%84%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%B3%95%EF%BC%8C%E7%82%B9%E8%AE%AF%E5%8F%88%E4%B8%8D%E6%94%AF%E6%8C%81%E8%BF%99%E4%B8%AA%E5%BA%94%E7%94%A8%E7%9A%84%E6%97%A0%E5%88%87%E6%8D%A2%E8%BE%93%E5%85%A5%EF%BC%8C%E5%86%99%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98%E7%AB%9F%E7%84%B6%E7%94%A8%E4%BA%86%E6%88%91%E8%BF%91%E4%B8%89%E5%88%86%E9%92%9F%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%8C%EF%BC%8C%EF%BC%8C%E6%B1%97%0A%0A%E5%AE%9E%E5%9C%A8%E6%98%AF%E5%8F%97%E4%B8%8D%E9" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;notes=%E8%BF%99%E6%98%AF%E7%AC%AC%E4%B8%80%E6%AC%A1%E7%94%A8wordpress%E7%9A%84%E9%BB%91%E8%8E%93%E6%9C%AC%E5%9C%B0%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%86%99blog%E3%80%82%0A%0A%E7%94%B1%E4%BA%8E%E6%98%AF8700%E7%9A%844.5ROM%E6%B2%A1%E6%9C%89%E4%B9%A0%E6%83%AF%E7%9A%84%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%B3%95%EF%BC%8C%E7%82%B9%E8%AE%AF%E5%8F%88%E4%B8%8D%E6%94%AF%E6%8C%81%E8%BF%99%E4%B8%AA%E5%BA%94%E7%94%A8%E7%9A%84%E6%97%A0%E5%88%87%E6%8D%A2%E8%BE%93%E5%85%A5%EF%BC%8C%E5%86%99%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98%E7%AB%9F%E7%84%B6%E7%94%A8%E4%BA%86%E6%88%91%E8%BF%91%E4%B8%89%E5%88%86%E9%92%9F%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%8C%EF%BC%8C%EF%BC%8C%E6%B1%97%0A%0A%E5%AE%9E%E5%9C%A8%E6%98%AF%E5%8F%97%E4%B8%8D%E9" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;t=%E5%86%99%E5%8D%9A%E5%AE%A2" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;annotation=%E8%BF%99%E6%98%AF%E7%AC%AC%E4%B8%80%E6%AC%A1%E7%94%A8wordpress%E7%9A%84%E9%BB%91%E8%8E%93%E6%9C%AC%E5%9C%B0%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%86%99blog%E3%80%82%0A%0A%E7%94%B1%E4%BA%8E%E6%98%AF8700%E7%9A%844.5ROM%E6%B2%A1%E6%9C%89%E4%B9%A0%E6%83%AF%E7%9A%84%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%B3%95%EF%BC%8C%E7%82%B9%E8%AE%AF%E5%8F%88%E4%B8%8D%E6%94%AF%E6%8C%81%E8%BF%99%E4%B8%AA%E5%BA%94%E7%94%A8%E7%9A%84%E6%97%A0%E5%88%87%E6%8D%A2%E8%BE%93%E5%85%A5%EF%BC%8C%E5%86%99%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98%E7%AB%9F%E7%84%B6%E7%94%A8%E4%BA%86%E6%88%91%E8%BF%91%E4%B8%89%E5%88%86%E9%92%9F%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%8C%EF%BC%8C%EF%BC%8C%E6%B1%97%0A%0A%E5%AE%9E%E5%9C%A8%E6%98%AF%E5%8F%97%E4%B8%8D%E9" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;body=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;bm_description=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2&amp;body=%E8%BF%99%E6%98%AF%E7%AC%AC%E4%B8%80%E6%AC%A1%E7%94%A8wordpress%E7%9A%84%E9%BB%91%E8%8E%93%E6%9C%AC%E5%9C%B0%E5%AE%A2%E6%88%B7%E7%AB%AF%E5%86%99blog%E3%80%82%0A%0A%E7%94%B1%E4%BA%8E%E6%98%AF8700%E7%9A%844.5ROM%E6%B2%A1%E6%9C%89%E4%B9%A0%E6%83%AF%E7%9A%84%E6%8B%BC%E9%9F%B3%E8%BE%93%E5%85%A5%E6%B3%95%EF%BC%8C%E7%82%B9%E8%AE%AF%E5%8F%88%E4%B8%8D%E6%94%AF%E6%8C%81%E8%BF%99%E4%B8%AA%E5%BA%94%E7%94%A8%E7%9A%84%E6%97%A0%E5%88%87%E6%8D%A2%E8%BE%93%E5%85%A5%EF%BC%8C%E5%86%99%E4%B8%80%E4%B8%AA%E6%A0%87%E9%A2%98%E7%AB%9F%E7%84%B6%E7%94%A8%E4%BA%86%E6%88%91%E8%BF%91%E4%B8%89%E5%88%86%E9%92%9F%E7%9A%84%E6%97%B6%E9%97%B4%EF%BC%8C%EF%BC%8C%EF%BC%8C%E6%B1%97%0A%0A%E5%AE%9E%E5%9C%A8%E6%98%AF%E5%8F%97%E4%B8%8D%E9" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=%E5%86%99%E5%8D%9A%E5%AE%A2&uri=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&amp;title=%E5%86%99%E5%8D%9A%E5%AE%A2" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=%E5%86%99%E5%8D%9A%E5%AE%A2%20-%20http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&title=%E5%86%99%E5%8D%9A%E5%AE%A2" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwrite-a-blog.html&title=%E5%86%99%E5%8D%9A%E5%AE%A2&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/write-a-blog.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>WP:仿的主题I&#039;m t green的发布会</title>
		<link>http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html</link>
		<comments>http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html#comments</comments>
		<pubDate>Sun, 23 Aug 2009 14:47:23 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[主题]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=1983</guid>
		<description><![CDATA[又腻歪了原来的主题one blue，照着Cordobo Green Park 2仿了这个hybird的子主题取名I'm t green
这次算不上是高仿的，不兼容IE6，，，很惆怅
刚去看了一下统计访问我这小blog的50%以上都是IE6，苍天，我直接无语了
很多细节还没有处理，大部分时间弄CSS兼容去了，慢慢来吧
<div class="clear"></div><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html" title="WP:仿的主题I'm t green的发布会" rel="external" class="more-link">阅读全文-—共335字</a>]]></description>
			<content:encoded><![CDATA[<p>又腻歪了原来的主题one blue，照着<a href="http://cordobo.com/">Cordobo Green Park 2</a>仿了这个hybird的子主题取名I'm t green</p>
<p>这次算不上是高仿的，不兼容IE6，，，很惆怅</p>
<p>刚去看了一下统计访问我这小blog的50%以上都是IE6，苍天，我直接无语了</p>
<p>很多细节还没有处理，大部分时间弄<a href="http://tossp.com/tag/css" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with css">CSS</a>兼容去了，慢慢来吧</p>
<p>侧边栏的项目是必须要改的</p>
<p>其实，不想放弃IE6，毕竟大多数人使用的都是IE6</p>
<p>这次在仿的时候明显比上次的速度快多了，很不错提高了，呵呵</p>
<p>清爽的绿色主题看起来，还不错，有谁知道我这个IE6的兼容怎么处理啊～</p>
<p>这问题解决不了，老觉得和吃了一只苍蝇一样，很惆怅啊～</p>
<p>微软雅黑很好看，但是在XP的火狐里面看着不怎么爽最后还是回归主流的用了宋体。。。</p>
<p>这个主题问题多多啊，一个一个的解决吧～哎～</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html#comments" title="to the comments">已有15条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;bodytext=%E5%8F%88%E8%85%BB%E6%AD%AA%E4%BA%86%E5%8E%9F%E6%9D%A5%E7%9A%84%E4%B8%BB%E9%A2%98one%20blue%EF%BC%8C%E7%85%A7%E7%9D%80Cordobo%20Green%20Park%202%E4%BB%BF%E4%BA%86%E8%BF%99%E4%B8%AAhybird%E7%9A%84%E5%AD%90%E4%B8%BB%E9%A2%98%E5%8F%96%E5%90%8DI%27m%20t%20green%0D%0A%0D%0A%E8%BF%99%E6%AC%A1%E7%AE%97%E4%B8%8D%E4%B8%8A%E6%98%AF%E9%AB%98%E4%BB%BF%E7%9A%84%EF%BC%8C%E4%B8%8D%E5%85%BC%E5%AE%B9IE6%EF%BC%8C%EF%BC%8C%EF%BC%8C%E5%BE%88%E6%83%86%E6%80%85%0D%0A%0D%0A%E5%88%9A%E5%8E%BB%E7%9C%8B%E4%BA%86%E4%B8%80%E4%B8%8B%E7%BB%9F%E8%AE%A1%E8%AE%BF%E9%97%AE%E6%88%91%E8%BF%99%E5%B0%8Fblog%E7%9A%8450%25%E4%BB%A5%E4%B8%8A%E9%83%BD%E6%98%AFIE6%EF%BC%8C%E8%8B%8D%E5" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;notes=%E5%8F%88%E8%85%BB%E6%AD%AA%E4%BA%86%E5%8E%9F%E6%9D%A5%E7%9A%84%E4%B8%BB%E9%A2%98one%20blue%EF%BC%8C%E7%85%A7%E7%9D%80Cordobo%20Green%20Park%202%E4%BB%BF%E4%BA%86%E8%BF%99%E4%B8%AAhybird%E7%9A%84%E5%AD%90%E4%B8%BB%E9%A2%98%E5%8F%96%E5%90%8DI%27m%20t%20green%0D%0A%0D%0A%E8%BF%99%E6%AC%A1%E7%AE%97%E4%B8%8D%E4%B8%8A%E6%98%AF%E9%AB%98%E4%BB%BF%E7%9A%84%EF%BC%8C%E4%B8%8D%E5%85%BC%E5%AE%B9IE6%EF%BC%8C%EF%BC%8C%EF%BC%8C%E5%BE%88%E6%83%86%E6%80%85%0D%0A%0D%0A%E5%88%9A%E5%8E%BB%E7%9C%8B%E4%BA%86%E4%B8%80%E4%B8%8B%E7%BB%9F%E8%AE%A1%E8%AE%BF%E9%97%AE%E6%88%91%E8%BF%99%E5%B0%8Fblog%E7%9A%8450%25%E4%BB%A5%E4%B8%8A%E9%83%BD%E6%98%AFIE6%EF%BC%8C%E8%8B%8D%E5" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;t=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;annotation=%E5%8F%88%E8%85%BB%E6%AD%AA%E4%BA%86%E5%8E%9F%E6%9D%A5%E7%9A%84%E4%B8%BB%E9%A2%98one%20blue%EF%BC%8C%E7%85%A7%E7%9D%80Cordobo%20Green%20Park%202%E4%BB%BF%E4%BA%86%E8%BF%99%E4%B8%AAhybird%E7%9A%84%E5%AD%90%E4%B8%BB%E9%A2%98%E5%8F%96%E5%90%8DI%27m%20t%20green%0D%0A%0D%0A%E8%BF%99%E6%AC%A1%E7%AE%97%E4%B8%8D%E4%B8%8A%E6%98%AF%E9%AB%98%E4%BB%BF%E7%9A%84%EF%BC%8C%E4%B8%8D%E5%85%BC%E5%AE%B9IE6%EF%BC%8C%EF%BC%8C%EF%BC%8C%E5%BE%88%E6%83%86%E6%80%85%0D%0A%0D%0A%E5%88%9A%E5%8E%BB%E7%9C%8B%E4%BA%86%E4%B8%80%E4%B8%8B%E7%BB%9F%E8%AE%A1%E8%AE%BF%E9%97%AE%E6%88%91%E8%BF%99%E5%B0%8Fblog%E7%9A%8450%25%E4%BB%A5%E4%B8%8A%E9%83%BD%E6%98%AFIE6%EF%BC%8C%E8%8B%8D%E5" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;body=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;bm_description=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&amp;body=%E5%8F%88%E8%85%BB%E6%AD%AA%E4%BA%86%E5%8E%9F%E6%9D%A5%E7%9A%84%E4%B8%BB%E9%A2%98one%20blue%EF%BC%8C%E7%85%A7%E7%9D%80Cordobo%20Green%20Park%202%E4%BB%BF%E4%BA%86%E8%BF%99%E4%B8%AAhybird%E7%9A%84%E5%AD%90%E4%B8%BB%E9%A2%98%E5%8F%96%E5%90%8DI%27m%20t%20green%0D%0A%0D%0A%E8%BF%99%E6%AC%A1%E7%AE%97%E4%B8%8D%E4%B8%8A%E6%98%AF%E9%AB%98%E4%BB%BF%E7%9A%84%EF%BC%8C%E4%B8%8D%E5%85%BC%E5%AE%B9IE6%EF%BC%8C%EF%BC%8C%EF%BC%8C%E5%BE%88%E6%83%86%E6%80%85%0D%0A%0D%0A%E5%88%9A%E5%8E%BB%E7%9C%8B%E4%BA%86%E4%B8%80%E4%B8%8B%E7%BB%9F%E8%AE%A1%E8%AE%BF%E9%97%AE%E6%88%91%E8%BF%99%E5%B0%8Fblog%E7%9A%8450%25%E4%BB%A5%E4%B8%8A%E9%83%BD%E6%98%AFIE6%EF%BC%8C%E8%8B%8D%E5" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&uri=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&amp;title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A%20-%20http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&title=WP%3A%E4%BB%BF%E7%9A%84%E4%B8%BB%E9%A2%98I%27m%20t%20green%E7%9A%84%E5%8F%91%E5%B8%83%E4%BC%9A&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>快速配置IIS支持wordpress程序</title>
		<link>http://tossp.com/iis-supports-the-rapid-deployment-of-procedures-wordpress.html</link>
		<comments>http://tossp.com/iis-supports-the-rapid-deployment-of-procedures-wordpress.html#comments</comments>
		<pubDate>Fri, 21 Aug 2009 20:49:20 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[打死电脑]]></category>
		<category><![CDATA[杂七杂八]]></category>
		<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[IIS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=1982</guid>
		<description><![CDATA[这里日志主要介绍，使用微软自己的工具Microsoft Web Platform Installer 2.0 RC配置IIS5.1，使其支持wordpress等PHP程序的运行。这个方法同样适用于IIS7
每次重装系统以后，总是所有的配置都要重做一般，特别是我这人儿，麻烦事儿又多，总要要求这要求那的，特麻烦～
<div class="clear"></div><a href="http://tossp.com/iis-supports-the-rapid-deployment-of-procedures-wordpress.html" title="快速配置IIS支持wordpress程序" rel="external" class="more-link">阅读全文-—共1262字</a>]]></description>
			<content:encoded><![CDATA[<p>这里日志主要介绍，使用微软自己的工具Microsoft <a href="http://tossp.com/tag/web" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with web">Web</a> Platform Installer 2.0 RC配置IIS5.1，使其支持<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>等<a href="http://tossp.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a>程序的运行。这个方法同样适用于IIS7</p>
<p>每次重装系统以后，总是所有的配置都要重做一般，特别是我这人儿，麻烦事儿又多，总要要求这要求那的，特麻烦～</p>
<p>其实第一次用这个工具是在用win7 RC的发现的，试用了一次感觉很不错，还第一次知道了<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>居然还有专门的<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">IIS</a>版本，而且是和普通版本同步更新的，汗一个先，，，修改wp总是要在本地安装一个测试系统～毕竟偶尔改改一些细小的代码没什么，但今天又想换主题，虽然还是扒别人皮，毕竟还是一个细致活儿啊，还是不直接的我这个幼小的blog服务器上折腾了，搬回本地慢慢调试吧～今天翻了翻以前的日志，上次居然没写，估计又是忘记了。。。以后想到要写什么，没时间写都先把题目几下来，哎，最近老忘事儿，很郁闷啊～</p>
<p>首先要做的还是先把工具准备好，去<a href="http://www.microsoft.com/web/downloads/platform.aspx">http://www.microsoft.com/web/downloads/platform.aspx</a>把Microsoft <a href="http://tossp.com/tag/web" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with web">Web</a> Platform Installer下载回来，我现在用的是2.0 RC的，正式版不知道了～</p>
<p>有个前提，差点忘记说了，你的机器上已经安装好了<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">IIS</a>，我现在是系统XP SP3，所以我这边就是IIS5.1</p>
<p>安装好mysql数据库服务，这个的下载地址我就不给了，遍地都是</p>
<p>前置条件弄好了以后，直接运行MWPI（Microsoft <a href="http://tossp.com/tag/web" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with web">Web</a> Platform Installer，这名字太长了此次复制麻烦，先这样简写吧），点击左边的“<a href="http://tossp.com/tag/web" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with web">web</a> application”，最下面一个就是我们熟悉的wp的，其他的看不懂不用管，先把“<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>”勾选上～。</p>
<p>点击“Install”，这时候会提示你，没有安装“mysql”数据库服务，点击“more”会把你带到一个介绍在<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">IIS</a>中“MySQL的安装和配置”的页面，如果你记不清楚MYSQL应该怎样配置的话可以点开来看看，都是介绍的手动安装步骤，很简单的我就不再罗嗦了。必须先自己安装好mysql哦</p>
<p><div class="note"><div class="noteclassic">实在看不懂鸟文的用个灵格斯之类的即时翻译一下，还是可以体会文件精神的</div></div></p>
<p>MWPI会列出一个清单，告诉你会下载那些部件，一般的就是“<a href="http://tossp.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a>”、“WP”、“<a href="http://tossp.com/tag/fastcgi" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with FastCGI">FastCGI</a>”、“mysql的.net</p>
<p>空间”这样的几个了，直接确认就好了。</p>
<p>经过一段时间的下载和自动安装，就开始了step by step的配置。一共两步，都很简单，首先是站点配置，这个需要实现在<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">IIS</a>里面配置好站点，第二步是数据库配置和几个key的设置，都没什么好说的，用过wp的，看看就知道是怎回事儿了，如下图</p>
<p>我全用的默认配置，毕竟只是本地测试，我都限制了只能本地局域网访问，不用担心什么安全问题</p>
<p>最后，记得在默认访问文件里面把“index.<a href="http://tossp.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">php</a>”添加进去。</p>
<p>到此，本地服务器<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">IIS</a>+<a href="http://tossp.com/tag/php" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with php">PHP</a>+MYSQL就配置好了,很简单，很轻松吧？接下来就是通过浏览器配置wp的blog名字等等的信息了</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/iis-supports-the-rapid-deployment-of-procedures-wordpress.html#comments" title="to the comments">已有4条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/<a href="http://tossp.com/tag/iis" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with IIS">iis</a>-supports-the-rapid-deployment-of-procedures-<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;bodytext=%E8%BF%99%E9%87%8C%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E4%BD%BF%E7%94%A8%E5%BE%AE%E8%BD%AF%E8%87%AA%E5%B7%B1%E7%9A%84%E5%B7%A5%E5%85%B7Microsoft%20Web%20Platform%20Installer%202.0%20RC%E9%85%8D%E7%BD%AEIIS5.1%EF%BC%8C%E4%BD%BF%E5%85%B6%E6%94%AF%E6%8C%81wordpress%E7%AD%89PHP%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E3%80%82%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E5%90%8C%E6%A0%B7%E9%80%82%E7%94%A8%E4%BA%8EIIS7%0D%0A%0D%0A%E6%AF%8F%E6%AC%A1%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E4%BB%A5%E5%90%8E%EF%BC%8C%E6%80%BB%E6%98%AF%E6%89%80%E6%9C%89%E7%9A%84%E9%85%8D%E7%BD%AE%E9%83%BD%E8%A6%81%E9%87%8D%E5%81%9A%E4%B8" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;notes=%E8%BF%99%E9%87%8C%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E4%BD%BF%E7%94%A8%E5%BE%AE%E8%BD%AF%E8%87%AA%E5%B7%B1%E7%9A%84%E5%B7%A5%E5%85%B7Microsoft%20Web%20Platform%20Installer%202.0%20RC%E9%85%8D%E7%BD%AEIIS5.1%EF%BC%8C%E4%BD%BF%E5%85%B6%E6%94%AF%E6%8C%81wordpress%E7%AD%89PHP%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E3%80%82%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E5%90%8C%E6%A0%B7%E9%80%82%E7%94%A8%E4%BA%8EIIS7%0D%0A%0D%0A%E6%AF%8F%E6%AC%A1%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E4%BB%A5%E5%90%8E%EF%BC%8C%E6%80%BB%E6%98%AF%E6%89%80%E6%9C%89%E7%9A%84%E9%85%8D%E7%BD%AE%E9%83%BD%E8%A6%81%E9%87%8D%E5%81%9A%E4%B8" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;t=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;annotation=%E8%BF%99%E9%87%8C%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E4%BD%BF%E7%94%A8%E5%BE%AE%E8%BD%AF%E8%87%AA%E5%B7%B1%E7%9A%84%E5%B7%A5%E5%85%B7Microsoft%20Web%20Platform%20Installer%202.0%20RC%E9%85%8D%E7%BD%AEIIS5.1%EF%BC%8C%E4%BD%BF%E5%85%B6%E6%94%AF%E6%8C%81wordpress%E7%AD%89PHP%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E3%80%82%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E5%90%8C%E6%A0%B7%E9%80%82%E7%94%A8%E4%BA%8EIIS7%0D%0A%0D%0A%E6%AF%8F%E6%AC%A1%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E4%BB%A5%E5%90%8E%EF%BC%8C%E6%80%BB%E6%98%AF%E6%89%80%E6%9C%89%E7%9A%84%E9%85%8D%E7%BD%AE%E9%83%BD%E8%A6%81%E9%87%8D%E5%81%9A%E4%B8" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;body=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;bm_description=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&amp;body=%E8%BF%99%E9%87%8C%E6%97%A5%E5%BF%97%E4%B8%BB%E8%A6%81%E4%BB%8B%E7%BB%8D%EF%BC%8C%E4%BD%BF%E7%94%A8%E5%BE%AE%E8%BD%AF%E8%87%AA%E5%B7%B1%E7%9A%84%E5%B7%A5%E5%85%B7Microsoft%20Web%20Platform%20Installer%202.0%20RC%E9%85%8D%E7%BD%AEIIS5.1%EF%BC%8C%E4%BD%BF%E5%85%B6%E6%94%AF%E6%8C%81wordpress%E7%AD%89PHP%E7%A8%8B%E5%BA%8F%E7%9A%84%E8%BF%90%E8%A1%8C%E3%80%82%E8%BF%99%E4%B8%AA%E6%96%B9%E6%B3%95%E5%90%8C%E6%A0%B7%E9%80%82%E7%94%A8%E4%BA%8EIIS7%0D%0A%0D%0A%E6%AF%8F%E6%AC%A1%E9%87%8D%E8%A3%85%E7%B3%BB%E7%BB%9F%E4%BB%A5%E5%90%8E%EF%BC%8C%E6%80%BB%E6%98%AF%E6%89%80%E6%9C%89%E7%9A%84%E9%85%8D%E7%BD%AE%E9%83%BD%E8%A6%81%E9%87%8D%E5%81%9A%E4%B8" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&uri=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&amp;title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F%20-%20http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fiis-supports-the-rapid-deployment-of-procedures-wordpress.html&title=%E5%BF%AB%E9%80%9F%E9%85%8D%E7%BD%AEIIS%E6%94%AF%E6%8C%81wordpress%E7%A8%8B%E5%BA%8F&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/iis-supports-the-rapid-deployment-of-procedures-wordpress.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WP:列出WordPress的所有hooked functions</title>
		<link>http://tossp.com/wp-list-all-hooked-functions-of-wordpress.html</link>
		<comments>http://tossp.com/wp-list-all-hooked-functions-of-wordpress.html#comments</comments>
		<pubDate>Fri, 21 Aug 2009 00:19:32 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[函数]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=1980</guid>
		<description><![CDATA[这篇日志在2009-11-27 10:51:34最后一次修订。WordPress的hook是非常有有用有特别好玩的东西，因为它们可以用你自己的代码“扩展”WordPress现有的功能。但是，当代码出错，它的用处应该是列出所有的挂接点，以便能够列出所有连接WordPress的hook（好多地方翻译为“钩子”，总是让我想入非非）。以下是代码展示。
<div class="clear"></div><a href="http://tossp.com/wp-list-all-hooked-functions-of-wordpress.html" title="WP:列出WordPress的所有hooked functions" rel="external" class="more-link">阅读全文-—共882字</a>]]></description>
			<content:encoded><![CDATA[<div class="revised">这篇日志在<abbr title="星期五, 11月 27th, 2009, 10:51 am">2009-11-27 10:51:34</abbr>最后一次修订。</div><br /><p><a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">WordPress</a>的hook是非常有有用有特别好玩的东西，因为它们可以用你自己的代码“扩展”<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">WordPress</a>现有的功能。但是，当代码出错，它的用处应该是列出所有的挂接点，以便能够列出所有连接<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">WordPress</a>的hook（好多地方翻译为“钩子”，总是让我想入非非）。以下是代码展示。</p>
<p>要做的第一件事是要粘贴以下函数在你的<code class="codecolorer text default"><span class="text">functions.php</span></code>文件:</p>
<div class="codecolorer-container php blackboard" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> list_hooked_functions<span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_filter</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
  <span style="color: #000088;">$hook</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">=</span><span style="color: #000088;">$wp_filter</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">is_array</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hook</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$tag</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
  <span style="color: #990000;">trigger_error</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Nothing found for '<span style="color: #006699; font-weight: bold;">$tag</span>' hook&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">E_USER_WARNING</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
  <span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
  <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><br />
  <span style="color: #000088;">$hook</span><span style="color: #339933;">=</span><span style="color: #000088;">$wp_filter</span><span style="color: #339933;">;</span><br />
  <span style="color: #990000;">ksort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hook</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;pre&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$hook</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$tag</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$priority</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;<span style="color: #000099; font-weight: bold;">\t</span>&lt;strong&gt;<span style="color: #006699; font-weight: bold;">$tag</span>&lt;/strong&gt;&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span><br />
  <span style="color: #990000;">ksort</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$priority</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
  <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$priority</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$priority</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$function</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
  <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$priority</span><span style="color: #339933;">;</span><br />
  <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$function</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$name</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$properties</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\t</span><span style="color: #006699; font-weight: bold;">$name</span>&lt;br /&gt;&quot;</span><span style="color: #339933;">;</span><br />
  <span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;/pre&gt;'</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p><div class="note"><div class="noteimportant">请注意，此功能是用于调试目的。</div></div></p>
<p>完成上面的步骤以后，只需调用<code class="codecolorer php default"><span class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span> list_hooked_functions<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></span></code>函数就可以在屏幕上打印所有连接<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">WordPress</a>的functions。</p>
<p>原文来自<a title="Permanent Link to List all hooked WordPress functions" href="http://www.wprecipes.com/list-all-hooked-wordpress-functions">List all hooked WordPress functions</a>，根据个人理解翻译。</p>
<hr /><h1 >新域名tossp.com已启用，请到<a rel="home" href="http://tossp.com/">http://tossp.com/</a>更换订阅地址</h1><hr /><small>&copy; 2009 <a rel="home" href="http://tossp.com/">砼砼's blog</a> 版权所有,转载务必注明出处.<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.5/cn/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.5/cn/88x31.png" /></a><br />
这个Feed只供个人使用,禁止未注明的转载或商业应用。非法应用的,一切法律后果自负.如有问题,可发E-mail至blog@tossp.com<br />
（数字签名： b651ebdea0fdde249a8a03164e0202dedoubanclaim02e73b010717275c）<br />
<a href="http://tossp.com/wp-list-all-hooked-functions-of-wordpress.html#comments" title="to the comments">已有1条评论</a>, 发布人: <a href="http://im-t.net/" >砼砼</a>，trackback地址：http://tossp.com/wp-list-all-hooked-functions-of-<a href="http://tossp.com/tag/wordpress" class="st_tag internal_tag" rel="tag nofollow" title="Posts tagged with Wordpress">wordpress</a>.html/trackback</small><script type="text/javascript" language="JavaScript" src="http://www.nasboq.com/stat?id=9887&sid=it"></script>


收藏&分享:


	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;partner=sociable" title="Print"><img src="http://tossp.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;bodytext=WordPress%E7%9A%84hook%E6%98%AF%E9%9D%9E%E5%B8%B8%E6%9C%89%E6%9C%89%E7%94%A8%E6%9C%89%E7%89%B9%E5%88%AB%E5%A5%BD%E7%8E%A9%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E5%8F%AF%E4%BB%A5%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BB%A3%E7%A0%81%E2%80%9C%E6%89%A9%E5%B1%95%E2%80%9DWordPress%E7%8E%B0%E6%9C%89%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E4%BB%A3%E7%A0%81%E5%87%BA%E9%94%99%EF%BC%8C%E5%AE%83%E7%9A%84%E7%94%A8%E5%A4%84%E5%BA%94%E8%AF%A5%E6%98%AF%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%82%E6%8E%A5%E7%82%B9%EF%BC%8C%E4%BB%A5%E4%BE%BF%E8%83%BD%E5%A4%9F%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E8%BF%9E%E6%8E%A5WordPr" title="Digg"><img src="http://tossp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html" title="Sphinn"><img src="http://tossp.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://delicious.com/post?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;notes=WordPress%E7%9A%84hook%E6%98%AF%E9%9D%9E%E5%B8%B8%E6%9C%89%E6%9C%89%E7%94%A8%E6%9C%89%E7%89%B9%E5%88%AB%E5%A5%BD%E7%8E%A9%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E5%8F%AF%E4%BB%A5%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BB%A3%E7%A0%81%E2%80%9C%E6%89%A9%E5%B1%95%E2%80%9DWordPress%E7%8E%B0%E6%9C%89%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E4%BB%A3%E7%A0%81%E5%87%BA%E9%94%99%EF%BC%8C%E5%AE%83%E7%9A%84%E7%94%A8%E5%A4%84%E5%BA%94%E8%AF%A5%E6%98%AF%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%82%E6%8E%A5%E7%82%B9%EF%BC%8C%E4%BB%A5%E4%BE%BF%E8%83%BD%E5%A4%9F%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E8%BF%9E%E6%8E%A5WordPr" title="del.icio.us"><img src="http://tossp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.facebook.com/share.php?u=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;t=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions" title="Facebook"><img src="http://tossp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;annotation=WordPress%E7%9A%84hook%E6%98%AF%E9%9D%9E%E5%B8%B8%E6%9C%89%E6%9C%89%E7%94%A8%E6%9C%89%E7%89%B9%E5%88%AB%E5%A5%BD%E7%8E%A9%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E5%8F%AF%E4%BB%A5%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BB%A3%E7%A0%81%E2%80%9C%E6%89%A9%E5%B1%95%E2%80%9DWordPress%E7%8E%B0%E6%9C%89%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E4%BB%A3%E7%A0%81%E5%87%BA%E9%94%99%EF%BC%8C%E5%AE%83%E7%9A%84%E7%94%A8%E5%A4%84%E5%BA%94%E8%AF%A5%E6%98%AF%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%82%E6%8E%A5%E7%82%B9%EF%BC%8C%E4%BB%A5%E4%BE%BF%E8%83%BD%E5%A4%9F%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E8%BF%9E%E6%8E%A5WordPr" title="Google Bookmarks"><img src="http://tossp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="mailto:?subject=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;body=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html" title="email"><img src="http://tossp.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.haohaoreport.com/submit.php?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions" title="Haohao"><img src="http://tossp.com/wp-content/plugins/sociable/images/haohao.png" title="Haohao" alt="Haohao" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.mister-wong.com/addurl/?bm_url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;bm_description=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;plugin=soc" title="MisterWong"><img src="http://tossp.com/wp-content/plugins/sociable/images/misterwong.png" title="MisterWong" alt="MisterWong" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.printfriendly.com/print?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;partner=sociable" title="PDF"><img src="http://tossp.com/wp-content/plugins/sociable/images/pdf.png" title="PDF" alt="PDF" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://ping.fm/ref/?link=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&amp;body=WordPress%E7%9A%84hook%E6%98%AF%E9%9D%9E%E5%B8%B8%E6%9C%89%E6%9C%89%E7%94%A8%E6%9C%89%E7%89%B9%E5%88%AB%E5%A5%BD%E7%8E%A9%E7%9A%84%E4%B8%9C%E8%A5%BF%EF%BC%8C%E5%9B%A0%E4%B8%BA%E5%AE%83%E4%BB%AC%E5%8F%AF%E4%BB%A5%E7%94%A8%E4%BD%A0%E8%87%AA%E5%B7%B1%E7%9A%84%E4%BB%A3%E7%A0%81%E2%80%9C%E6%89%A9%E5%B1%95%E2%80%9DWordPress%E7%8E%B0%E6%9C%89%E7%9A%84%E5%8A%9F%E8%83%BD%E3%80%82%E4%BD%86%E6%98%AF%EF%BC%8C%E5%BD%93%E4%BB%A3%E7%A0%81%E5%87%BA%E9%94%99%EF%BC%8C%E5%AE%83%E7%9A%84%E7%94%A8%E5%A4%84%E5%BA%94%E8%AF%A5%E6%98%AF%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E7%9A%84%E6%8C%82%E6%8E%A5%E7%82%B9%EF%BC%8C%E4%BB%A5%E4%BE%BF%E8%83%BD%E5%A4%9F%E5%88%97%E5%87%BA%E6%89%80%E6%9C%89%E8%BF%9E%E6%8E%A5WordPr" title="Ping.fm"><img src="http://tossp.com/wp-content/plugins/sociable/images/ping.png" title="Ping.fm" alt="Ping.fm" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://shuqian.qq.com/post?jumpback=1&title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&uri=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html" title="QQ书签"><img src="http://tossp.com/wp-content/plugins/sociable/images/qq.png" title="QQ书签" alt="QQ书签" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://feeds.feedburner.com/imt86" title="RSS"><img src="http://tossp.com/wp-content/plugins/sociable/images/rss.png" title="RSS" alt="RSS" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&amp;title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions" title="StumbleUpon"><img src="http://tossp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://twitter.com/home?status=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions%20-%20http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html" title="Twitter"><img src="http://tossp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions" title="豆瓣"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban.png" title="豆瓣" alt="豆瓣" class="sociable-hovers" /></a>
	<a rel="nofollow"  href="http://www.douban.com/recommend/?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&title=WP%3A%E5%88%97%E5%87%BAWordPress%E7%9A%84%E6%89%80%E6%9C%89hooked%20functions&n=1" title="豆瓣九点"><img src="http://tossp.com/wp-content/plugins/sociable/images/douban9.png" title="豆瓣九点" alt="豆瓣九点" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-list-all-hooked-functions-of-wordpress.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
