[Update at 2008.11.6] This is not the latest. If you want to get the latest one, please visit http://goto8848.net/projects/custom-smilies/ .
这里不是最新版本。如果你想得到最新版本,请访问 http://goto8848.net/projects/custom-smilies/ 。
文章太长,点击进入浏览(click to see the whole post)。中文在下面。这是一个表情插件。
About It
Custom Smilies (previously named Custom Smileys) is a plugin for WordPress 2.0+. This plugin gives you a chance to personalize your posts and comments using smilies of your choice instead of default ones.
Custom Smilies (older than version 2.0) is written by QAD. Thanks for his great contribution.
The lastest version is 2.0. I have upgrade it to let it been compatible with WordPress 2.5 or greater. That’s all I do, but I will perfect it in the future. So the most is written by QAD. Thanks him again.
You can see the English Readme and more here ( new window) .
Download
You can get the latest version of Custom Smilies here. Get it
How to install
- Download and extract custom-smilies.zip; then, upload init.php and custom-smilies.php to the /wp-content/plugins/custom-smilies directory. Upload smilies folder to the /wp-includes/images directory..
- Activate Custom Smilies in your Admin Panel
- Put your smilies in smilies folder (wp-includes/images/smilies/)
- Change the emoticons by navigating to Manage > Smilies and complete the form
- If you want to add clickable smilies to your comment form, append these lines to your current theme’s comments.php file, just before the form begins:
<?php if ( function_exists(cs_print_smilies) ) {cs_print_smilies();} ?>
For ‘Paged Comments’ plugin’s users: Please place that code in wp-content/plugins/paged-comments/themes/your-theme-name/comments-paged.php to enable those clickable smilies.Please note that you can customize this list by going to Options > Smilies.Wanna play with the smilies yourself? A function called cs_all_smilies() has been added, which return all the smilies you’ve got in this format: Array (’Smilie’ => ‘Path to smilie’)
How to upgrade
For Custom Smilies 1.0 and 1.1 users, simply replace the file custom-smilies.php in your plugins folder with the newer one. Do NOT overwrite init.php, as it contains your smilies’ definitions.
For those who are still using Custom Smileys version 2.4 (which was released more than 1 year ago!), you can upgrade it to the lastest version by following this procedure:
- Backup your database! (better safe than sorry – i’m not responsible for any data loss caused by this plugin)
- Move all of your smilies to your smilies folder (wp-includes/images/smilies/)
- Deactivate Custom Smileys 2.4 without uninstalling it
- Download, extract, then upload Custom Smilies 1.0 to your blog
- Activate Custom Smilies 1.0 in your Admin Panel
- Delete custom-smileys.php if you wish
关于这个插件
Custom Smilies 是一个 WordPress 插件。它可以让你自由地在你的文章和评论中使用表情来代替默认的表情。
Custom Smilies 最新的版本是 2.0。我修改了以前的版本,使它可以工作在 WordPress 2.5 下。
人员名单
Custom Smilies 2.0 是我(Crazy Loong)更新的。2.0以前的版本是由 QAD 编写的。
安装 Custom Smilies 后,你可以把自己需要的表情添加到 WordPress 的表情文件夹里(wp-includes/images/smilies/),然后在 Manage > Smilies 里添加表情对应的字符。非常简单哦。
设置好以后,这些表情就可以在任何文章、页面和评论里使用了。例如,当你输入 :D, :), :|(你可以自己定义这些符号)时,就会在文章出现对应的表情。或者,通过在点击相应的图标来插入到文章中。
你还可以添加这些表情列表到你的评论框周围。这样,你就可以进行可视化操作了,并在评论中方便的使用表情。而且,这个列表可以根据你的需要进行调整,以满足你的要求:
下载
你好,博主,请问这个插件如何做到“添加这些表情列表到你的评论框周围”?谢谢。
谢谢,已在原作者博客找到,只要添加
就可以了。
我是这个插件的忠实粉丝,在水煮鱼那里提出的意见,谢谢你们的关注哦!
希望博主能够接手以后的更新工作哦!
@ Lucy
你上面的那个 pingback 就是原作者发过来的。
现在这个,我只是简单地让他兼容了2.5,我会逐渐地完善它。
嗯。原作者那里我4月就“呼吁”更新了,可是他似乎心意已决。
:ooo:
:ooo: :ooo:
我现在也都在使用这个插件。。。
謝謝你啊!這是個很好用的 plug-in :ooo:
还不怎么会用,能说的详细点么?
😥
:haha: :orz: :outfly1: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :suprise: :ooo: :smoke: :cry1: 😥 :han:
太好玩了,睡觉去!
:haha: :outfly1: :run: :han: :out: :outfly: :loveheart: :iamdead: :byebye: :shy: :ohohoh: :suprise: :smoke: :cry1: 😥 :han: :haha: :haha: :haha: :outfly1: :run: :han: :out: :outfly: :loveheart: :iamdead: :byebye: :shy: :ohohoh: :suprise: :smoke: :cry1: 😥 :han: :haha: :haha: :haha: :outfly1: :run: :han: :out: :outfly: :loveheart: :iamdead: :byebye: :shy: :ohohoh: :suprise: :smoke: :cry1: 😥 :han: :haha: :haha:
再玩次!
:haha: :orz: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han: :haha: :orz: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han: :haha: :orz: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han: :haha: :orz: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han: :haha: :orz: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han:
太好玩鸟……
:cry1: :han: :han: :run: :orz: :outfly: :byebye: :ooo: :han: :han: :ohohoh: :ooo: :ohohoh: :byebye: :shy: :ooo: :ohohoh: :loveheart: :loveheart: :outfly1: :run: :iamdead: :outfly1: :ooo: :loveheart: :ooo: 😥 :shy: :shy: :outfly1: :shy: :run: :outfly1: :out: :loveheart: :suprise: :ooo: :shy: :run: :byebye: :suprise: :suprise: :loveheart: :ohohoh: :run: :run: :han: :outfly1: :out: :haha: :orz: :outfly1: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :shy: :ohohoh: :suprise: :run: :ooo: :smoke: :cry1: 😥 :han: :run: :suprise: :yun: :out: :outfly: :loveheart: :question: :iamdead: :byebye: :ohohoh: :run: :smoke:
原来是这么用地哦!知道鸟!防止类似事件发生,坚决不装介个……嘎嘎……
我只是测试一下 :ohohoh:
谢谢介绍,已经在我的网站用上了,很有趣.
我也想知道怎么加到评论模板里面,
:yun: :out: :outfly: :shy: :suprise: :ooo: :haha: :haha: :orz: :outfly1: :yun: :out: :outfly: :question: :loveheart: :ooo: :run: :smoke: :suprise: :ohohoh: :shy: :shy: :byebye: :iamdead: :han: 😥 :cry1: :cry1: 😥 :han: :run:
SO FUN!
请问这个插件可以用到2.2.3吗?
To: funny
可以在2.2.3上使用
thank you! :ooo: :ooo:
Thanks you for upgrade it! finaly! :cry1: 😥
thanks :ooo: :ooo:
您好,首先感謝您的介紹。
但我安裝後實際寫文時出了問題,使用表情文章會自動換行。
請看 http://rin.rinbid.com/?p=27
不知道這是哪邊設定錯誤了嗎?
To: Rin
你出现这种情况是因为你主题的缘故,你需要修改主题下的style.css文件。
找到.main p img,将下面的 display: block;删除
真的是太感謝您了!問題已順利解決。謝謝!
Hi.
I have a problem with the plugin.
It is running on Wp 2.5.1.
In the admin area the smilies can be clicked at and inserted in the textarea.
But in the wp-blog I can only se the smilies in the textarea but they are not clickable, If I for example write 😀 the smilie also be seen in the comment after submitting.
Can tou help me with some tip why the smilies are not cable to be clicked.
Thanks for your’e help.
To: joacim
there are two way to resolve the program.
the one, open comments.php that in your theme.Find id=”respond” and replace it with id=”comment”.
the other one is, open for25.php.In line 315 and line 316, you will see three “comment”.Replace them with “respond”.
That’s all.one of the above will resolve the program.
“Crazy Loong”:
I wish you all luck. Thank you so very much for your’e help.
Best regards / Joacim.
哈咯,我空间用的是老外的那个1.2版的,WP 2.5.1,没出啥问题~~
不晓得新版本有什么区别不?
Hi!
I´ve got a problem with updating Smilie Codes (What to type). After clicking the update button at the bottom of the side there are a lot of errors like this:
Warning: fopen(../wp-content/plugins/custom-smilies/init.php) [function.fopen]: failed to open stream: Permission denied in /www/htdocs/XXXXXXX/test2/wp-content/plugins/custom-smilies/for25.php on line 261
Warning: fwrite(): supplied argument is not a valid stream resource in /www/htdocs/XXXXXXX/test2/wp-content/plugins/custom-smilies/for25.php on line 273
Warning: fwrite(): supplied argument is not a valid stream resource in /www/htdocs/XXXXXXX/test2/wp-content/plugins/custom-smilies/for25.php on line 282
... I´m using WP 2.5.1. Hope you can help me!
Forget it… My fault! I´ve reinstalled the plugin a few days ago and forgot to make the init.php writeable. Works fine now! 🙂
在后台添加了表情的代码,前面的表情显示不出来,只是一个叉叉.后面的MORE的部分能显示,郁闷!
where can i find smilies folder?
@yudhi
you can find it in wp-include
how to customize the smiley using css?
Will this plugin work with WordPress 2.6?
To: Michael
After WordPress 2.6 stable release, I will do it.
:cry1: 😥 :han: :han: :han: :run: :suprise: :yun: :out: :ohohoh: :ohohoh: :shy: :byebye: :iamdead: :question: