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

<channel>
	<title>滔滔不绝 &#187; 代码</title>
	<atom:link href="http://taotaotalk.cn/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://taotaotalk.cn</link>
	<description>滔滔不绝Tao Tao Talk，伴你每一天！</description>
	<lastBuildDate>Fri, 29 Oct 2010 03:53:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>不用插件也能显示隐藏的表情</title>
		<link>http://taotaotalk.cn/2009/10/show-smiles-without-plugin/</link>
		<comments>http://taotaotalk.cn/2009/10/show-smiles-without-plugin/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 15:26:20 +0000</pubDate>
		<dc:creator>ben-Q</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[插件]]></category>
		<category><![CDATA[表情]]></category>

		<guid isPermaLink="false">http://taotaotalk.cn/?p=904</guid>
		<description><![CDATA[        WP Grins这个插件我想很多朋友都在用吧？自打我更换了一个新的国内的主机，访问速度大幅提升之后，我就在想要不要把我的站点上一些不必要的文件清理出去呢？用FTP登入之后，插件文件夹就成了我需要清理的不二选择，里面有很多插件，包括用过的没用过的，自带的以及后来安装的，少说也有二十六七个了，需要的留下，不需要的清理，没用过的那就更不用考虑了，因为用的麻烦还不如不用，索性删除，还能为我那并不算十分宽裕的主机留出一部分空间展示美丽的照片呢。

        说干就干，先整理掉了最占空间的插件语言包，我堂堂的一个中国人干嘛要留着呢吗多老外的语言包呢，有的光看后缀都猜不透到底是哪里的语言，删除工作进行的差不多，我一刷新空间，天，腾出了近8M的空间，基本上相当于我再建上一个WordPress了，呵呵。

<span class="readmore"><a href="http://taotaotalk.cn/2009/10/show-smiles-without-plugin/" title="不用插件也能显示隐藏的表情">阅读全文——共1019字</a></span>]]></description>
			<content:encoded><![CDATA[<p>        WP Grins这个插件我想很多朋友都在用吧？自打我更换了一个新的国内的主机，访问速度大幅提升之后，我就在想要不要把我的站点上一些不必要的文件清理出去呢？用FTP登入之后，插件文件夹就成了我需要清理的不二选择，里面有很多插件，包括用过的没用过的，自带的以及后来安装的，少说也有二十六七个了，需要的留下，不需要的清理，没用过的那就更不用考虑了，因为用的麻烦还不如不用，索性删除，还能为我那并不算十分宽裕的主机留出一部分空间展示美丽的照片呢。</p>
<p>        说干就干，先整理掉了最占空间的插件语言包，我堂堂的一个中国人干嘛要留着呢吗多老外的语言包呢，有的光看后缀都猜不透到底是哪里的语言，删除工作进行的差不多，我一刷新空间，天，腾出了近8M的空间，基本上相当于我再建上一个WordPress了，呵呵。</p>
<p><span id="more-904"></span>        偶尔发现了WP自带的那些评论表情不用WP Grins也能够显示，要问为什么？当然使用<a href="http://lifangchao.com/wp-trackback.php?p=205" target="_blank">代码版的评论表情</a>咯。这样子做出来的效果既清爽又不易产生插件依赖症，还能够有效的提高页面载入速度，何乐而不为呢？</p>
<p>    首先你可以通过FTP把这个“<a href="http://www.brsbox.com/filebox/down/fc/578fe83148e67d319fdd55c34065a199/rand/40955389" target="_blank">smiley.php</a>”文件上传到主题所在目录下，而后去编辑主题文件里的“comments.php——也就是评论页面”。<br />
找到这里的代码：</p>
<div class="source" style="FONT-FAMILY: '[object]','Consolas','Lucida Console','Courier New'; COLOR: #000000"><span style="COLOR: #000080; FONT-WEIGHT: bold">&lt;textarea</span> <span style="COLOR: #ff0000">name=</span><span style="COLOR: #0000ff">&#8220;comment&#8221;</span> <span style="COLOR: #ff0000">id=</span><span style="COLOR: #0000ff">&#8220;comment&#8221;</span><span style="COLOR: #000080; FONT-WEIGHT: bold">&gt;&lt;/textarea&gt;</span></div>
<p> </p>
<p>然后在它上放加入这样一条代码：</p>
<div class="source" style="FONT-FAMILY: '[object]','Consolas','Lucida Console','Courier New'; COLOR: #000000"><span style="COLOR: #008080">&lt;?php include(TEMPLATEPATH . ‘/smiley.php’); ?&gt;</span></div>
<p> </p>
<p>        这样子就可以了！不过不变的事情也来了，因为在后台发布日志的时候可以自动转换（当然前提是你要在“设置”&gt;&gt;“撰写”选项下面勾选“转换如 <code> <img src='http://taotaotalk.cn/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </code> 和 <code> <img src='http://taotaotalk.cn/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </code> 的文字表情符号为图像”），为了避免遗忘，好在日志里面插入，我就把这些表情的代表文本拿出来，大家一起学习一下。</p>
<table border="0" cellpadding="2" width="90%">
<tbody>
<tr>
<th><a href="http://taotaotalk.cn/tag/expression/" class="st_tag internal_tag" rel="tag" title="标签 表情 下的日志">表情</a></th>
<th>文本1</th>
<th>文本2</th>
<th>完整文本</th>
<th>表情</th>
<th>完整文本</th>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_smile.gif" alt="微笑" /></td>
<td>: )</td>
<td>:- )</td>
<td>:smile :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_lol.gif" alt="大笑" /></td>
<td>:lol :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_biggrin.gif" alt="露齿笑" /></td>
<td>: D</td>
<td>:- D</td>
<td>:grin :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_redface.gif" alt="脸红" /></td>
<td>: oops :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_sad.gif" alt="悲哀" /></td>
<td>: (</td>
<td>:- (</td>
<td>:sad :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_cry.gif" alt="哭泣" /></td>
<td>:cry :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_surprised.gif" alt="惊讶" /></td>
<td>: o</td>
<td>:- o</td>
<td>:eek :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_evil.gif" alt="邪恶" /></td>
<td>:evil :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_eek.gif" alt="震惊" /></td>
<td>8 O</td>
<td>8- O</td>
<td>:shock :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_twisted.gif" alt="扭曲" /></td>
<td>:twisted :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_confused.gif" alt="困惑" /></td>
<td>: ?</td>
<td>:- ?</td>
<td>: ??? :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_rolleyes.gif" alt="转动眼珠" /></td>
<td>:roll :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_cool.gif" alt="酷！" /></td>
<td>8 )</td>
<td>8- )</td>
<td>:cool :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_exclaim.gif" alt="惊！" /></td>
<td>:! :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_mad.gif" alt="激动" /></td>
<td>: x</td>
<td>:- x</td>
<td>:mad :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_question.gif" alt="疑问" /></td>
<td>: ? :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_razz.gif" alt="嘲笑" /></td>
<td>: P</td>
<td>:- P</td>
<td>:razz :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_idea.gif" alt="想法" /></td>
<td>:idea :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_neutral.gif" alt="中立" /></td>
<td>: |</td>
<td>:- |</td>
<td>:neutral :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_arrow.gif" alt="箭头" /></td>
<td>:arrow :</td>
</tr>
<tr>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_wink.gif" alt="眨眼" /></td>
<td>; )</td>
<td>;- )</td>
<td>:wink :</td>
<td><img src="http://taotaotalk.cn/wp-includes/images/smilies/icon_mrgreen.gif" alt="呵呵" /></td>
<td>:mrgreen :</td>
</tr>
</tbody>
</table>
<p>参考：<a href="http://codex.wordpress.org/Using_Smilies" target="_blank">WordPress Smileys</a>  我这是加强版的表情，嘿嘿~</p>

	标签：<a href="http://taotaotalk.cn/tag/wordpress/" title="WordPress" rel="tag">WordPress</a>, <a href="http://taotaotalk.cn/tag/code/" title="代码" rel="tag">代码</a>, <a href="http://taotaotalk.cn/tag/plugin/" title="插件" rel="tag">插件</a>, <a href="http://taotaotalk.cn/tag/expression/" title="表情" rel="tag">表情</a><br />
]]></content:encoded>
			<wfw:commentRss>http://taotaotalk.cn/2009/10/show-smiles-without-plugin/feed/</wfw:commentRss>
		<slash:comments>67</slash:comments>
		</item>
	</channel>
</rss>

