<?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>Tue, 10 Jan 2012 10:33:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://tossp.com/?pushpress=hub'/>
		<item>
		<title>WP:主题Tzone上线测试</title>
		<link>http://tossp.com/wp-theme-tzone-on-line-test.html</link>
		<comments>http://tossp.com/wp-theme-tzone-on-line-test.html#comments</comments>
		<pubDate>Fri, 17 Dec 2010 10:48:36 +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/?p=2968</guid>
		<description><![CDATA[这篇日志在2011-05-25 18:49:07最后一次修订。主题 Tzone
WordPress主题 Tzone缩略图
新做的Tzone主题，依然是采用的Hybrid框架，恩。。。模仿的QQ ZONE的一个样式。具体的样子，就是现在的样子。。。。
太久没有做这东西了，感觉生疏了很多
<div class="clear"></div><a href="http://tossp.com/wp-theme-tzone-on-line-test.html" title="WP:主题Tzone上线测试" rel="external" class="more-link">阅读全文-—共570字</a><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1" color="#105F94" style="display: block !important; padding: 20px 0 5px !important;">砼砼猜你喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WP:仿的主题I'm t green的发布会" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Ftossp.com%2Fwp-imitation-of-the-theme-i-m-t-green-the-conference.html&from=http%3A%2F%2Ftossp.com%2Fwp-theme-tzone-on-line-test.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #aaaaaa !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/13/13914898.jpg" width="96px" height="96px" /><br />
                        <font size="-1"  style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WP:仿的主题I'm t green的发布会</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #aaaaaa !important;">
                    <a target="_blank" title="WP主题：Hybrid  Version 0.6.1发布" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Ftossp.com%2Fwp-theme-hybrid-version-0-6-1-released.html&from=http%3A%2F%2Ftossp.com%2Fwp-theme-tzone-on-line-test.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #aaaaaa !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2010/12/10/1215903.png" width="96px" height="96px" /><br />
                        <font size="-1"  style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WP主题：Hybrid  Version 0.6.1发布</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #aaaaaa !important;">
                    <a target="_blank" title="WP:列出WordPress的所有hooked functions" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Ftossp.com%2Fwp-list-all-hooked-functions-of-wordpress.html&from=http%3A%2F%2Ftossp.com%2Fwp-theme-tzone-on-line-test.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #aaaaaa !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/08/28/3970700.gif" width="96px" height="96px" /><br />
                        <font size="-1"  style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WP:列出WordPress的所有hooked functions</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #aaaaaa !important;">
                    <a target="_blank" title="新主题One Blue~" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Ftossp.com%2Fone-blue-new-topic.html&from=http%3A%2F%2Ftossp.com%2Fwp-theme-tzone-on-line-test.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #aaaaaa !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/13/13916267.jpg" width="96px" height="96px" /><br />
                        <font size="-1"  style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">新主题One Blue~</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #aaaaaa !important;">
                    <a target="_blank" title="WP:WordPress2.7中admin用户密码遗忘的处理" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Ftossp.com%2Fwp-wordpress27-in-admin-user-password-forgotten-treatment.html&from=http%3A%2F%2Ftossp.com%2Fwp-theme-tzone-on-line-test.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #aaaaaa !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2012/01/14/13928682.jpg" width="96px" height="96px" /><br />
                        <font size="-1"  style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WP:WordPress2.7中admin用户密码遗忘的处理</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<div class="revised alert">这篇日志在<abbr title="星期三, 五月 25th, 2011, 6:49 下午">2011-05-25 18:49:07</abbr>最后一次修订。</div><br /><p>主题 Tzone</p>
<p>WordPress主题 Tzone缩略图</p>
<p>新做的Tzone主题，依然是采用的Hybrid框架，恩。。。模仿的QQ ZONE的一个样式。具体的样子，就是现在的样子。。。。</p>
<p>太久没有做这东西了，感觉生疏了很多</p>
<p>左选右选的，最后还是做了这个绿色的主题，本来还弄了一个紫色，实在是感觉像是女孩子用的，最后给抛弃了</p>
<p>这次最大的目标是，做好一个适合自己的模板，以后就改改颜色、换换图片就好了</p>
<p>本来计划了大把时间搞这玩儿的，突然有了任务，只好暂时搁下这东西了</p>
<p>只能是算完成基础功能，作为一个残次品，额。。。预览版或者测试版。。。。慢慢的一步步的调试吧<br />
已完成</p>
<p>现在暂时做好的功能：</p>
<p>同步日志到QQ空间；<br />
顶部工具栏完工20%；<br />
视频发布；<br />
CSS样式完工70%；<br />
JS特效完工20%；<br />
基本完成对Hybrid框架的调整。<br />
后台功能制作完工65%</p>
<p>计划</p>
<p>剩下要做的东西还有很多，暂时列个项，免得以后忘了：<br />
同步微博信息<br />
完成顶部工具栏制作（含JS）<br />
侧边栏CSS调整<br />
侧边栏加入更多信息（热门推荐、浏览最多、评论最多、热心同学等等）<br />
日志评论显示楼层<br />
仿ddig功能<br />
评论框加入表情标签按钮和快速html按钮<br />
头部右侧添加订阅按钮<br />
整合GG搜索<br />
页面载入特效（JS）<br />
加入伪装ajax效果（JS）<br />
CSS细节调整</p>
<p>不想了，大概就是这些，明天还要忙碌的一天，睡觉了。</p>
<p>最后，欢迎各路英雄豪杰测试，并留下你的建议</p>
<hr /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-theme-tzone-on-line-test.html">2011 年 06 月 23 日</a>, <a href='http://www.4tradingfans.com/liguijiang/' rel='external nofollow' class='url'>小李飞刀</a> writes: 不错的，看看</li><li><a href="http://tossp.com/wp-theme-tzone-on-line-test.html">2011 年 07 月 28 日</a>, cser writes: 很不错，请问朋友会共享发布吗？</li><li><a href="http://tossp.com/wp-theme-tzone-on-line-test.html">2011 年 09 月 27 日</a>, <a href='http://www.yesure.net' rel='external nofollow' class='url'>yesureadmin</a> writes: 还真像QQ空间啊</li><li><a href="http://tossp.com/wp-theme-tzone-on-line-test.html">2011 年 10 月 06 日</a>, <a href='http://tossp.com' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-3738" rel="nofollow">cser:</a>就怕没人要，哈哈
@<a href="#comment-4609" rel="nofollow">yesureadmin:</a>嘿嘿，QQ空间的设计还是比较经典的，虽然运营不怎么样</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/replacement-of-the-official-domain-name-for-frozenscn.html" rel="bookmark" title="Permanent Link: 域名正式更换为frozens.cn">域名正式更换为frozens.cn</a><br />作为凤凰计划的一部分，最为重要的域名更换已经开始，12ice.cn暂时沿用一段时间，6个月之类将会完全停止使用

新的域名frozens.cn已经通过了DNS解析，开始正式启用:-D

frozens.cn邮箱系统上架，12ice.cn同步停止

原PJ的数据也开始逐步整理了，计划在7天内整理完毕，

期间可能会有一些数据丢失，请通过admin[]frozens.cn告诉我，谢谢

12ice.cn已经成为过去

原页面的跳转页面编写完毕，已经正式启用

&lt;待续。。。&gt;</li><li><a href="http://tossp.com/wp-one-theme.html" rel="bookmark" title="Permanent Link: WP:one主题">WP:one主题</a><br />算下来用WordPress也快一年了，期间风风火火的换了很多的主题，但也总是这不满意，那不满意的

每个不同的主题，打印页面的DIV结构也不近相同，由于不是自己写的，每次，对别人主题的修改总是让我大大的费神啊

人就是这样犯贱，总是要逼着，才能做一些事儿，估计大多数人都我和我一样有很严重的牙膏情节——挤一下，出来一点，呵呵

第一做的这个主题就取名叫“one”了，以hybrid为原型修改，hybrid是我很喜欢的一个主题框架，但是要付费才提供帮助，而且他的功能对于我来说太过于强大了，one可以理解为hybrid的简化版吧，当然是加入了我喜欢的功能的简化版，呵呵

这里就是记录“one”成长的心路历程的地方，但估计记录的不会太多，最多就只记录一个提要吧，大多数都写在SVN里面，和我一样的菜鸟可以去看看，估计对您会有一些帮助。

update @ 2009年4月11日4:22:53

我真的就如小蜜蜂一样的勤劳，评论样式框架整理完毕，这个主题的基本样式就这样了，然后，我是先加图片，还是先加AJAX呢?分类导航条，还要不要呢？这些都是问题啊，，，囧

真巧合啊，基本两天一记录，忽忽

update @2009年4月9日20:14:40

主体搭建完成，开始上站测试，这次是仿的Theme Codename H的主题样式，感谢一下。待修改的地方还有好多，路漫漫其修远啊

update @ 2009年4月7日14:02:43

主题框架基本搭建完成，开始构建CSS文件和优化函数结构。。。苍天，CSS心中的痛啊~~~囧
PS：感谢eiven童鞋提供CSS样式蓝本

update @2009年4月5日15:56:26

开始构建主题框架，以hybrid为原型，优化函数，去掉对子主题支持部分</li><li><a href="http://tossp.com/share-thank-the-network-to-provide-free-space.html" rel="bookmark" title="Permanent Link: 感谢 合租网 提供免费空间">感谢 合租网 提供免费空间</a><br />感谢合租网提供免费空间

感谢合租网提供免费空间

空间规格

30M双线空间
FTP上传
CPU 峰值8％，最大带宽1024K.
完美支持各种ASP、PHP
绑定目录数量1（可建立2个独立的网站）
浙江杭州双线机房100M独享带宽接入 保证每服务器稳定运行的站点数量

PS：目前好像暂停注册了哦

  今天发现域名都已经停用了。。。。。

修订于：2008年7月30日19:12:03</li><li><a href="http://tossp.com/wp-the-use-of-hybrid-own-theme-wordpress.html" rel="bookmark" title="Permanent Link: WP:使用Hybrid做自己的wordpress主题">WP:使用Hybrid做自己的wordpress主题</a><br />这篇日志开始step by step 的介绍怎么使用Hybrid做自己的wp主题。

　　一个Wordpress的子主题就像任何其他Wordpress主题一样，你可以把它们放在你的博客的主题目录（/wp-content/themes）下，然后在主题控制面板激活它们。它们同样拥有存在图片、脚本、截图（screenshot）、CSS的文件夹。
　　唯一不同的地方是子主题基本上不需要任何主题文件（header.php, index.php, footer.php, single.php等）。这是我们为什么不需要使用PHP的另一个原因。

首先，我们要做几个准备

	新主题是Hybrid的子主题，所以我们要先确定已经上传到了/wp-content/themes/目录中
	准备好了PHP编辑软件，还是在推荐一次啊我是用的这个Notepad++，这里我就不提供下载地址了，自己去找吧
	新建一个子主题的目录，比如，我们在/wp-content/themes新建一个名为“One Blue”的文件夹，OK，这个就是由于存放我们子主题的地方了~

这样一个简单的，准备就OK了，接下来我们开始建立第一个文件，“style.css”文件，这个文件名是必须的，不可修改哦

写下这样的信息：
/*
Theme Name: one</li><li><a href="http://tossp.com/encrypted-log-test.html" rel="bookmark" title="Permanent Link: 加密日志测试!!!">加密日志测试!!!</a><br />加密日志测试!!!


完全成功[birthday]</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-theme-tzone-on-line-test.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WP插件:万能播放器插件Anyplayer 1.0.5[更新]</title>
		<link>http://tossp.com/wp-plugin-universal-player-plug-in-anyplayer-1-0-5-updated.html</link>
		<comments>http://tossp.com/wp-plugin-universal-player-plug-in-anyplayer-1-0-5-updated.html#comments</comments>
		<pubDate>Wed, 15 Dec 2010 10:49:26 +0000</pubDate>
		<dc:creator>砼砼</dc:creator>
				<category><![CDATA[我的轨迹]]></category>
		<category><![CDATA[部落格]]></category>
		<category><![CDATA[Anyplayer]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[插件]]></category>

		<guid isPermaLink="false">http://tossp.com/?p=2971</guid>
		<description><![CDATA[这篇日志在2011-05-25 18:51:42最后一次修订。WordPress中很棒的一款播放器插件，从前年开始使用的，很方便的一款插件。
能在文章中轻松添加Flash, MP3, WMA, WMV, QuickTime等媒体,可自定义展开与折叠。
只须按格式输入媒体的地址与类型, 便能自动使用相应的播放器播放.支持自定义宽, 高, 是否展开。
<div class="clear"></div><a href="http://tossp.com/wp-plugin-universal-player-plug-in-anyplayer-1-0-5-updated.html" title="WP插件:万能播放器插件Anyplayer 1.0.5[更新]" rel="external" class="more-link">阅读全文-—共866字</a>]]></description>
			<content:encoded><![CDATA[<div class="revised alert">这篇日志在<abbr title="星期三, 五月 25th, 2011, 6:51 下午">2011-05-25 18:51:42</abbr>最后一次修订。</div><br /><p>WordPress中很棒的一款播放器插件，从前年开始使用的，很方便的一款插件。</p>
<p>能在文章中轻松添加Flash, MP3, WMA, WMV, QuickTime等媒体,可自定义展开与折叠。</p>
<p>只须按格式输入媒体的地址与类型, 便能自动使用相应的播放器播放.支持自定义宽, 高, 是否展开。</p>
<p>支持国际化.</p>
<p>在非TinyMCE编辑器或HTML编辑状态, 也可手工输入媒体标签:</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#91;</span>anyplayer<span style="color: #339933;">:</span>type<span style="color: #339933;">=</span>swf url<span style="color: #339933;">=</span>http<span style="color: #339933;">:</span><span style="color: #666666; font-style: italic;">//xxx.com/xxx/xxx.swf width=480 height=400 open=yes title=my_video]</span></div></div>
<p>所有参数值直接在等号后面输入, 不用单引号或双引号括起, 参数值中不能包含空格. 参数含义如下:</p>
<p>* type:   媒体类型, 非必须参数, 备选值为SWF, FLV, MP3, WMA, WMV, QT, 大小写无关.<br />
* url:    媒体url, 必须参数, 如果未设置type参数, 将根据url参数中的文件后缀自行确定媒体类型, 大小写敏感.<br />
* width:  播放器宽度, 非必须参数, 必须是数字. 该参数仅对视频媒体有效, 默认是480.<br />
* height: 播放器高度, 非必须参数, 必须是数字. 该参数仅对视频媒体有效, 默认是400.<br />
* open:   是否展开, 备选值为yes, no, auto. 参数值为auto或不使用该参数时, 页面中第一个anyplayer对象将自动展开.<br />
* title:  媒体标题, 非必须参数, 将出现在媒体上方.</p>
<p>这次是从0.0.4直接升级到1.0.0，做出了很多的修改</p>
<ol>
<li>支持通过编辑器按钮打开Anyplayer界面插入播放器<strong>[这个超赞]</strong></li>
<li>支持在RSS中播放视频与音频</li>
<li>新增open参数, 支持自定义是否展开</li>
<li>新增title参数, 支持显示媒体标题</li>
<li>支持自动侦测媒体类型, 可省略type参数</li>
<li>取消了对RM格式支持(RM作为流媒体已经out了)</li>
<li>支持国际化</li>
<li>其它优化</li>
</ol>
<p>在前年刚使用这款插件的时候<a title="WordPress插件： AnyPlayer" rel="bookmark" href="http://tossp.com/wordpress-plug-ins-anyplayer.html" target="_blank">WordPress插件： AnyPlayer</a><br />
就介绍过一次了。</p>
<p>更具体的说明和下载地址，请走<a title="传送门" href="http://cpiz.com/blog/2010/12/anyplayer-1/" target="_blank">传送门</a> 。</p>
<p>最后，感谢cpiz，为我们提供了这样便捷的插件</p>
<hr /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-plugin-universal-player-plug-in-anyplayer-1-0-5-updated.html">2011 年 10 月 16 日</a>, <a href='http://www.qmusic.me' rel='external nofollow' class='url'>Q Music</a> writes: 好东西收藏了。</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/flash-gtman-see-parents.html" rel="bookmark" title="Permanent Link: Flash:GTMAN 见家长">Flash:GTMAN 见家长</a><br />昨天提到的这个，嘿嘿  [anyplayer:type=swf url=http://player.youku.com/player.php/sid/XMTExODMyNDA=/v.swf]</li><li><a href="http://tossp.com/adult-male-version-of-the-ceremony.html" rel="bookmark" title="Permanent Link: 男生版成人礼">男生版成人礼</a><br />男生版成人礼，笑喷3次，囧 [anyplayer:type=swf url=http://player.youku.com/player.php/sid/XMTM4NzA4/v.swf]</li><li><a href="http://tossp.com/writing-this-buddy-chengdu-it-is-simply-not-before-the.html" rel="bookmark" title="Permanent Link: 这哥们写的成都~那简直不摆了">这哥们写的成都~那简直不摆了</a><br />这几爷子，把成都唱安逸了哈

[anyplayer:type=swf url=http://player.youku.com/player.php/sid/184404/v.swf width=400 height=300]</li><li><a href="http://tossp.com/jay-online-spoof-of-daoxiang-change-meat-miles-xiangpiao-national-hongbian.html" rel="bookmark" title="Permanent Link: 网友恶搞周董《稻香》变《肉香》 &#8220;香飘万里&#8221;红遍全国">网友恶搞周董《稻香》变《肉香》 &#8220;香飘万里&#8221;红遍全国</a><br />翻唱：笨鸡鸡  [anyplayer:type=swf url=http://player.youku.com/player.php/sid/XNTEwOTQ1ODg=/v.swf]</li><li><a href="http://tossp.com/wordpress-plug-ins-anyplayer.html" rel="bookmark" title="Permanent Link: WordPress插件： AnyPlayer">WordPress插件： AnyPlayer</a><br />前言
AnyPlayer 0.0.3是为了在日志中添加多媒体文件，安装的一个插件，编写这款插件的大大cpiz也在国内的，这款插件带折叠效果哦。以前随时用，不过最近一直没找到我喜欢的类型的歌，难道真的应验了那句&ldquo;在好的肖邦，也然不出老子的悲伤&rdquo;？好囧。。。。
使用说明

在文章编辑模式入插入［anyplayer:type=swf url=http://xxxx.com/swf width=400 height=300］，注意，两边要使用半角方括号。

type是媒体类型，支持swf flv mp3 wma wmv rm</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-plugin-universal-player-plug-in-anyplayer-1-0-5-updated.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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>换域名以后的第二件事儿就是跳转保，同样的修改</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.htaccess</div></div>
<p>文件实现</p>
<p>添加了这样的两行代码</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 23 日</a>, <a href='http://www.derekblog.com' rel='external nofollow' class='url'>Derek</a> writes: 说换就换了啊，旧域名多少有感情吧 :mrgreen:</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 24 日</a>, <a href='http://im-t.net/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-7754" rel="nofollow">Derek:</a>心动就要行动 :grin:</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 25 日</a>, <a href='http://www.zrl.name' rel='external nofollow' class='url'>瓜瓜</a> writes: 唉，换域名和换衣服一样啦。</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 25 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: 动作好快，怪不得feed一下刷出来好多</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 26 日</a>, <a href='http://blueandhack.com' rel='external nofollow' class='url'>blueandhack</a> writes: 好多人都换域名了~
这两天见到3个了~~</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 26 日</a>, <a href='http://immx.net' rel='external nofollow' class='url'>soping</a> writes: 我也换域名了，想把文章的链接也转向到新域名的对应链接，不知道怎么做……</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2010 年 06 月 28 日</a>, <a href='http://blog.xilita.com' rel='external nofollow' class='url'>西丽塔</a> writes: wp换域名不用到phpadmin里去的，直接在后台 的常规选项里改来过就是了，
而且也不用自己再写.htaccess的，</li><li><a href="http://tossp.com/wp-volume-change-the-domain-of-the.html">2011 年 05 月 19 日</a>, <a href='http://tossp.com' rel='external nofollow' class='url'>砼砼</a> writes: 我这评论框好丑啊。。。</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/cn-domain-name-registration-only-one-yuan-national-domain-takeoff-operations-launched.html" rel="bookmark" title="Permanent Link: CN域名注册仅1元 &quot;国家域名腾飞行动&quot;启动">CN域名注册仅1元 &quot;国家域名腾飞行动&quot;启动</a><br />2007年3月7日，在信息产业部、国务院信息化工作办公室、国务院新闻办公室、中国科学院等国家主管机构的指导支持下，中国互联网络信息中心（CNNIC）在京召开新闻发布会，正式启动国家域名腾飞行动，宣布从即日起至5月31日，新注册CN域名第一年将享受1元钱的注册价格。

    本次“CN域名一元体验活动暨国家域名腾飞行动”是中国互联网络信息中推出的旨在推动CN域名全民应用，实现国家域名腾飞，推动我国互联网经济发展的重大行动。

    2007年，我国互联网的发展已经迎来了新的高速拐点，网络经济规模瓶颈急需打破，作为基础资源的国家域名.CN同样也处在了一个临界点上。而网民拥有域名的比例和互联网应用的程度成正比，1元体验CN域名的活动将会释放众多网民对互联网应用的需求，极大提升我国的网络应用程度和网络经济规模。

 </li><li><a href="http://tossp.com/the-latest-windows-installation-cd-label-information-campaign.html" rel="bookmark" title="Permanent Link: 最新Windows系列安装光盘卷标资料">最新Windows系列安装光盘卷标资料</a><br />最近SP3出来了，为了满足各位追求完美的朋友的需求，把珍藏的这个资料（其实也无所谓什么好东西）发出来给大家看看Windows 2000MD5:W2PFPP_CN: 552819afd01412a9f81dfb021aa5dfc5W2SFPP_CN: e3b32183ce4b9ade060d07954d8ba1d0W2AFPP_CN: 7af2e3a6c0e091e461852044733d751cW2PFPP_EN: 42b55813ded7d4a6ede62f368bd5ceb7W2PSPP_EN: 356fee31ddcceea2df0cd7feae4e9354W2AFPP_EN: 6ffd0d466ca048e29e029fae5fe18ea9W2PSEL_CN: 99759f7ef53af8f8f414cb29d78b4413W2PSEL_EN: 11d1c883aa3372df878c5d0d88332fb0-------------------------------------------------------Windows</li><li><a href="http://tossp.com/for-the-last-time-the-domain-name.html" rel="bookmark" title="Permanent Link: 最后一次换域名">最后一次换域名</a><br />第一个域名：12ice.cn   第二个域名：frozens.cn  而现在正在用的域名onefrozen.com也就是在昨天，不知道发了什么病去买的域名，花了7（6.99）刀.。。价钱和CN域名差不多在name.com买的，  onefrozen.com应该就定下来了吧，说好了这辈子不换域名了，哇哈哈哈  其实主要原因还是com域名容易申请到一些服务。方便呀</li><li><a href="http://tossp.com/jay-online-spoof-of-daoxiang-change-meat-miles-xiangpiao-national-hongbian.html" rel="bookmark" title="Permanent Link: 网友恶搞周董《稻香》变《肉香》 &#8220;香飘万里&#8221;红遍全国">网友恶搞周董《稻香》变《肉香》 &#8220;香飘万里&#8221;红遍全国</a><br />翻唱：笨鸡鸡  [anyplayer:type=swf url=http://player.youku.com/player.php/sid/XNTEwOTQ1ODg=/v.swf]</li><li><a href="http://tossp.com/firefox-bookmarks-3-intelligent-use-of-skills.html" rel="bookmark" title="Permanent Link: 火狐3智能书签使用技巧">火狐3智能书签使用技巧</a><br />创建自己的 Smart Bookmarks：打开书签管理器：在 FF3 的菜单栏中点击 Bookmarks，下拉菜单中选中 Organize Bookmarks： 在弹出的书签管理器中的菜单栏中选中 New</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-volume-change-the-domain-of-the.html/feed</wfw:commentRss>
		<slash:comments>8</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>其实准确的说，并不是添加到了编辑器，而是添加到了wordpress的“上传/插入”栏。</p>
<p>这篇日志主要介绍，怎样在“添加文新章”、“编辑文章”和“添加新页面”等后台页面中，添加自定义按钮，而不需要修改wordpress的核心文件。</p>
<p>在这里是以添加“CC视频”按钮为例。</p>
<p>昨天，在帮忙做一个新BLOG的时候，遇到的问题。该BLOG需要视频功能，最后，选定的是“CC视频”，需要在后台添加一个上传视频的按钮实现和WP接合。</p>
<p>在一阵狂GG以后，决定hook函数，直接把以下的代码插入主题的</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">functions.php</div></div>
<p>文件即可。</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 />
<br />
<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">添加按钮到WordPress编辑器</p></div>
<p>直接在wordpress后台上传的视频：</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 /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 03 日</a>, <a href='http://www.derekblog.com' rel='external nofollow' class='url'>derek</a> writes: 代码狂人.....- -</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 04 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: 研究下
我之前不会修改wp
需要快速插入的代码都放在浏览器里面</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 06 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6677" rel="nofollow">derek:</a>谢谢
@<a href="#comment-6685" rel="nofollow">A.shun:</a>但是要改编辑器貌似还是只有改核心文件</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 07 日</a>, <a href='http://blog.mosoul.cn' rel='external nofollow' class='url'>墨弦音</a> writes: 学习一下，回去自己搞一下</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 10 日</a>, <a href='http://www.goldzhan.com' rel='external nofollow' class='url'>Firm</a> writes: 最后那个是nobody吧，俺最喜欢的nobody的那5个小女生</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 11 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 这么简单？？？？？我以为很复杂，但还是不会</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 11 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6715" rel="nofollow">zwwooooo:</a>你是专程来打击我的么？
@<a href="#comment-6713" rel="nofollow">Firm:</a>呼呼同好
@<a href="#comment-6699" rel="nofollow">墨弦音:</a>相信你！</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 11 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: @<a href="#comment-6716" rel="nofollow">砼砼:</a>是的，话说你的评论框怎么不记住我的用户信息呢？</li><li><a href="http://tossp.com/wp-add-a-button-to-the-wordpress-editor.html">2010 年 02 月 16 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6717" rel="nofollow">zwwooooo:</a>我也很纠结不知道是哪出错了</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/cc-screen-in-the-successful-installation-wordpress251.html" rel="bookmark" title="Permanent Link: CC视屏在wordpress2.5.1下安装成功">CC视屏在wordpress2.5.1下安装成功</a><br />按照官方给的教程修改代码，老是要错位，很郁闷呀

下面的这段代码是CC视频官方给出的

&lt;!-- cc视频插件代码 --&gt;&lt;object width='72' height='24'&gt;&lt;param name='wmode' value='transparent' /&gt;&lt;param name='allowScriptAccess' value='always'</li><li><a href="http://tossp.com/a-sustained-sophisticated-wordpress-wordpress-26-beta3-celebrate-the-success-of-the-installation.html" rel="bookmark" title="Permanent Link: 诡异的WordPress（庆祝WordPress 2.6-beta3安装成功）">诡异的WordPress（庆祝WordPress 2.6-beta3安装成功）</a><br />在安装2.6-beta2的时候老是不成功 ，进不了后台，郁闷

今天在SVN上发现2.6-beta3出来的安装后就成功，哎~终于用上最新的版本了，呵呵

和2.6-beta1比较木有发现外部功能上有什么更新的，据说是内部优化了

具体优化了什么不知道。。。。也没时间去看源码，总体来说感觉还是挺不错的是比以前快了许多 :love:

期待早日出正式版，beta的感觉不怎么爽呀</li><li><a href="http://tossp.com/wp-integrate-google-custom-search.html" rel="bookmark" title="Permanent Link: WP:整合 Google 自定义搜索">WP:整合 Google 自定义搜索</a><br />整合 Google 自定义搜索到 WordPress 中好像有很多好处，可以减少数据库查询，因为搜索结果是 Google 提供的，不用再去数据库中搜索了。能够更加全面的搜索，WordPress 目前只能搜索 post。另外还可以在搜索结果中绑定 Google</li><li><a href="http://tossp.com/wordpress-plug-ins-alimama-deluxe.html" rel="bookmark" title="Permanent Link: WordPress插件： Alimama Deluxe!">WordPress插件： Alimama Deluxe!</a><br />前言
&nbsp;Alimama Deluxe! 1.026是我很喜欢的一款插件，他的原始意图是使站长可以轻松的挂接阿里妈妈的广告，作者的原话是这样写的

Alimama Deluxe 是一款应用于 WordPress 平台中，辅助发布阿里妈妈广告位的插件。Alimama Deluxe 可以通过 Alimama</li><li><a href="http://tossp.com/wordpress-custom-fields-function-and-use.html" rel="bookmark" title="Permanent Link: WordPress 自定义字段的功能与使用">WordPress 自定义字段的功能与使用</a><br />总是这样健忘，今天想搞自定义字段了，却忘记函数了。。。。好囧

鸟语的看着特别费神，所以就弄了个汉化版的了，哎 :mad:

WordPress codex 文档中提到了4个非常好的例子：
自定义字段是如何工作的
当你创建或者编辑日志/页面的时候，你可以增加一个自定义字段，一个自定义字段有两个显而易见的变量 --- 键 ( key ) 和值</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></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>这篇日志主要是简单的演示下在wordpress 2.9+中，对于新的表的使用</p>
<p>主要实现的功能：在评论中支持使用QQ头像～</p>
<p>主程序：wordpress 2.9</p>
<p>主题：hybrid 0.7框架 子主题是我自己弄的一个支持AJAX评论的的主题</p>
<p>这是一篇WP 2.9+的档案，这只是一个简单的演示，只是给大家提供一些思路，在代码的上修改的余地很大（毕竟我自己都觉得代码不够精炼），欢迎演绎或者提供更好的想法。</p>
<p>当然，欢迎拍砖～</p>
<h1>正文</h1>
<h2>准备工作</h2>
<p>首先麻花腾提供了一个接口，可以通过</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://face7.qun.qq.com/cgi/svr/face/getface?&amp;amp;uin=QQ号码</div></div>
<p>这样一个地址获得当前QQ的JPG格式图片头像，这位我们实现这个功能提供了前提。</p>
<p>首先，要做的是获取用户的QQ号，这里有两种情况</p>
<ol>
<li>注册用户的资料，只能有用户在后台自己更新</li>
<li>游客的资料，我选择的是在发表评论的时候，填入</li>
</ol>
<p>OK，在用户填写了足够的信息，并且用户把数据POST过来我们就可以拿到QQ号了。</p>
<p>由于是远程调用，所以，我们还要对QQ进行一些加密的操作，以保护隐私。</p>
<p>嗯嗯，思路大概就是这个样子的了，下面看看代码实现。</p>
<h2>step by step</h2>
<p>请注意看代码中的注释，我相信这些代码不难理解</p>
<p>打开主题的</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">functions.php</div></div>
<p>文件</p>
<p>首先，是对注册用户的信息添加，使用下面这段代码让我们在</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">http://tossp.com/wp-admin/profile.php</div></div>
<p>中添加一个BOX，用于获取注册用户的QQ号</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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><a href="http://www.php.net/ereg"><span style="color: #990000;">ereg</span></a><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 />
<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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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 />
<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 />
<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 />
<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 />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/is_object"><span style="color: #990000;">is_object</span></a><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 />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$qq</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/base64_encode"><span style="color: #990000;">base64_encode</span></a><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 />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000088;">$a</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/preg_replace"><span style="color: #990000;">preg_replace</span></a><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> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><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> <a href="http://www.php.net/str_replace"><span style="color: #990000;">str_replace</span></a><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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; <a href="http://www.php.net/srand"><span style="color: #990000;">srand</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>double<span style="color: #009900;">&#41;</span><a href="http://www.php.net/microtime"><span style="color: #990000;">microtime</span></a><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> <a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/rand"><span style="color: #990000;">rand</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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> ^ <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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> <a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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> ^ <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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>对于hybrid主题框架的用户，这样改是不够的，还要重写hybrid_avatar：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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 />
<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>打开</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">comment-form.php</div></div>
<p>文件（这个是hybrid0.7才有的），修改你的评论提交表，或者修改你对应位置的代码</p>
<p>先把这个文件从hybrid复制到你子主题里面，找到：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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，以上就已经获取到了评论用户的QQ，并添加了一些必须的函数</p>
<p>打开主题的</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">comments-ajax.php</div></div>
<p>文件，这个文件是用于支持AJAX评论的服务端文件，这里我们一样要修改他的数据获取</p>
<p>这个文件也许你的主题没有也许和我的不一样，那就只能是参照这修改你blog更目录下</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">wp-comments-post.php</div></div>
<p>文件（这个方式是不推荐的），或者想办法HOOK他这个我还没具体看过。如果你用HOOK实现了请告诉我。</p>
<p>我们从获取游客的qq开始，找到：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strip_tags"><span style="color: #990000;">strip_tags</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strip_tags"><span style="color: #990000;">strip_tags</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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>接下来我们获取注册用户的QQ，找到：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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>校验用户的QQ信息，找到：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 />
<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><a href="http://www.php.net/ereg"><span style="color: #990000;">ereg</span></a><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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 />
<a href="http://www.php.net/setcookie"><span style="color: #990000;">setcookie</span></a><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> <a href="http://www.php.net/time"><span style="color: #990000;">time</span></a><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的根目录上添加一个</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">qqface.php</div></div>
<p>文件，代码如下，用于访问远程文件</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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><a href="http://www.php.net/base64_decode"><span style="color: #990000;">base64_decode</span></a><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><a href="http://www.php.net/ereg"><span style="color: #990000;">ereg</span></a><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> <a href="http://www.php.net/file_get_contents"><span style="color: #990000;">file_get_contents</span></a><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 />
<a href="http://www.php.net/header"><span style="color: #990000;">header</span></a><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> <a href="http://www.php.net/md5"><span style="color: #990000;">md5</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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> ^ <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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><a href="http://www.php.net/strlen"><span style="color: #990000;">strlen</span></a><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> <a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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><a href="http://www.php.net/substr"><span style="color: #990000;">substr</span></a><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 /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 03 日</a>, 星网 writes: 我先沙发！哈哈！</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 03 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: @<a href="#comment-6107" rel="nofollow">星网:</a>果然等到大腿了 :lol:</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 03 日</a>, <a href='http://socekin.cn' rel='external nofollow' class='url'>socekin</a> writes: 技术贴，必须顶
试试QQ头像</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 03 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 出来了，嘿嘿</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 03 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 认真看了下，比较复杂，我的G头像用了缓存，可能要认真折腾一下才能用，有时间有心情折腾时看看了</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://silvermoon7.com' rel='external nofollow' class='url'>托尔·银月</a> writes: 用QQ头像？？？我个人不大喜欢</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.missroc.com' rel='external nofollow' class='url'>Roc</a> writes: 会优先显示哪一个呢</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6131" rel="nofollow">Roc:</a>同时存在的情况下优先显示QQ头像</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.derekblog.com' rel='external nofollow' class='url'>derek</a> writes: 太彪悍了，一点都看不懂......................</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6133" rel="nofollow">derek:</a>我的表达能力就如此有限？。。。。。</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.zhangyan.org' rel='external nofollow' class='url'>小张</a> writes: 不错的东西，我有个WP的CMS，里面的人都是的哥大叔们。。。
基本上都没有用Gravatar托管头像 使用QQ头像是个好办法！</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://qinfei.info' rel='external nofollow' class='url'>秦大少</a> writes: 希望能做成插件发布！</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.lusongsong.com' rel='external nofollow' class='url'>卢松松</a> writes: 我输入QQ了 看看效果咋样</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.sujiong.com' rel='external nofollow' class='url'>苏囧</a> writes: 哥们看到代码头就大了。。。</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6136" rel="nofollow">小张:</a>都是硬编辑的。。。
@<a href="#comment-6141" rel="nofollow">秦大少:</a>貌似我没这能力，呵呵
@<a href="#comment-6144" rel="nofollow">卢松松:</a>效果还行吧？
@<a href="#comment-6145" rel="nofollow">苏囧:</a>额，慢慢来不要急</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.myya.net' rel='external nofollow' class='url'>小T</a> writes: 我的貌似QQ和现在用的头像是一样的看不出差别，这篇折腾的不错</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.myya.net' rel='external nofollow' class='url'>小T</a> writes: 看来有效果</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 04 日</a>, <a href='http://www.derekblog.com' rel='external nofollow' class='url'>derek</a> writes: @<a href="#comment-6135" rel="nofollow">砼砼:</a>是偶看不懂代码.................</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 05 日</a>, <a href='http://www.bestrue.cn' rel='external nofollow' class='url'>网络砖家</a> writes: 哈，代码一大串的。。。</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 05 日</a>, <a href='http://www.bestrue.cn' rel='external nofollow' class='url'>网络砖家</a> writes: 不错，果然出现了我的QQ头像。。。</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 05 日</a>, <a href='http://www.xiankankan.com/' rel='external nofollow' class='url'>先看看</a> writes: 我还没有升级呢，哈哈</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 05 日</a>, <a href='http://7che8.cn' rel='external nofollow' class='url'>聪壹艮</a> writes: 怎一个复杂了得</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 06 日</a>, cxy152376 writes: WP中文論壇上那個QQ頭像插件最初是我隨手寫的, 貌似你參考了它, 嗯?

虧你想得出服務器讀取QQ頭像以避免泄露QQ號碼- -. 不過原始的QQ頭像地址畢竟不是騰訊正式發布的API, 隨時可能失效, 所以意義總歸不大XD.</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 01 月 08 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6191" rel="nofollow">cxy152376:</a>那段代码确实是参考的，是你写的？谢谢提供，其实这篇日志的重点不是QQ头像，重点是在2.9中一些新东西的应用，呵呵就和我所强调的一样，这只是一个演示</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 03 月 01 日</a>, 江海志 writes: 支持了</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 03 月 02 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6827" rel="nofollow">江海志:</a>谢谢</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 03 月 30 日</a>, <a href='http://www.05wl.com' rel='external nofollow' class='url'>网易游戏</a> writes: 我的个神，你太”油菜“了，学习了，哈哈</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 03 月 30 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-7007" rel="nofollow">网易游戏:</a>谢谢</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 04 月 04 日</a>, <a href='http://www.flingyue.com' rel='external nofollow' class='url'>Flingyue</a> writes: 折腾有理啊：）  牛X</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 04 月 05 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-7034" rel="nofollow">Flingyue:</a>折腾快乐～</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 04 月 20 日</a>, <a href='http://www.amseo.net' rel='external nofollow' class='url'>野果子</a> writes: 这个功能做成插件就好了。 :evil:</li><li><a href="http://tossp.com/wp-2-9-in-the-realization-of-comment-on-the-use-qq-picture.html">2010 年 05 月 20 日</a>, 奶气10足 writes: 试一下啊！</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html" rel="bookmark" title="Permanent Link: WP:跨页悬浮显示 @ 评论 (抄袭篇)">WP:跨页悬浮显示 @ 评论 (抄袭篇)</a><br />不得不承认，我是一个极度缺乏创意的人，极度缺乏想象力的人

一觉睡醒闲来无事，又添加了一个比较鸡肋的功能。。。。。

既然添加了，那还是简单的记录一下，添加过程～具体的原理，流程等等就不细说了，需要的童鞋可以和我一样去参考（抄袭）NeoEase的跨页悬浮显示 @ 评论 (代码篇)/（原理篇）

同样的这次还是在hybird的子主题上面添加，其实和普通主题除了评论跨页回调其他的没什么不一样，呵呵

我会尽量写一些注释在代码里面，应该都能看懂了吧。。。

还有，我发现每次我写点东西总是要废话一大篇，哎～习惯了啊。。。。

<div class="note"><div class="noteclassic">@ 回复是个好东西, 因为它结构简单, 处理方便; 嵌套回复则有更友好的用户体验, 可以调动访客回复的积极性. 对</li><li><a href="http://tossp.com/comments-style-skills.html" rel="bookmark" title="Permanent Link: 评论层样式技巧">评论层样式技巧</a><br />一直觉得自己的这个主题的评论样式不是那么的让人满意，刚好今天无意中发现了这个，嘿嘿，就给转过来了，打个标记，以后改了主题也记得

第一步：

在模板中的开始部分的第一个&lt;? php ?&gt;内容中查找：
$oddcomment = 'class="alt" ';

把它改成：
$oddcomment = 'alt'; 

第二步：

接着在&lt;ol&gt;循环中查找：




改成：

< ?php
if</li><li><a href="http://tossp.com/wp-add-custom-fields-log-picture.html" rel="bookmark" title="Permanent Link: WP:自定义字段添加日志图片">WP:自定义字段添加日志图片</a><br />终于发现了一个事实，任何主题在使用了一段时间后，都会产生严重的审美疲劳。其结果就是灰常灰常的想换主题

但令人郁闷的现实是，始终找不到心仪的主题，而对于我来说写一个主题其工程量实在是太浩大了几次尝试后还是选择了放弃。

选择一个不太喜欢的主题，还要修改以适合自己使用，实在是下不鸟决心呀。

就在这样的一个大背景下，做出了一个痛苦的抉择——不换主题鸟~~~~~~~~~~~

然后就开始了我疯狂的修改旅程。这次干的事情是给每个PAGE上的日志添加图片。

在十分痛苦和万分激情中写下了这些丑陋的代码。。。

修改了index.php，single.php，author.php，archive.php，page.php，search.php这几个文件

这里只展示一下index.php中添加的代码，实在太丑陋了，不敢暴露太多呀

[cc lang='php' line_numbers='false' inline='0'] &lt;?php
if ( get_post_meta($post-&gt;ID, 'post_image', true) ) :
 $o_image</li><li><a href="http://tossp.com/wordpress-27-is-coming-we-need-to-do.html" rel="bookmark" title="Permanent Link: WordPress 2.7 来了！我们需要做些什么？">WordPress 2.7 来了！我们需要做些什么？</a><br />前言
无尽的期盼和无尽的等待中，官方宣布2008年11月10日，也就是光棍节的前一天发布，好囧的时间。。。。
但是在今天实在顶不住诱惑，一咬牙，一跺脚，还是升级到了WordPress 2.7-beta2，囧
紧接着麻烦来了，新特性有很多，我们要修改主题，有的插件也可以下班了（警告，谁再说我是插件狂人我会轰杀他的），反正总之一个字：改！
第一步：更新主题
要体验的东西有很多，后台和核心什么的我不懂，所以从主题开始更新
评论样式
打开head.php文件，在wp_head() 函数之前添加如下函数：
打开single.php和page.php以及其他的需要评论的页面样式（比如：guestbook.php）文件，将其中的
< ?php comments_template(); ?>
替换为
< ?php comments_template('', true); ?>
这样将生成一个全局名为$comments_by_type的全局变量数组，用于评论和引用的分离
打开comments.php文件对其进行修改，几乎相当于重写了，囧。
<</li><li><a href="http://tossp.com/wordpress-the-realization-of-use-jquerys-ajax-comments-hybrid.html" rel="bookmark" title="Permanent Link: wordpress：用jquery实现Hybrid主题的ajax评论">wordpress：用jquery实现Hybrid主题的ajax评论</a><br />关于wordpress的ajax评论，已经有很多资料了，每换一个主题总要重新弄一次ajax评论。

而且前天很神奇的发现我居然没有把这东西记录下来，每次都是拿着以前的代码修修补补。。。好囧

第一次写ajax评论评论已经忘记了是参照的谁的了。。。汗一个。。。很火星的写下了这篇日志。

Xiaorsz's Blog童鞋的教程写的很完善=》关于 wordpress ajax 评论的补充和完善这次在做的时候就参考这个。可以去看一下

这里主要是以Hybrid的子主题为基础，记录一下添加过程，当然其他的主题也可以参照，个人觉得我还是写的很详细的，呵呵

OK，废话了半天开始进入正题了

既然是要用jquery，当然首先要导入jquery库，wp2.8.4已经引入了jquery的最新版本了，这个就不要我们操心了

 

打开你子主题的functions.php文件。写入：

[cc lang="php" inline="0"]

&lt;?php

define( ONE_BLUE_URL, get_stylesheet_directory_uri() );

/**
*'hybrid_head'是hybrid对header的HOOK，
*也就是把'imt_js'的结果加入生成页面的头部
*/
add_action(</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></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[这篇日志在2011-10-31 01:38:59最后一次修订。序
没办法在人民群众面前，我不是强大的某某党，我只能选择妥协～
有的人总是只看我的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[<div class="revised alert">这篇日志在<abbr title="星期一, 十月 31st, 2011, 1:38 上午">2011-10-31 01:38:59</abbr>最后一次修订。</div><br /><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>打开你主题的</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">functions.php</div></div>
<p>文件，添加以下两段代码，但是需要更加你自己的情况修改：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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 />
<br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><a href="http://www.php.net/class_exists"><span style="color: #990000;">class_exists</span></a><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 />
<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 />
<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 default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 />
<br />
&nbsp; &nbsp; <span style="color: #000088;">$post_title</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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> <a href="http://www.php.net/mb_substr"><span style="color: #990000;">mb_substr</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/strip_tags"><span style="color: #990000;">strip_tags</span></a><span style="color: #009900;">&#40;</span><a href="http://www.php.net/trim"><span style="color: #990000;">trim</span></a><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;span class=&quot;removed_link&quot; title=&quot;&amp;#039;.get_permalink($post_ID).&amp;#039;&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;/span&gt;'</span><span style="color: #339933;">;</span><br />
<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 />
<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>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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> 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></div></div>
<p>具体的效果可以参看我的QQ空间！</p>
<h1>后记</h1>
<p>不得不承认我这人真没啥原创性，所以只能坐在巨人的肩膀上瞅瞅远处的风景了，水煮鱼还提供了相应的插件，大家可以去他的blog看看了。</p>
<hr /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 13 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 先沙发再说话！</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 13 日</a>, <a href='http://socekin.cn' rel='external nofollow' class='url'>socekin</a> writes: 这个今天刚看过，我是用不到，不喜欢Qzone</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 13 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 非常赞的功能！要人气就跟QQ党做朋友</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 14 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: QQzone我已经荒废了段时间
想想看</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 14 日</a>, <a href='http://www.9sh.net' rel='external nofollow' class='url'>仁心博客</a> writes: 赞一个啊</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2009 年 12 月 16 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 我的竟然不成功，哼哼，不过我找到一个问题，看是否是因为它的缘故，测试以后才知道，可是现在是文囧时 - -</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 01 月 01 日</a>, <a href='http://trowa.org' rel='external nofollow' class='url'>杜罗华</a> writes: 又是痛苦的代码
唉</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 01 月 03 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6016" rel="nofollow">zwwooooo:</a>额，，，，
@<a href="#comment-6049" rel="nofollow">杜罗华:</a>怎么痛苦啦？</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 01 月 04 日</a>, <a href='http://trowa.org' rel='external nofollow' class='url'>杜罗华</a> writes: @<a href="#comment-6110" rel="nofollow">砼砼:</a>就是痛苦啊～～
对了，砼砼可不可以加紧继续你的Hybrid教程呢，我觉得Framework是个不错的趋势哦</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 01 月 04 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-6147" rel="nofollow">杜罗华:</a>hybrid0.7，有比较大的变化，而且从作者的日志中能看出来，他不喜欢做向下兼容，刚开始，写Hybrid教程的时候，还有的写，后来发现越写越鸡肋及没写了，在使用这个框架的时候可以向作者提问，不过是付费。我们也可以一起探讨啊，不过我是半吊子，哈哈</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 01 月 28 日</a>, <a href='http://www.wei369.com' rel='external nofollow' class='url'>光卫</a> writes: 这个倒是可以试试呢</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 05 月 24 日</a>, 同步发布文章到qzone writes: [...] 试试看不知道行不行。在这里http://im-t.net/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html看到的一个 [...]</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 05 月 24 日</a>, 同步到Qzone writes: [...] 试试看不知道行不行。在这里http://im-t.net/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html看到的一个 [...]</li><li><a href="http://tossp.com/wp-in-the-hybird-frame-sync-wordpress-blog-entries-to-qzone.html">2010 年 06 月 13 日</a>, <a href='http://www.blueandhack.com' rel='external nofollow' class='url'>blueandhack</a> writes: 你的博客我很喜欢
我也喜欢hybird
希望你能教教我
我的QQ已经留下
我觉得可以建立一个hybird fans群~
HOHO~</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/qzone-to-wordpress-destination.html" rel="bookmark" title="Permanent Link: Qzone转WordPress全攻略">Qzone转WordPress全攻略</a><br />很多朋友在刚开始写blog的时候都是用的Qzone（QQ空间）吧，但那是对于掉到钱眼里面的TX公司，我实在是不知道说他什么了，当我们自己架设blog也以后就需要把以前的转过哎，不想转的没几个吧。。。。

 手动转，文章少的haunted还没什么，多了就麻烦类，所以今天介绍一个批量转的方法。

首先，搬家需要用到一个跳板——网易博客
这里要利用网易博客的一键搬家功能。
1.去申请一个网易通行证，然后再开通博客服务。（这个我不用说了吧）
2.登陆成功后进入一键搬家的主页面http://blog.163.com/services/cloneone.html?fromservices
3.在里面输入你的QQ空间地址。（如：http://156888120.qzone.qq.com/)
4.这是你会收到信息。大约3分钟，搬家就完成了！

好，下面实施第二步。

1.先去这里http://www.yhustc.com/Blog/123.html下载他的搬家工具。
2.下载python软件（这是编程语言的程序包）
3.好了，安装python（推荐版本2.5）
4.下面要做一些小小的步骤了。
   （1）右击我的电脑-系统属性
   （2）“高级”选项卡-环境变量-系统变量
   （3）在Path一栏加入Python的安装目录
5.好了。解压转换工具到一个目录。（如：C:/BlogMover/)
6.打开cmd，进入程序所在目录，准备开始搬家

好了，第三步，也是最后的一步，开始了。
1.打开你的网易博客，点击第一个日志内容
2.把该日志的URL拷贝出来。
3.cmd下输入：python 163-blog-mover.py -f 日志url
4.等待吧。
经过短暂而又漫长的时间，导出了一个XML文件。导入到WordPress，就可以了！

现在还打包了（2009年6月1日）

	百度空间转wordpress的搬家工具
	broom写的LIVE SPACE转wordpress的搬家工具

压缩包内有详细的说明，不懂的再来一起讨论吧

Vit：http://www.yhustc.com/Blog/123.html

update @ 2009年6月1日

这里提供工具包blog搬家工具</li><li><a href="http://tossp.com/host-removal-test-qzone-sync.html" rel="bookmark" title="Permanent Link: 主机搬迁（测试qzone同步）">主机搬迁（测试qzone同步）</a><br />这是一篇测试文章！
找到一个月付的主机
老板人还不错
原来的老板也不错，哈哈，不过配置不是我想要的，所以，搬迁了
今晚的网速也比较快～估计是很少人看电影的原因吧
这是我第几次搬迁主机了？
自己都忘了～希望这次能用的更久一点～
BTW：评论无法记住COOKIES的问题已经解决，欢迎测试</li><li><a href="http://tossp.com/log-qq-space-to-easily-move-to-play-move-blog.html" rel="bookmark" title="Permanent Link: 日志轻松迁移 QQ空间也玩&#8220;博客搬家&#8221;">日志轻松迁移 QQ空间也玩&#8220;博客搬家&#8221;</a><br /> 博客需要追求个性，Qzone以它独特的魅力吸引着众多的Q友。  上周，Qzone又推出了博客搬家工具，这对喜欢Qzone人来说是一件开心的事， 现在你可以轻松将博客迁移到Qzone中了。  方法很简单只要几步简单的操作即可实现博客的迁移。  打开腾讯搬家工具页面（http://n.qzone.qq.com/move/move_login.htm）， </li><li><a href="http://tossp.com/jin-with-the-password-or-set-up-qzone-close-friend-of-the-way-qzone.html" rel="bookmark" title="Permanent Link: 进带密码的QZONE 或者设置密友的QZONE的方法">进带密码的QZONE 或者设置密友的QZONE的方法</a><br />进带密码的QZONE 或者设置密友的QZONE的方法
方法如下：

首先说下进带密码的QZONE 或者设置密友什么的才可进的QZONE
用这个连接 http://QQ号.qzone.js.cn:88/

用这个进可以看到日记和留言  缺陷就是看不到相册等内容
还有个连接 http://izone.qq.com/client/blogMain.htm#uin=QQ号

只要在等号后面的星号换成输入你要访问的qq号码就可以了这个基本需要看的相册 日记 什么的 都能看到，但是缺点是</li><li><a href="http://tossp.com/this-is-the-university-ap.html" rel="bookmark" title="Permanent Link: 这就是大学（图）">这就是大学（图）</a><br />早起篇：早上起来，看表的时候会有一瞬间呆滞，然后。无论如何，一定会先选择 ， 然后和  。最终冲向食堂，。




学习篇：上课的时候 ，通常很想，也一般会，    </li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></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[这篇日志在2011-10-31 01:38:59最后一次修订。不得不承认，我是一个极度缺乏创意的人，极度缺乏想象力的人
一觉睡醒闲来无事，又添加了一个比较鸡肋的功能。。。。。
既然添加了，那还是简单的记录一下，添加过程～具体的原理，流程等等就不细说了，需要的童鞋可以和我一样去参考（抄袭）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 alert">这篇日志在<abbr title="星期一, 十月 31st, 2011, 1:38 上午">2011-10-31 01:38:59</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>打开你主题的</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">functions.php</div></div>
<p>文件，在里面添加一下代码：</p>
<div class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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><a href="http://www.php.net/printf"><span style="color: #990000;">printf</span></a><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 />
<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; <a href="http://www.php.net/die"><span style="color: #990000;">die</span></a><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>下面是</p>
<div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/js/comments-tip.js</div></div>
<p>的代码：</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;height:300px;"><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 />
<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 />
<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;">'正在拉取评论请稍候～'</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><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 />
<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 />
<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;">'拉取评论信息成功！'</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 />
<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;">'拉取评论信息失败！'</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>当然我不要忘了加入CSS样式，把我的给大家参考一下：</p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:100%;"><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 /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 29 日</a>, <a href='http://anysns.com' rel='external nofollow' class='url'>吓我一跳</a> writes: 呵呵 这个没试过</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 29 日</a>, <a href='http://www.derekblog.cn' rel='external nofollow' class='url'>derek</a> writes: 我都没IE6了 :mrgreen:</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 29 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: 我用嵌套的就需要这个了</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 29 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5622" rel="nofollow">吓我一跳:</a>那尝试一下了，哈哈
@<a href="#comment-5626" rel="nofollow">derek:</a>几乎玩独立BLOG的很少有吧
@<a href="#comment-5632" rel="nofollow">A.shun:</a>拿去吧，呵呵</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 30 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 我有ie6，但我前几天升级到ie8了，哇咔咔，你自个用ietester吧

话说我的是嵌套，貌似就不折腾这个了</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 30 日</a>, <a href='http://www.lusongsong.com/' rel='external nofollow' class='url'>卢松松</a> writes: 我看看啥效果呢？</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 11 月 30 日</a>, <a href='http://www.zrl.name' rel='external nofollow' class='url'>zrl</a> writes: 呃，其实我想和你换个链接的，你的链接我已经加上了~ :cool:</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 01 日</a>, <a href='http://www.wuliaoo.com' rel='external nofollow' class='url'>疾风</a> writes: 挺酷的  恶化和</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://ezama.com' rel='external nofollow' class='url'>Halu</a> writes: @<a href="#comment-5643" rel="nofollow">砼砼:</a>您好...照你上方所教的方式，我的主題沒辦法顯示。我的主題是 "Techified"，請問是少了些什麼?!還要更改那些地方呢?!comments-tip.js 這又是怎樣生成的?!不好意思，剛入門的菜鳥...什麼都不懂!!請您見諒.... :smile:</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5652" rel="nofollow">zwwooooo:</a>事实说明你是坏人。。。。
@<a href="#comment-5657" rel="nofollow">卢松松:</a>嘿嘿
@<a href="#comment-5666" rel="nofollow">zrl:</a>已经添加了,嘿嘿</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5721" rel="nofollow">Halu:</a>应该是DIV结构不同的问题，<code>comments-tip.js</code>汗，我写错文件名了。。。马上更改，</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://mytion.info' rel='external nofollow' class='url'>mytion</a> writes: 我来学习了。 :x  先做笔记。</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://ezama.com' rel='external nofollow' class='url'>Halu</a> writes: @<a href="#comment-5743" rel="nofollow">冰淼·十二少:</a>原來是寫錯了~難怪覺得奇怪!! DIV 的結構嗎?!那我就再用不靈光的腦袋再想看看啦!!謝謝~~</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 03 日</a>, <a href='http://ezama.com' rel='external nofollow' class='url'>Halu</a> writes: @<a href="#comment-5730" rel="nofollow">砼砼:</a>怪了，怎麼點回覆給你，是回覆到 @冰淼·十二少??</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 04 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5762" rel="nofollow">Halu:</a>估计当时我在调整后台，，，，囧</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 05 日</a>, <a href='http://www.kejiyun.cn' rel='external nofollow' class='url'>andy</a> writes: 对了 ，你是怎么实现文章里面的代码在黑框框里面显示的。。教教我吧。。我博客也更换了主题，现在兼容性好多了。………… :grin:</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 05 日</a>, <a href='http://ezama.com' rel='external nofollow' class='url'>Halu</a> writes: @<a href="#comment-5772" rel="nofollow">砼砼:</a>喔~~~我現在已經暫時放棄這個效果了!!完全搞不懂怎麼修改.....希望以後能出相關插件之類的!!</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2009 年 12 月 13 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5788" rel="nofollow">andy:</a>那个是用的插件</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2010 年 06 月 11 日</a>, <a href='http://www.blueandhack.com' rel='external nofollow' class='url'>blueandhack</a> writes: 你好~
我很喜欢hybird可是不知道怎么去改~
你能教教我吗？
我的QQ已留下
能不能交流一下~
谢谢~ :grin:</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2010 年 06 月 13 日</a>, <a href='http://www.blueandhack.com' rel='external nofollow' class='url'>blueandhack</a> writes: 问一下comments-tip.js这个放到哪里？？
你看看我的为什么不可以？？
我的也是hybird的主题
没有修改过的~
请加我的QQ</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2011 年 09 月 15 日</a>, <a href='http://ise7en.me/' rel='external nofollow' class='url'>Demon</a> writes: 演示效果好像木有了呢。</li><li><a href="http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html">2011 年 10 月 06 日</a>, <a href='http://tossp.com' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4512" rel="nofollow">Demon:</a>还有的哦。。。</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/finishing-free-package-of-qq-online-2008-04-11.html" rel="bookmark" title="Permanent Link: 整理免费整套QQ秀【2008-04-11】">整理免费整套QQ秀【2008-04-11】</a><br />女生时尚形象三套（发型不一样）：

http://show.qq.com/show.html?MUrl=/my/inc/recmdview.html%3Fuin%3D396505205%26id%3D378691

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D509518181%26id%3D381489

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D509518181%26id%3D381492

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D4056820%26id%3D382213

女生经典装扮两套（背景不同）：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D3312286%26id%3D353168

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D674705811%26id%3D374837

男士黄色长袖：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D674705811%26id%3D374743

男士黑色短袖：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D674705811%26id%3D374744

http://show.qq.com/show.html?MUrl=/my/inc/recmdview.html%3Fuin%3D83510035%26id%3D359304

男士黑色西装：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D309042007%26id%3D360780

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D509518181%26id%3D381486

男士银灰色西装：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D674705811%26id%3D373720

男士经典装扮：

http://show.qq.com/show.html?MUrl=http%3A//show.qq.com/my/inc/recmdview.html%3Fuin%3D498808906%26id%3D370538</li><li><a href="http://tossp.com/legends-of-the-great-wisdom-200000-yuan-fine-formula.html" rel="bookmark" title="Permanent Link: 传说中大智慧200000元精品公式">传说中大智慧200000元精品公式</a><br />[code]多:ema(c,3),coloryellow;
空:ema(c,5),color00ff00;
均衡:ema(空,5),colorwhite,;
varf1:=count(cross(多,均衡),2)=1;
varf2:=count(cross(空,均衡),2)=1;
zai:=filter(varf1 and varf2,2);
drawtext(zai,均衡,&#39; →◆●¤主升行情&#39;),colorff00ff;
vv2:=ref(close,1);
vv3:=sma((close-vv2),6,1)/sma(abs(close-vv2),6,1)*100;
drawicon(ref(vv3,1)>81 and vv3&lt;80,high,2);
drawtext(ref(vv3,1)>81 and vv3&lt;80,high,&#39; →◆●沽空↓&#39;),coloryellow;
vf1:=ma(close,60)-ma(close,5)/3.2;
drawtext(if(closema(vol,5)/240 and</li><li><a href="http://tossp.com/wp-template-manual.html" rel="bookmark" title="Permanent Link: WP:模板手册">WP:模板手册</a><br />WordPress基本模板文件
访问者访问博客时，wordpress首先就会去找你模板目录里的这个文件：home.php，如果没有，就用index.php这个模板文件来显示首页。

如果访问者点击你博客里名为（abc）的这个分类，url会连接到：http://yourwp/archives/category/abc，如 果这个分类的ID是6的话，wordpress首先就会去找这个模板文件：category-6.php，并用它来显示这个分类，如果category- 6.php不存在，wordpress就会去找category.php，如果也不存在，就会去找archive.php，如果还不存在，最终就会使用 index.php来显示这个分类。

在一位国外bloger那里看到的一张图可以很好的解释WordPress的Themes的工作层次（机制？

home.php （显示首页）
index.php （最基本、必不可少的文件，用来显示任何内容）
single.php （显示单篇日志 ）
页面名称.php （显示指定名称的页面）
page.php （显示页面）
分类ID.php</li><li><a href="http://tossp.com/wp-hybird-has-provided-us-with-what-a.html" rel="bookmark" title="Permanent Link: WP：Hybird给我们提供了什么？（一）">WP：Hybird给我们提供了什么？（一）</a><br />今天，比昨天起早了20分钟~，感觉自己已经有老人味了~5点就起床了~

OK，说正题，想了半天，还是觉得今天应该先把Hybird提供的东西说一下，毕竟用Hybird就应该知道里面有些什么。。。

从哪里开始呢？想了很久，还是从文件开始吧~

wordpress让我们有两种模板使用，一种是wp默认的，一种是自定义模板，自定义模板就是我们在后台“页面=》添加”里面用到的，wp默认的就很好理解了~WP默认调用的，很像一句废话。。。

WP，默认调用是怎样一个顺序呢？还是要用到这个经典的示意图，虽然对于2.8他不够完整，但是还能帮助我们理解WP的模板层次结构，图中所示的就是，当我们访问一个页面的时候，WP对应的是调用的哪一个模板文件，我就不再详细描述了~

Hybird也提供了相应的文件，而且很详细，这也使得某人被庞大的文件数量吓跑~哈哈

对于这些文件，在Hybird中是类似于下面的文件说明：
< ?php
/**
 * Single Template
 *
 * This template is loaded when viewing</li><li><a href="http://tossp.com/wp-theme-hybrid-version-0-6-1-released.html" rel="bookmark" title="Permanent Link: WP主题：Hybrid  Version 0.6.1发布">WP主题：Hybrid  Version 0.6.1发布</a><br />好久没正儿八经的上网了，也好久没写blog

刚好今天有时间上网，一来就发现Hybrid更新了，现在到了0.6.1版本

这次更新主要是修复0.6版本里面的bug
bug修复列表：

	Custom field series extension didn’t display a value.
	User role class</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-cross-page-suspension-show-comments-copied-articles.html/feed</wfw:commentRss>
		<slash:comments>22</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>恰好，今天Hybrid也因为感恩节提供了额外的主题模板，我太爱这个了，哈哈</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>当然，在以后的“Hybrid 0.7”中“登录，配置文件和注册模板”可能会删除。因此，如果你有需要，作者建议自己更新到新的模板。</p>
<p>多了这么多模板有的忙了，呵呵，就是不知道其中有几个会是我看中的，为什么我总想不到这些好东西呢？哎~</p>
<p>附上下载地址：http://themehybrid.com/downloads/hybrid-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 /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2009 年 11 月 27 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 鄙视一下！然后：这模板也够厉害的了，厉害到我都怕怕不敢用</li><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2009 年 11 月 27 日</a>, <a href='http://www.derekblog.cn' rel='external nofollow' class='url'>derek</a> writes: 测试~~~~~~~~~~~</li><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2009 年 11 月 27 日</a>, <a href='http://myya.net' rel='external nofollow' class='url'>小T</a> writes: 我来测试下国家。。。 ;-)</li><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2009 年 11 月 28 日</a>, <a href='http://www.rtrash.net' rel='external nofollow' class='url'>TrashPaper|废纸篓</a> writes: 求也看不见 ，没图！！</li><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2009 年 11 月 29 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-5567" rel="nofollow">zwwooooo:</a>不至于吧。。。。
@<a href="#comment-5577" rel="nofollow">derek:</a>结果呢？
@<a href="#comment-5578" rel="nofollow">小T:</a>额，这个不会给我河蟹了吧。。。
@<a href="#comment-5592" rel="nofollow">TrashPaper|废纸篓:</a>确实没图～哈哈哈</li><li><a href="http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html">2011 年 09 月 15 日</a>, <a href='http://www.ise7en.me' rel='external nofollow' class='url'>Demon</a> writes: 很强大的。一框架主题。</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/wp-the-use-of-hybrid-own-theme-wordpress.html" rel="bookmark" title="Permanent Link: WP:使用Hybrid做自己的wordpress主题">WP:使用Hybrid做自己的wordpress主题</a><br />这篇日志开始step by step 的介绍怎么使用Hybrid做自己的wp主题。

　　一个Wordpress的子主题就像任何其他Wordpress主题一样，你可以把它们放在你的博客的主题目录（/wp-content/themes）下，然后在主题控制面板激活它们。它们同样拥有存在图片、脚本、截图（screenshot）、CSS的文件夹。
　　唯一不同的地方是子主题基本上不需要任何主题文件（header.php, index.php, footer.php, single.php等）。这是我们为什么不需要使用PHP的另一个原因。

首先，我们要做几个准备

	新主题是Hybrid的子主题，所以我们要先确定已经上传到了/wp-content/themes/目录中
	准备好了PHP编辑软件，还是在推荐一次啊我是用的这个Notepad++，这里我就不提供下载地址了，自己去找吧
	新建一个子主题的目录，比如，我们在/wp-content/themes新建一个名为“One Blue”的文件夹，OK，这个就是由于存放我们子主题的地方了~

这样一个简单的，准备就OK了，接下来我们开始建立第一个文件，“style.css”文件，这个文件名是必须的，不可修改哦

写下这样的信息：
/*
Theme Name: one</li><li><a href="http://tossp.com/wp-theme-hybrid-version-0-6-1-released.html" rel="bookmark" title="Permanent Link: WP主题：Hybrid  Version 0.6.1发布">WP主题：Hybrid  Version 0.6.1发布</a><br />好久没正儿八经的上网了，也好久没写blog

刚好今天有时间上网，一来就发现Hybrid更新了，现在到了0.6.1版本

这次更新主要是修复0.6版本里面的bug
bug修复列表：

	Custom field series extension didn’t display a value.
	User role class</li><li><a href="http://tossp.com/wp-one-theme.html" rel="bookmark" title="Permanent Link: WP:one主题">WP:one主题</a><br />算下来用WordPress也快一年了，期间风风火火的换了很多的主题，但也总是这不满意，那不满意的

每个不同的主题，打印页面的DIV结构也不近相同，由于不是自己写的，每次，对别人主题的修改总是让我大大的费神啊

人就是这样犯贱，总是要逼着，才能做一些事儿，估计大多数人都我和我一样有很严重的牙膏情节——挤一下，出来一点，呵呵

第一做的这个主题就取名叫“one”了，以hybrid为原型修改，hybrid是我很喜欢的一个主题框架，但是要付费才提供帮助，而且他的功能对于我来说太过于强大了，one可以理解为hybrid的简化版吧，当然是加入了我喜欢的功能的简化版，呵呵

这里就是记录“one”成长的心路历程的地方，但估计记录的不会太多，最多就只记录一个提要吧，大多数都写在SVN里面，和我一样的菜鸟可以去看看，估计对您会有一些帮助。

update @ 2009年4月11日4:22:53

我真的就如小蜜蜂一样的勤劳，评论样式框架整理完毕，这个主题的基本样式就这样了，然后，我是先加图片，还是先加AJAX呢?分类导航条，还要不要呢？这些都是问题啊，，，囧

真巧合啊，基本两天一记录，忽忽

update @2009年4月9日20:14:40

主体搭建完成，开始上站测试，这次是仿的Theme Codename H的主题样式，感谢一下。待修改的地方还有好多，路漫漫其修远啊

update @ 2009年4月7日14:02:43

主题框架基本搭建完成，开始构建CSS文件和优化函数结构。。。苍天，CSS心中的痛啊~~~囧
PS：感谢eiven童鞋提供CSS样式蓝本

update @2009年4月5日15:56:26

开始构建主题框架，以hybrid为原型，优化函数，去掉对子主题支持部分</li><li><a href="http://tossp.com/hybrid-theory-not-to-use-vdoing.html" rel="bookmark" title="Permanent Link: 杂论:不在用Vdoing">杂论:不在用Vdoing</a><br />本来在最初期很看好Vdoing这一新出的访问统计

但是近段时间Vdoing的表现越来越让人郁闷了

不知道是经费不足，还是只面向于门户网站

反正是抽风次数越来越多了

第一郁闷：功能不完全开放

有些优势功能现在已经不是免费开放了的，比如：热点追踪。对于单个IP的访问追踪也不知道有没有。。。至少我没有找到，愁

第二郁闷：貌似服务器不稳定

刚登陆上去看，昨天的IP统计只有9，吓了我一大跳，明显的失效了哦

对于这样一个在基本功能都不能保证，而且还要收费的东西，真的没语言了。

也许Vdoing这种“高级”货，就不是我们这些低端用户的考虑对象吧，Vdoing并不需要小站提供的访问数据，至少我是这样理解

免费的很多、也没见比Vdoing差什么，再加上我最看好的“热点追踪”功能已经不免费提供了。与其鸡肋一般的存在，还不如，提升一下网页的加载速度。减少一片JS的调用，应该更符合我现在的而需要</li><li><a href="http://tossp.com/the-basic-structure-of-the-sandbox-theme.html" rel="bookmark" title="Permanent Link: Sandbox Theme的基本结构">Sandbox Theme的基本结构</a><br />  由著名的Wordpress主题制作站Wpdesigner.com的small potato编写的。这个或许会对你了解这个空白主题有帮助。  div#wrapper [.hfeed]   </li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></content:encoded>
			<wfw:commentRss>http://tossp.com/wp-hybrid-thanksgiving-theme-templates-to-provide-more.html/feed</wfw:commentRss>
		<slash:comments>6</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>这是第一次用wordpress的黑莓本地客户端写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，来为我这样的人写一个在黑莓上管理wordpress的应用，毕竟觉得用浏览器管理很不爽，不节约流量就是浪费阿。。。可怜的我每个月只有30mb的流量因为是wap包年套餐，现在还不能改，好郁闷哇)</p>
<p>btw：通过手机上的浏览器，可以用cmwap访问我的blog，为什么这个应用就一定要用cmnet才能连上我的blog呢？好郁闷，虽然现在四川移动已经不区分cmwap和cmnet。。。困惑阿</p>
<hr /><h2>Comments</h2><ul><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 29 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: 这也是通过手机发送的，不过是手机上的浏览器。。。没啥好激动的了，手机访问地址不公开了，没多大意思。

我知道这篇日志有几个错别字，有几个地方少个词，，，汗，我很懒不想改了。。。点讯打不出来jiong字，不知道手机上的js和普通电脑上的js通用么。
我得吧自定义表情和评论回复弄出来啊～</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 30 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: @<a href="#comment-4405" rel="nofollow">砼砼:</a>哪有自己抢沙发的！黑莓黑莓我爱你……</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 30 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: 不会吧。。8700好用吗？这么多人用</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 30 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4416" rel="nofollow">A.shun:</a>经典机型啊，才400也
@<a href="#comment-4407" rel="nofollow">zwwooooo:</a>嘿嘿，我是测试评论的说，免得没电脑了不好更新blog</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 30 日</a>, <a href='http://www.lusongsong.com' rel='external nofollow' class='url'>卢松松</a> writes: 哥们你对黑莓情有独钟啊。。发现你是四川的？</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 31 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4419" rel="nofollow">卢松松:</a>难道你也是？</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 31 日</a>, <a href='http://music-it.cn/' rel='external nofollow' class='url'>feicun</a> writes: 黑莓打字不爽吗？手机打字不方便很痛苦的啊……</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 08 月 31 日</a>, <a href='http://an9.name' rel='external nofollow' class='url'>an9</a> writes: 先路过一下。</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 02 日</a>, <a href='http://ttune.net.ru' rel='external nofollow' class='url'>小T</a> writes: 写了这么长，敲了很久吧</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 02 日</a>, <a href='http://www.kejiyun.cn' rel='external nofollow' class='url'>andy</a> writes: 哎，黑霉的手机听到过好多次，就是现在还没见到过。。。改天给我发张图片，让我见识见识吧。。。。</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 02 日</a>, <a href='http://www.missroc.com' rel='external nofollow' class='url'>Roc</a> writes: 黑莓好玩么?  ilovePPC</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 02 日</a>, <a href='http://silvermoon7.com/' rel='external nofollow' class='url'>托尔·银月</a> writes: 最近不是爆料了
400的黑莓有问题嘛</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 03 日</a>, <a href='http://kramon.net' rel='external nofollow' class='url'>老K</a> writes: 实践证明,身边如果有电脑,一般不用手机写.</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 04 日</a>, <a href='http://www.r5ver.cn' rel='external nofollow' class='url'>潇潇水云</a> writes: 点讯词库不全，有些字都打不出来。。我也用黑莓发过日志，不过出了点问题</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 06 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4489" rel="nofollow">潇潇水云:</a>确实，不如说“囧”
@<a href="#comment-4481" rel="nofollow">老K:</a>我也想上网啊
@<a href="#comment-4469" rel="nofollow">托尔·银月:</a>我上次网不容易别吓我啊
@<a href="#comment-4461" rel="nofollow">Roc:</a>看书，看新闻够了
@<a href="#comment-4460" rel="nofollow">andy:</a>首页有图，但是在IE6下不显示的
@<a href="#comment-4452" rel="nofollow">小T:</a>和电脑打字一样的啊
@<a href="#comment-4436" rel="nofollow">an9:</a> :razz:
@<a href="#comment-4434" rel="nofollow">feicun:</a>感觉好极了。。。。。 :razz:</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 07 日</a>, <a href='http://www.54ui.cn' rel='external nofollow' class='url'>54ui</a> writes: 又换皮了啊～～呵呵～
黑莓～有机会弄个玩玩～～</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 09 日</a>, <a href='http://www.trashpaper.com' rel='external nofollow' class='url'>废纸篓</a> writes: 现在的87用自带的也很强大啊！</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 30 日</a>, <a href='http://aenes.com' rel='external nofollow' class='url'>老T</a> writes: 用点讯写好了复制粘贴不就好了么~</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 09 月 30 日</a>, <a href='http://aenes.com' rel='external nofollow' class='url'>老T</a> writes: 其实我也是8700用户~</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 10 月 01 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4529" rel="nofollow">54ui:</a>你那边越来越漂亮了
@<a href="#comment-4836" rel="nofollow">老T:</a>有得地方还是要用五笔画，比如：bb的wp离线写blog，不过我都是写好了粘过去，记得装最新的154哦，用着好爽的 :onelikability:</li><li><a href="http://tossp.com/write-a-blog.html">2009 年 10 月 02 日</a>, <a href='http://aenes.com' rel='external nofollow' class='url'>老T</a> writes: 我很少用这个写，一般都点讯还是蛮方便的~我前几天装的149，这个更新的速度~</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/this-is-the-university-ap.html" rel="bookmark" title="Permanent Link: 这就是大学（图）">这就是大学（图）</a><br />早起篇：早上起来，看表的时候会有一瞬间呆滞，然后。无论如何，一定会先选择 ， 然后和  。最终冲向食堂，。




学习篇：上课的时候 ，通常很想，也一般会，    </li><li><a href="http://tossp.com/bubbles-appear-qq-tang-communication-structure-of-the-game.html" rel="bookmark" title="Permanent Link: 泡泡堂、QQ堂游戏通信架构分析">泡泡堂、QQ堂游戏通信架构分析</a><br />们知道，TCP与UDP之间的最大不同点在于：TCP是可靠连接的，而UDP是无连接的。本文作者：sodme本文出处：http://blog.csdn.net/sodme声明：本文可以不经作者同意任意转载、复制、引用。但任何对本文的引用，均须注明本文的作者、出处以及本行声明信息。

　　提笔注：扫地只是偶的表面工作，偶的真实身份是作MMORPG。^_^

　　之前，我分析过QQ游戏（特指QQ休闲平台，并非QQ堂，下同）的通信架构（http://blog.csdn.net/sodme/archive/2005/06/12/393165.aspx），分析过魔兽世界的通信架构（http://blog.csdn.net/sodme/archive/2005/06/18/397371.aspx），似乎网络游戏的通信架构也就是这些了，其实不然，在网络游戏大家庭中，还有一种类型的游戏我认为有必要把它的通信架构专门作个介绍，这便是如泡泡堂、QQ堂类的休闲类竞技游戏。曾经很多次，被网友们要求能抽时间看看泡泡堂之类游戏的通信架构，这次由于被逼交作业，所以今晚抽了一点的时间截了一下泡泡堂的包，正巧昨日与网友就泡泡堂类游戏的通信架构有过一番讨论，于是，将这两天的讨论、截包及思考总结于本文中，希望能对关心或者正在开发此类游戏的朋友有所帮助，如果要讨论具体的技术细节，请到我的BLOG（http://blog.csdn.net/sodme）加我的MSN讨论。

　　总体来说，泡泡堂类游戏（此下简称泡泡堂）在大厅到房间这一层的通信架构，其结构与QQ游戏相当，甚至要比QQ游戏来得简单。所以，在房间这一层的通信架构上，我不想过多讨论，不清楚的朋友请参看我对QQ游戏通信架构的分析文章（http://blog.csdn.net/sodme/archive/2005/06/12/393165.aspx）。可以这么说，如果采用与QQ游戏相同的房间和大厅架构，是完全可以组建起一套可扩展的支持百万人在线的游戏系统的。也就是说，通过负载均衡＋大厅＋游戏房间对游戏逻辑的分摊，完全可以实现一个可扩展的百万人在线泡泡堂。

　　但是，泡泡堂与斗地主的最大不同点在于：泡泡堂对于实时性要求特别高。那么，泡泡堂是如何解决实时性与网络延迟以及大用户量之间矛盾的呢？

　　阅读以下文字前，请确认你已经完全理解TCP与UDP之间的不同点。

　　我们知道，TCP与UDP之间的最大不同点在于：TCP是可靠连接的，而UDP是无连接的。如果通信双方使用TCP协议，那么他们之前必须事先通过监听＋连接的方式将双方的通信管道建立起来；而如果通信双方使用的是UDP通信，则双方不用事先建立连接，发送方只管向目标地址上的目标端口发送UDP包即可，不用管对方到底收没收到。如果要说形象点，可以用这样一句话概括：TCP是打电话，UDP是发电报。TCP通信，为了保持这样的可靠连接，在可靠性上下了很多功夫，所以导致了它的通信效率要比UDP差很多，所以，一般地，在地实时性要求非常高的场合，会选择使用UDP协议，比如常见的动作射击类游戏。

　　通过载包，我们发现泡泡堂中同时采用了TCP和UDP两种通信协议。并且，具有以下特点：　　1.当玩家未进入具体的游戏地图时，仅有TCP通信存在，而没有UDP通信；　　2.进入游戏地图后，TCP的通信量远远小于UDP的通信量

　　以上是两个表面现象，下面我们来分析它的本质和内在。^&amp;^

　　泡泡堂的游戏逻辑，简单地可以归纳为以下几个方面：　　1.玩家移动　　2.玩家埋地雷（如果你觉得这种叫法比较土，你也可以叫它：下泡泡，呵呵）　　3.地雷爆炸出道具或者地雷爆炸困住另一玩家　　4.玩家捡道具或者玩家消灭/解救一被困的玩家

　　与MMORPG一样，在上面的几个逻辑中，广播量最大的其实是玩家移动。为了保持玩家画面同步，其他玩家的每一步移动消息都要即时地发给其它玩家。

　　通常，网络游戏的逻辑控制，绝大多数是在服务器端的。有时，为了保证画面的流畅性，我们会有意识地减少服务器端的逻辑判断量和广播量，当然，这个减少，是以“不危及游戏的安全运行”为前提的。到底如何在效率、流畅性和安全性之间作取舍，很多时候是需要经验积累的，效率提高的过程，就是逻辑不断优化的过程。不过，有一个原则是可以说的，那就是：“关键逻辑”一定要放在服务器上来判断。那么，什么是“关键逻辑”呢？

　　拿泡泡堂来说，下面的这个逻辑，我认为就是关键逻辑：玩家在某处埋下一颗地雷，地雷爆炸后到底能不能炸出道具以及炸出了哪些道具，这个信息，需要服务器来给。那么，什么又是“非关键逻辑”呢？

　　“非关键逻辑”，在不同的游戏中，会有不同的概念。在通常的MMORPG中，玩家移动逻辑的判断，是算作关键逻辑的，否则，如果服务器端不对客户端发过来的移动包进行判断那就很容易造成玩家的瞬移以及其它毁灭性的灾难。而在泡泡堂中，玩家移动逻辑到底应不应该算作关键逻辑还是值得考虑的。泡泡堂中的玩家可以取胜的方法，通常是确实因为打得好而赢得胜利，不会因为瞬移而赢得胜利，因为如果外挂要作泡泡堂的瞬移，它需要考虑的因素和判断的逻辑太多了，由于比赛进程的瞬息万变，外挂的瞬移点判断不一定就比真正的玩家来得准确，所在，在玩家移动这个逻辑上使用外挂，在泡泡堂这样的游戏中通常是得不偿失的（当然，那种特别变态的高智能的外挂除外）。从目前我查到的消息来看，泡泡堂的外挂多数是一些按键精灵脚本，它的本质还不是完全的游戏机器人，并不是通过纯粹的协议接管实现的外挂功能。这也从反面验证了我以上的想法。

　　说到这里，也许你已经明白了。是的！TCP通信负责“关键逻辑”，而UDP通信负责“非关键逻辑”，这里的“非关键逻辑”中就包含了玩家移动。在泡泡堂中，TCP通信用于本地玩家与服务器之间的通信，而UDP则用于本地玩家与同一地图中的其他各玩家的通信。当本地玩家要移动时，它会同时向同一地图内的所有玩家广播自己的移动消息，其他玩家收到这个消息后会更新自己的游戏画面以实现画面同步。而当本地玩家要在地图上放置一个炸弹时，本地玩家需要将此消息同时通知同一地图内的其他玩家以及服务器，甚至这里，可以不把放置炸弹的消息通知给服务器，而仅仅通知其他玩家。当炸弹爆炸后，要拾取物品时才向服务器提交拾取物品的消息。

　　那么，你可能会问，“地图上某一点是否存在道具”这个消息，服务器是什么时候通知给客户端的呢？这个问题，可以有两种解决方案：　　1.客户端如果在放置炸弹时，将放置炸弹的消息通知给服务器，服务器可以在收到这个消息后，告诉客户端炸弹爆炸后会有哪些道具。但我觉得这种方案不好，因为这样作会增加游戏运行过程中的数据流量。　　2.而这第2种方案就是，客户端进入地图后，游戏刚开始时，就由服务器将本地图内的各道具所在点的信息传给各客户端，这样，可以省去两方面的开销：a.客户端放炸弹时，可以不通知服务器而只通知其它玩家；b.服务器也不用在游戏运行过程中再向客户端传递有关某点有道具的信息。　　　　但是，不管采用哪种方案，服务器上都应该保留一份本地图内道具所在点的信息。因为服务器要用它来验证一个关键逻辑：玩家拾取道具。当玩家要在某点拾取道具时，服务器必须要判定此点是否有道具，否则，外挂可以通过频繁地发拾取道具的包而不断取得道具。

　　至于泡泡堂其它游戏逻辑的实现方法，我想，还是要依靠这个原则：首先判断这个逻辑是关键逻辑吗？如果不全是，那其中的哪部分是非关键逻辑呢？对于非关键逻辑，都可以交由客户端之间（UDP）去自行完成。而对于关键逻辑，则必须要有服务器(TCP)的校验和认证。这便是我要说的。

　　以上仅仅是在理论上探讨关于泡泡堂类游戏在通信架构上的可能作法，这些想法是没有事实依据的，所有结论皆来源于对封包的分析以及个人经验，文章的内容和观点可能跟真实的泡泡堂通信架构实现有相当大的差异，但我想，这并不是主要的，因为我的目的是向大家介绍这样的TCP和UDP通信并存情况下，如何对游戏逻辑的进行取舍和划分。无论是“关键逻辑”的定性，还是“玩家移动”的具体实施，都需要开发者在具体的实践中进行总结和优化。此文全当是一个引子罢，如有疑问，请加Msn讨论。</li><li><a href="http://tossp.com/qzone-to-wordpress-destination.html" rel="bookmark" title="Permanent Link: Qzone转WordPress全攻略">Qzone转WordPress全攻略</a><br />很多朋友在刚开始写blog的时候都是用的Qzone（QQ空间）吧，但那是对于掉到钱眼里面的TX公司，我实在是不知道说他什么了，当我们自己架设blog也以后就需要把以前的转过哎，不想转的没几个吧。。。。

 手动转，文章少的haunted还没什么，多了就麻烦类，所以今天介绍一个批量转的方法。

首先，搬家需要用到一个跳板——网易博客
这里要利用网易博客的一键搬家功能。
1.去申请一个网易通行证，然后再开通博客服务。（这个我不用说了吧）
2.登陆成功后进入一键搬家的主页面http://blog.163.com/services/cloneone.html?fromservices
3.在里面输入你的QQ空间地址。（如：http://156888120.qzone.qq.com/)
4.这是你会收到信息。大约3分钟，搬家就完成了！

好，下面实施第二步。

1.先去这里http://www.yhustc.com/Blog/123.html下载他的搬家工具。
2.下载python软件（这是编程语言的程序包）
3.好了，安装python（推荐版本2.5）
4.下面要做一些小小的步骤了。
   （1）右击我的电脑-系统属性
   （2）“高级”选项卡-环境变量-系统变量
   （3）在Path一栏加入Python的安装目录
5.好了。解压转换工具到一个目录。（如：C:/BlogMover/)
6.打开cmd，进入程序所在目录，准备开始搬家

好了，第三步，也是最后的一步，开始了。
1.打开你的网易博客，点击第一个日志内容
2.把该日志的URL拷贝出来。
3.cmd下输入：python 163-blog-mover.py -f 日志url
4.等待吧。
经过短暂而又漫长的时间，导出了一个XML文件。导入到WordPress，就可以了！

现在还打包了（2009年6月1日）

	百度空间转wordpress的搬家工具
	broom写的LIVE SPACE转wordpress的搬家工具

压缩包内有详细的说明，不懂的再来一起讨论吧

Vit：http://www.yhustc.com/Blog/123.html

update @ 2009年6月1日

这里提供工具包blog搬家工具</li><li><a href="http://tossp.com/comments-the-message-directly-show-the-users-address.html" rel="bookmark" title="Permanent Link: 评论、留言处直接显示用户地址">评论、留言处直接显示用户地址</a><br />需修改class/cls_article.asp
         </li><li><a href="http://tossp.com/windows2003-in-iis6-application-in-the-session-and-lost-in-the-iframe-solution.html" rel="bookmark" title="Permanent Link: windows2003中IIS6的session以及application在iframe中丢失问题的解决方案">windows2003中IIS6的session以及application在iframe中丢失问题的解决方案</a><br />windows2003中IIS6的session以及application在iframe中丢失问题的解决方案昨天把服务器有win2000换成了win2003,IIS自然也升级到了6.程序中不少地方运用了iframe,相应的问题也出现了。iframe中的文件得不到父页面的session，application也得不到；但是如果一个独立的页面是可以获得到session以及application的（注：这也不是绝对的，有的时候也会丢失），于是就在浩瀚的WWW世界狂google啊，结果令人大失所望&hellip;&hellip;
 
是不是IIS6的问题呢，因为在IIS5中，这个问题是不存在的，再加上偶刚接触IIS6，相对于IIS5在工作原理上还是有很大差别的。打开IIS管理器，仔细看了看，原来有一个应用程序池&hellip;&hellip;果然问题就出现在了这里，下面向大家详细介绍如何解决在windows2003、IIS6中，asp或者asp.net程序session、application丢失的问题。
 
1 运行环境：windows2003 ＋ IIS6 ＋ ASP（ASP.NET）
 
2 问题症状：页面的sessionid会改变，刷新一次改变一次；不能从父页面获得正确的session；iframe中得不到application。
</li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></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&#8217;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&#039;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&#8217;m t green</p>
<p>这次算不上是高仿的，不兼容IE6，，，很惆怅</p>
<p>刚去看了一下统计访问我这小blog的50%以上都是IE6，苍天，我直接无语了</p>
<p>很多细节还没有处理，大部分时间弄CSS兼容去了，慢慢来吧</p>
<p>侧边栏的项目是必须要改的</p>
<p>其实，不想放弃IE6，毕竟大多数人使用的都是IE6</p>
<p>这次在仿的时候明显比上次的速度快多了，很不错提高了，呵呵</p>
<p>清爽的绿色主题看起来，还不错，有谁知道我这个IE6的兼容怎么处理啊～</p>
<p>这问题解决不了，老觉得和吃了一只苍蝇一样，很惆怅啊～</p>
<p>微软雅黑很好看，但是在XP的火狐里面看着不怎么爽最后还是回归主流的用了宋体。。。</p>
<p>这个主题问题多多啊，一个一个的解决吧～哎～</p>
<hr /><h2>Comments</h2><ul><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 23 日</a>, smigoo writes: 你可以先定义雅黑～然后hack火狐成宋体啊～哈哈～～不过我觉得火狐中雅黑还蛮好看滴～</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 23 日</a>, <a href='http://kramon.net' rel='external nofollow' class='url'>老K</a> writes: 下载呢!</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 23 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4314" rel="nofollow">smigoo:</a>这想法好，我就是太懒了。。。
@<a href="#comment-4315" rel="nofollow">老K:</a>IE6还没兼容啊～你要么？要的话传给你</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://zww.me' rel='external nofollow' class='url'>zwwooooo</a> writes: 哈哈，又折腾主题了！</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://www.derekblog.cn/' rel='external nofollow' class='url'>derek</a> writes: 字体是丑了点，够折腾的了，再接再厉！
PS：把评论下面的reset去掉吧，曾经误点，痛苦的走过</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4317" rel="nofollow">zwwooooo:</a>没事儿就折腾一下，呵呵 :onecrazy:
@<a href="#comment-4318" rel="nofollow">derek:</a>貌似我也误点过 :onepudency:</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://www.a-shun.com/' rel='external nofollow' class='url'>A.shun</a> writes: 这主题真的不错
今天ie6下表现好点了
错位没那么严重 :onesweat:</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://www.kejiyun.cn' rel='external nofollow' class='url'>andy</a> writes: 不错，不过我用的是6</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 24 日</a>, <a href='http://ttune.net.ru' rel='external nofollow' class='url'>小T</a> writes: :grin: 主题要折腾</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 25 日</a>, <a href='http://blog.xystudio.info' rel='external nofollow' class='url'>小毅</a> writes: 我想问一下，那个用鼠标选中一些字的时候，是绿色的（不是一般的蓝色的），这个怎么做啊？</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 25 日</a>, <a href='http://www.lusongsong.com' rel='external nofollow' class='url'>卢松松</a> writes: 打架喜欢用IE6那你就多照顾下IE6嘛</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 25 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4326" rel="nofollow">A.shun:</a>怎么办呢？剩下的怎么处理呢？
@<a href="#comment-4327" rel="nofollow">andy:</a>汗一个先
@<a href="#comment-4333" rel="nofollow">小毅:</a>你用的是FF吧？
@<a href="#comment-4335" rel="nofollow">卢松松:</a>怎么处理呢？对这块不熟悉啊，望指教</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 25 日</a>, 大剑 writes: 现在到处都在抵制IE6了</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 26 日</a>, <a href='http://www.yanxc.com' rel='external nofollow' class='url'>颜小城</a> writes: IE六好像只有常混网上的人才会抵制吧。。。</li><li><a href="http://tossp.com/wp-imitation-of-the-theme-i-m-t-green-the-conference.html">2009 年 08 月 26 日</a>, <a href='http://tossp.com/' rel='external nofollow' class='url'>砼砼</a> writes: @<a href="#comment-4337" rel="nofollow">大剑:</a>IE6不标准啊
@<a href="#comment-4351" rel="nofollow">颜小城:</a>确实，其实现在已经支持IE6了 :shock:</li></ul><hr /><h2>Related posts:</h2><ul><li><a href="http://tossp.com/green-apple.html" rel="bookmark" title="Permanent Link: 青苹果">青苹果</a><br />[color=Green][align=center]我行将远去，

却，忍不住来到你的窗前。

踌躇徘徊，

看那窗户上的婀娜。

我的心在颤抖，

你可知道？

其实，我并不忍如此离去。

刹那芳华，似水流年，

我轻声的告诉自己，

也许我将不再归来。

还记得路灯下的雨景吗？

扬扬飒飒，

飘入你那澄清的牟子里

飘入我的梦里……[/align][/color]</li><li><a href="http://tossp.com/wp-one-theme.html" rel="bookmark" title="Permanent Link: WP:one主题">WP:one主题</a><br />算下来用WordPress也快一年了，期间风风火火的换了很多的主题，但也总是这不满意，那不满意的

每个不同的主题，打印页面的DIV结构也不近相同，由于不是自己写的，每次，对别人主题的修改总是让我大大的费神啊

人就是这样犯贱，总是要逼着，才能做一些事儿，估计大多数人都我和我一样有很严重的牙膏情节——挤一下，出来一点，呵呵

第一做的这个主题就取名叫“one”了，以hybrid为原型修改，hybrid是我很喜欢的一个主题框架，但是要付费才提供帮助，而且他的功能对于我来说太过于强大了，one可以理解为hybrid的简化版吧，当然是加入了我喜欢的功能的简化版，呵呵

这里就是记录“one”成长的心路历程的地方，但估计记录的不会太多，最多就只记录一个提要吧，大多数都写在SVN里面，和我一样的菜鸟可以去看看，估计对您会有一些帮助。

update @ 2009年4月11日4:22:53

我真的就如小蜜蜂一样的勤劳，评论样式框架整理完毕，这个主题的基本样式就这样了，然后，我是先加图片，还是先加AJAX呢?分类导航条，还要不要呢？这些都是问题啊，，，囧

真巧合啊，基本两天一记录，忽忽

update @2009年4月9日20:14:40

主体搭建完成，开始上站测试，这次是仿的Theme Codename H的主题样式，感谢一下。待修改的地方还有好多，路漫漫其修远啊

update @ 2009年4月7日14:02:43

主题框架基本搭建完成，开始构建CSS文件和优化函数结构。。。苍天，CSS心中的痛啊~~~囧
PS：感谢eiven童鞋提供CSS样式蓝本

update @2009年4月5日15:56:26

开始构建主题框架，以hybrid为原型，优化函数，去掉对子主题支持部分</li><li><a href="http://tossp.com/green-ribbon-merciless-earthquake-people-love.html" rel="bookmark" title="Permanent Link: 绿丝带–地震无情，人有情">绿丝带–地震无情，人有情</a><br />

  绿丝带–地震无情，人有情。

　　2008年5月12日四川汶川大地震。全省遇难人数估计在5万人以上。而今总理带领十万将士日夜征战，全国人民众志成城，全球各地捐钱捐物，网络爱心汹涌。
　　我们希望看到更多生还的笑脸!　　我们希望听到更多平安的消息!
　　我们希望送去更多有用的物资!　　我们希望一起更快重建起家园!
       “绿丝带慈善行动”的倡议：
　　系上一条绿丝带，表达您为灾区人民祈福。您还可以上网下载绿丝带，让您的 QQ 头像、MSN 头像、博客都扬起绿丝带。每扬起一条绿丝带，就代表着您为灾区人民送出的一份祝福、一份捐赠，让我们都来关注灾区，救援灾区！
　　让绿丝带提醒您，百忙之中抽一点时间，问问灾区人民怎么样了？
　　让绿丝带告诉更多人，来关注和帮助灾区；
　　让绿丝带的平安、希望和爱，充满我们的世界。
绿色代表希望，让我们一起为灾区人民挂起希望的 绿丝带，希望灾区一切平安。 
 
 

 







下载绿丝带，保存头像，在QQ、MSN更改个人设置，上传绿丝带头像， 几秒钟内就可以把QQ或者MSN头像换成绿丝带了。






QQ头像下载 MSN头像下载










下·载·桌·面


800 x</li><li><a href="http://tossp.com/wp-the-use-of-hybrid-own-theme-wordpress.html" rel="bookmark" title="Permanent Link: WP:使用Hybrid做自己的wordpress主题">WP:使用Hybrid做自己的wordpress主题</a><br />这篇日志开始step by step 的介绍怎么使用Hybrid做自己的wp主题。

　　一个Wordpress的子主题就像任何其他Wordpress主题一样，你可以把它们放在你的博客的主题目录（/wp-content/themes）下，然后在主题控制面板激活它们。它们同样拥有存在图片、脚本、截图（screenshot）、CSS的文件夹。
　　唯一不同的地方是子主题基本上不需要任何主题文件（header.php, index.php, footer.php, single.php等）。这是我们为什么不需要使用PHP的另一个原因。

首先，我们要做几个准备

	新主题是Hybrid的子主题，所以我们要先确定已经上传到了/wp-content/themes/目录中
	准备好了PHP编辑软件，还是在推荐一次啊我是用的这个Notepad++，这里我就不提供下载地址了，自己去找吧
	新建一个子主题的目录，比如，我们在/wp-content/themes新建一个名为“One Blue”的文件夹，OK，这个就是由于存放我们子主题的地方了~

这样一个简单的，准备就OK了，接下来我们开始建立第一个文件，“style.css”文件，这个文件名是必须的，不可修改哦

写下这样的信息：
/*
Theme Name: one</li><li><a href="http://tossp.com/the-basic-structure-of-the-sandbox-theme.html" rel="bookmark" title="Permanent Link: Sandbox Theme的基本结构">Sandbox Theme的基本结构</a><br />  由著名的Wordpress主题制作站Wpdesigner.com的small potato编写的。这个或许会对你了解这个空白主题有帮助。  div#wrapper [.hfeed]   </li></ul><hr /><small>Copyright &copy; 2005-2010 砼砼's Blog, content license.<br /> (Digital Fingerprint:<br /> 005fc134769e47b97a8ca2738c071bab)</small>]]></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>
	</channel>
</rss>

