<?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://www.happyet.org/tag/%e8%a1%a8%e6%83%85/feed" rel="self" type="application/rss+xml" />
	<link>http://www.happyet.org</link>
	<description>自娱自乐，不亦乐乎!</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:01:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress无插件添加表情</title>
		<link>http://www.happyet.org/243.html</link>
		<comments>http://www.happyet.org/243.html#comments</comments>
		<pubDate>Mon, 06 Jul 2009 05:58:36 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[表情]]></category>

		<guid isPermaLink="false">http://www.happyet.org/archives/243</guid>
		<description><![CDATA[上回在万戈那发现了Wordpress原来本身就自带有表情以及如何使用相应代码来添加表情后。后来在另一牛人Willin Kan的博客上看到其评论上方直接就可以点击添加表情，本来是想满问问能不能放出来共享，没想到第二天真的就发出来了。 今天也在自己的blog上添加了这个功能（当然，原作者使用了js特效，更酷点），顺便也转过来，好东西大家共享，顺便记下来，以后有修改不用到处找。 在 WorPress 弄上表情符號已不是什麼新鮮事了, 但要小而不用插件, 就用這個吧! 它會在評論框上面出現所有表情圖片, 可供訪客直接挑用. 先 下載 smiley.zip 解壓縮後, 將 smiley.php 放在模板所在的路徑. 然後在 comments.php 及 guestcomments.php 的 textarea 之前的適當位置, 放上: &#60;?php include&#40;TEMPLATEPATH . '/smiley.php'&#41;; ?&#62; 如此而已~~ 如果要修改表情图片，用editplus打开smiley.php文件看看就知道怎么修改了，wp自带的表情也不错，呵呵。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 自带表情代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F239.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271490.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 自带表情代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="给WordPress评论添加计算验证功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F317.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">给WordPress评论添加计算验证功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress more标签使用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F74.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271550.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress more标签使用技巧</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[<p>上回在<a href="http://www.life-studio.cn/wordpress-emotion-images.html" target="_blank">万戈</a>那发现了Wordpress原来本身就<a href="http://www.happyet.org/archives/239">自带有表情</a>以及如何使用相应代码来添加表情后。后来在另一牛人<a href="http://willin.atbhost.net/?p=1268" target="_blank">Willin Kan</a>的博客上看到其评论上方直接就可以点击添加表情，本来是想满问问能不能放出来共享，没想到第二天真的就发出来了。</p>
<p>今天也在自己的blog上添加了这个功能（当然，原作者使用了js特效，更酷点），顺便也转过来，好东西大家共享，顺便记下来，以后有修改不用到处找。</p>
<p>在 WorPress 弄上表情符號已不是什麼新鮮事了, 但要小而不用插件, 就用這個吧! 它會在評論框上面出現所有表情圖片, 可供訪客直接挑用.</p>
<p>先 <a href="http://www.happyet.org/wp-content/uploads/smiley.zip">下載 smiley.zip</a> 解壓縮後, 將 smiley.php 放在模板所在的路徑.</p>
<p>然後在 comments.php 及 guestcomments.php 的 textarea 之前的適當位置, 放上:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/smiley.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>如此而已~~</p>
<p>如果要修改表情图片，用editplus打开smiley.php文件看看就知道怎么修改了，wp自带的表情也不错，呵呵。</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress 自带表情代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F239.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271490.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 自带表情代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="给WordPress评论添加计算验证功能" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F317.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">给WordPress评论添加计算验证功能</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress升级3.2" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F637.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/07/05/16246808.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress升级3.2</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress more标签使用技巧" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F74.html&from=http%3A%2F%2Fwww.happyet.org%2F243.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271550.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress more标签使用技巧</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>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/243.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>WordPress 自带表情代码</title>
		<link>http://www.happyet.org/239.html</link>
		<comments>http://www.happyet.org/239.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 05:08:27 +0000</pubDate>
		<dc:creator>LMS</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[代码]]></category>
		<category><![CDATA[图片]]></category>
		<category><![CDATA[表情]]></category>

		<guid isPermaLink="false">http://www.happyet.org/archives/239</guid>
		<description><![CDATA[开篇第一句，先喊一下我的口号：能用代码搞定的就绝不用插件解决！再结合本文标题，聪明的你应该已经猜到我想写什么了吧。没错，我要总结一下 WordPress 自带表情的代码来代替 WP Grins 插件。WP Grins 表情插件大家都很熟悉了，就是调用 prototype.js 实现在博客留言框的上方和编辑文章的输入框的下方添加一排表情按钮，很方便。不过这也就是我为什么讨厌用插件的原因，动不动就调用 JS，更讨厌这种 prototype.js 的巨型 JS。其实这表情并不是插件所带的，而是 WordPress 自带的，WP Grins 无非是调用了这些表情而已。 既然如此，我们只需要知道这些表情的代码就可以用啦。归纳如下： 　咧嘴笑　&#8217;:D&#8217;　&#8217;:-D&#8217;　&#8217;:grin:&#8217; 　忧伤　&#8217;:(&#8216;　&#8217;:-(&#8216;　&#8217;:sad:&#8217; 　惊讶　&#8217;8O&#8217;　&#8217;8-O&#8217;　&#8217;:shock:&#8217; 　耍酷　&#8217;8)&#8217;　&#8217;8-)&#8217;　&#8217;:cool:&#8217; 　冷笑　&#8217;:P&#8217;　&#8217;:-P&#8217;　&#8217;:razz:&#8217; 　自然的表情　&#8217;:&#124;&#8217;　&#8217;:-&#124;&#8217;　&#8217;:neutral:&#8217; 　笑脸　&#8217;:)&#8217;　&#8217;:-)&#8217;　&#8217;:smile:&#8217; 　吃惊　&#8217;:o&#8217;　&#8217;:-o&#8217;　&#8217;:eek:&#8217; 　困惑　&#8217;:?&#8217;　&#8217;:-?&#8217;　&#8217;:???:&#8217; 　抓狂　&#8217;:x&#8217;　&#8217;:-x&#8217;　&#8217;:mad:&#8217; 　眨眼　&#8217;;)&#8217;　&#8217;;-)&#8217;　&#8217;:wink:&#8217; 　大笑　&#8217;:lol:&#8217; 　右箭头　&#8217;:arrow:&#8217; 　感叹　&#8217;:!:&#8217; 　红脸　&#8217;:oops:&#8217; 　恶魔　&#8217;:evil:&#8217; 　疑问　&#8217;:?:&#8217; 　哭泣　&#8217;:cry:&#8217; 　痛苦　&#8217;:twisted:&#8217; 　好主意　&#8217;:idea:&#8217; 　绿脸先生　&#8217;:mrgreen:&#8217; 　转眼珠　&#8217;:roll:&#8217; 要记住这些代码可不容易，所以写下这篇归纳性文章，需要用时自己看看，呵呵。扩展一下，因为这些表情都是 WordPress 自带的，在 /wp-includes/images/smilies 文件夹下可以找到这些表情图片，把你自己喜欢的表情图片以原文件名覆盖就可以 DIY 属于你的表情图片了。 原文地址：http://www.life-studio.cn/wordpress-emotion-images.html<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 短代码（简码）收藏" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F394.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271365.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 短代码（简码）收藏</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自带的图片显示功能Thickbox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F365.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271247.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自带的图片显示功能Thickbox</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</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[<p>开篇第一句，先喊一下我的口号：能用代码搞定的就绝不用插件解决！再结合本文标题，聪明的你应该已经猜到我想写什么了吧。没错，我要总结一下 WordPress 自带表情的代码来代替 WP Grins 插件。WP Grins 表情插件大家都很熟悉了，就是调用 prototype.js 实现在博客留言框的上方和编辑文章的输入框的下方添加一排表情按钮，很方便。不过这也就是我为什么讨厌用插件的原因，动不动就调用 JS，更讨厌这种 prototype.js 的巨型 JS。其实这表情并不是插件所带的，而是 WordPress 自带的，WP Grins 无非是调用了这些表情而已。</p>
<p>既然如此，我们只需要知道这些表情的代码就可以用啦。归纳如下：</p>
<p> <img src='http://www.happyet.org/wp-includes/images/smilies/icon_biggrin.gif' alt=':grin:' class='wp-smiley' />  　咧嘴笑　&#8217;:D&#8217;　&#8217;:-D&#8217;　&#8217;:grin:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_sad.gif' alt=':sad:' class='wp-smiley' />  　忧伤　&#8217;:(&#8216;　&#8217;:-(&#8216;　&#8217;:sad:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_eek.gif' alt=':shock:' class='wp-smiley' />  　惊讶　&#8217;8O&#8217;　&#8217;8-O&#8217;　&#8217;:shock:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' />  　耍酷　&#8217;8)&#8217;　&#8217;8-)&#8217;　&#8217;:cool:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_razz.gif' alt=':razz:' class='wp-smiley' />  　冷笑　&#8217;:P&#8217;　&#8217;:-P&#8217;　&#8217;:razz:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_neutral.gif' alt=':neutral:' class='wp-smiley' />  　自然的表情　&#8217;:|&#8217;　&#8217;:-|&#8217;　&#8217;:neutral:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_smile.gif' alt=':smile:' class='wp-smiley' />  　笑脸　&#8217;:)&#8217;　&#8217;:-)&#8217;　&#8217;:smile:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_surprised.gif' alt=':eek:' class='wp-smiley' />  　吃惊　&#8217;:o&#8217;　&#8217;:-o&#8217;　&#8217;:eek:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_confused.gif' alt=':???:' class='wp-smiley' />  　困惑　&#8217;:?&#8217;　&#8217;:-?&#8217;　&#8217;:???:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_mad.gif' alt=':mad:' class='wp-smiley' />  　抓狂　&#8217;:x&#8217;　&#8217;:-x&#8217;　&#8217;:mad:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_wink.gif' alt=':wink:' class='wp-smiley' />  　眨眼　&#8217;;)&#8217;　&#8217;;-)&#8217;　&#8217;:wink:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' />  　大笑　&#8217;:lol:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_arrow.gif' alt=':arrow:' class='wp-smiley' />  　右箭头　&#8217;:arrow:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_exclaim.gif' alt=':!:' class='wp-smiley' />  　感叹　&#8217;:!:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_redface.gif' alt=':oops:' class='wp-smiley' />  　红脸　&#8217;:oops:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_evil.gif' alt=':evil:' class='wp-smiley' />  　恶魔　&#8217;:evil:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_question.gif' alt=':?:' class='wp-smiley' />  　疑问　&#8217;:?:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_cry.gif' alt=':cry:' class='wp-smiley' />  　哭泣　&#8217;:cry:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_twisted.gif' alt=':twisted:' class='wp-smiley' />  　痛苦　&#8217;:twisted:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_idea.gif' alt=':idea:' class='wp-smiley' />  　好主意　&#8217;:idea:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_mrgreen.gif' alt=':mrgreen:' class='wp-smiley' />  　绿脸先生　&#8217;:mrgreen:&#8217;<br />
 <img src='http://www.happyet.org/wp-includes/images/smilies/icon_rolleyes.gif' alt=':roll:' class='wp-smiley' />  　转眼珠　&#8217;:roll:&#8217;</p>
<p>要记住这些代码可不容易，所以写下这篇归纳性文章，需要用时自己看看，呵呵。扩展一下，因为这些表情都是 WordPress 自带的，在 /wp-includes/images/smilies 文件夹下可以找到这些表情图片，把你自己喜欢的表情图片以原文件名覆盖就可以 DIY 属于你的表情图片了。</p>
<p>原文地址：http://www.life-studio.cn/wordpress-emotion-images.html </p>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.happyet.org";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=5&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="WordPress无插件添加表情" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F243.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271339.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress无插件添加表情</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress 短代码（简码）收藏" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F394.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/27/1271365.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress 短代码（简码）收藏</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress自带的图片显示功能Thickbox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F365.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2010/12/17/1271247.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress自带的图片显示功能Thickbox</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="wordpress博客内容的首行缩进代码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F7.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/06/02/10706130.png" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">wordpress博客内容的首行缩进代码</font>
                    </a>
                </td>
                <td width="118" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="WordPress的object-cache缓存" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.happyet.org%2F561.html&from=http%3A%2F%2Fwww.happyet.org%2F239.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 112px !important; height: 112px !important;" src="http://static.wumii.com/site_images/2011/02/11/2646694.jpg" width="112px" height="112px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 118px !important; font: 12px/15px arial !important; height: 30px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">WordPress的object-cache缓存</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>]]></content:encoded>
			<wfw:commentRss>http://www.happyet.org/239.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

