Update: 2009.10.25 00:30
The latest release is version 2.8. You can find it here.
最新版本是 2.8。你可以在这里找到。
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.
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 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(You don’t need do this if your theme suppor the action named comment_form since version 2.3):
<?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 插件。它可以让你自由地在你的文章和评论中使用表情来代替默认的表情。
我(Crazy Loong)修改了以前的版本,使它可以工作在 WordPress 2.5 下。
人员名单
Custom Smilies 2.0 是我(Crazy Loong)更新的。2.0以前的版本是由 QAD 编写的。
安装 Custom Smilies 后,你可以把自己需要的表情添加到 WordPress 的表情文件夹里(wp-includes/images/smilies/),然后在 Manage > Smilies 里添加表情对应的字符。非常简单哦。
设置好以后,这些表情就可以在任何文章、页面和评论里使用了。例如,当你输入 :D, :), :|(你可以自己定义这些符号)时,就会在文章出现对应的表情。或者,通过在点击相应的图标来插入到文章中。
你还可以添加这些表情列表到你的评论框周围。这样,你就可以进行可视化操作了,并在评论中方便的使用表情。而且,这个列表可以根据你的需要进行调整,以满足你的要求:
下载
———- TODO ———-
Check whether init.php is writeable.
检查 init.php 是否可写。
Move the smilies folder into wp-content
将 smilies 文件夹移动到 wp-content
compliance to W3C specifications
符合 W3C 规范
To: Nici
Yes, I have got it. i will fix it. Thanks for your response.
Thanks your this plugin, it’s good!
But I would like to put them end of page (at leave a comment) like of you. because they are located on page top !
Thanks your support.
Have a good weekend!
Thks 4 this nice plugin.
Actually, smilies appear under the sent button.
woul’d be great they appear just before the comment text area in the comment form.
Could u plan this change 4 the next version ?
Best regards.
Chr.
To: Christopher
You can add cs_print_smilies() in your theme to display the list of smilies anywhere.
Hello Crazy Loong!
Thanks for your answer. I’m happy that you’re going to add that feature. 🙂 It’s ok to wait for it, take your time.
你好,真的非常感你開發這個插件。
有個小小問題請教,每當我在文章中要插入表情時,它會跳出視窗讓我選擇要插入的表情,它的位置是在畫面的正中央(圖一http://i114.photobucket.com/albums/n268/loveclaire/2009-07-22_143139.jpg),可是當我要第二次插入表情時,跳出視窗的位置會跑到左邊外面去了?!(圖二http://i114.photobucket.com/albums/n268/loveclaire/2009-07-22_143154.jpg),請問這有辦法解決嗎?謝謝
To: loveclaire
你是什么浏览器?
本機和家中另外一台電腦上的IE 8和Firefox 3.0.11皆如此,停用其他外掛也是一樣,所以可以排除瀏覽器以及外掛衝突的情形。2.4版前的舊型顯示方式正常無偏移,但管理首頁會開不出來,而換成2.4版之後的版本則都有此跳出視窗偏移現象。
Hello!
Would it be able to add a option to customise the URL of the smileys folder?
I meen if we can create a subfolder named “smileys” of the wp-content folder to include our smileys in it, we would be able to type the adress
in a fleld and this adress will be use.
Regards…
To Crazy Loon #205
Tks 4 your answer.
i know that smilies can be added manually everywhere with ‘cs_print_smilies()’
I just suggested it would be better that plugin automatically adds the similies at the top of the comment area rather than under the sent button.
Regards.
Chr.
To: Christopher
This automatical function depends on a hook in theme, so the smilies are located by your theme, not this plugin.
In conclusion, only way is to use ‘cs_print_smilies()’. :hehe:
Hello!
Isn’t This plugin compatible with 2.8 + version of WP?
Aren’t There a upgrade of this?
To: Vera
Hi,
You can use it in WP 2.8 or above.
To: YIn-Yin
Yes, it is a good idea. I need some time to code it. Thanks.
To: loveclaire
我尽快修复它。 :hehe:
To: Crazy Loong
有勞您了,謝謝
How to make it not in the pop-out box(in create a new post section) but make it appear below the create a post section? please tell me. I have about 400 smileys. those pop out is annoying me :dsadas:
To: Syahadah
No way in the current version. :dsadas:
I will consider your request. :hehe:
I love this plugin and its the best smilies plugin I think. However, I have some problems.
1.) It renders the XHTML invalid. There are validation errors on my blog (the comment page) where the smilies are above the comment form. For example:
http://validator.w3.org/check?uri=http://bouncy-bubbles.net/2009/08/30/procrastination/#comments
All those errors are due to this plugin :dsadas: how to fix them?
2.) I can not add clickable smilies on my pages. The smiley icon in toolbar of posts work and I can add smilies by clicking the smiley icon, it open the small pop window with all smilies but when editng a page, clicking the smiley icon does not open the popup :dsadas:
Please help! I dont wanna switch my smilies plugin. I love it too much :dsadasccc:
请教博主一个问题:
我在另一个博客已经定义了表情符号,我想移植到另一个博客使用。我看到你上面导出导入数据库的方式很繁琐,请问有没有更简洁的方式?毕竟对sql之类不熟悉,害怕操作出错
能否将表情自定义?
To: 紫雨老师
插件暂时还没有其它的导出方法。
To: D
这个插件就是自定义表情的。
现在可以了。谢谢。
评论可以用了。
但是文章中插入的无法显示,只显示表情的代码。我要怎样弄?
To: D
一般来说,是你的某个插件影响了。
the smilies are not showing up when i click the Custom Smilies icon on the “Kitchen Sink”… what do i do?? 🙁
crazyloong 兄,有没有考虑向后台的“评论快捷回复”中加入 Custom Smilies 按钮啊?quicktag的。
仅是建议,工作重要。 :dsadsad:
To: Bodhi
计划加上了,不过最近比较忙的哦 :dsadas:
crazy loong,2.8版本中我在comments.php中加入“ID); ?>”用以改变表情的位置,但是怎么把原来显示的那些表情删掉呀?
不删掉就有两行出来了。
To: 怡红公子
什么意思?
Another way to rearrange the smilies is to upload them in the order you want them to appear. Delete everything in your smilies folder, and then reupload the images. They’ll appear based on the time/date you added them to the folder. :hehe:
@Crazy Loong, 错了,代码没有贴完全,应该是“ID); ?>”
就是本来表情是显示在最下面的,我想让它显示在评论框的上面,就在comments.php相应位置处加了上面这个代码。但是以前在底部的表情还是存在的,造成了两行表情的问题。所以想问下,怎么把原来显示在底部的表情删除掉。如果还不明白的话,进我的博客,问题摆在那里的。 :dsadas:
To: 怡红公子
后台已经给你这个选项了,你自己看看。
Hi! I have changed to hosting, and now when I try to insert a custom smilie in some post the window with custom smilies appears very little and empty. (screenshot in http://es.tinypic.com/r/1179pjq/3).
I have uninstalled the plugin, remove the puglin folder a install again, but the error continues.
I have seen the error console of Firefox and I have obatin error in my wp-admin/post-new.php file, concerning to: smilies_list4wysiwyg is not defined.
I don’t know what do :dsadas:
Hi Crazy Loong,
same as Kanu, your plugin is great but it invalidates all the XHTML code. Is there a way to fix this ?
Thanks for your help
To: Crazy Loong
是那个设置action的选项么?没有用呢,我勾上的话两个都有,不勾的话两个都没有了,郁闷啊……
To: 怡红公子
调用的表情列表的函数是clcs_print_smilies()
To: dayer
Maybe because of cache.
To: De ci, de la
I think that I must code it to pass in XHTML validator.
To: Crazy Loong
Thanks for your quick response, but the failure continues although I clean the cache, even testing on other computers :dsadas:
hi there, i like your plugin very much. but i can’t make my emoticons clickable, plz help me, thank you.
hi there, i like your plugin very much. but i can’t make my emoticons clickable, plz help me, thank you.
To: thucpt
Fix the id of response textarea.