Custom Smilies

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

  1. 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..
  2. Activate Custom Smilies in your Admin Panel
  3. Put your smilies in smilies folder (wp-includes/images/smilies/)
  4. Change the emoticons by navigating to Manage > Smilies and complete the form
  5. 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:

  1. Backup your database! (better safe than sorry – i’m not responsible for any data loss caused by this plugin)
  2. Move all of your smilies to your smilies folder (wp-includes/images/smilies/)
  3. Deactivate Custom Smileys 2.4 without uninstalling it
  4. Download, extract, then upload Custom Smilies 1.0 to your blog
  5. Activate Custom Smilies 1.0 in your Admin Panel
  6. 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 规范

451 thoughts on “Custom Smilies”

  1. I love this plugin, but why doesn’t it show up in Internet Explorer? It works great in Firefox, but when I use IE at work, the clickable smilies on the comment form don’t show up.

    Any suggestions?

  2. is there a way to use the same smilie for multiple inputs?

    for example i want 😉 and 😉 to go to the same picture.

  3. Hello. Currently, it shows the smilies that I wanted to show in the comments form but when I click on “show more,” it reveals all of the smilies in the smilies folder. Is there a way to only put which smilies I want for the comment form? Thanks!

  4. Hi Crazy Loong!
    Thanks a lot for this great plugin! It is exactly what I was looking for. 🙂
    I just wonder in which way the smilies are sorted…It seems to be the ascending file name, but sometimes a smilie appears in a unexpected place (for example a file named 02frech_08.gif before 02frech_07.gif in my blog).
    Is there any way to influence the sorting order?

  5. Hi!

    I just upgraded to version 2.3 of your plugin. I encountered a problem with integrating smilies into the commentsform. I used this code (as in previous versions): to print smilies above the textarea.

    Now the smilies are displayed twice. One time at the place i put the code in, and one time after the comment submit button. How can i remove the automatic added smilies (the second one)? And: Is it right, that the init.php file is no longer needed?

    Hope you can help me!

    Regards
    Michael

  6. aaaahhh… i had to remove ID); ?> from my comments.php to solve the error. sorry for this posting…

    but i have another question: there are some validation errors within your plugin: line 279 column 116 – Warning: ‘<‘ + ‘/’ + letter not allowed here…

    Is there a way to resolve it?

  7. To: Michael
    What validation?
    I think that you could give me your url, so I can check it.

  8. 大哥,帮个忙,升级以后,默认表情的布局可以修改吗?在我的页面里,表情分布在“提交”按钮下面的话会很不协调,我想改回原来的位置

  9. I love this plugin. I’m currently using WP 2.6.2, and recently upgraded (through WordPress) to plugin version 2.3. Prior to the uprade, clickable smilies showed up on the create new post page when I was writing a post. But since the upgrade, they don’t show up anymore. What do I need to do to get the smilies back on my create a new post page?

  10. Honestly, I don’t like 2.3 version. It screwed my smiley form position. I’m using

    But, the smiley box appears twice. All I want is I can place smiley box on anything place I want…

  11. Hmm… Broken quote…
    I’m using php code for smiley placement, and I like it! I can put smiley box everywhere on my template. But, in 2.3 it appears twice…

  12. To: Lynn Daniels
    The clickable smilies have been integrated with TinyMCE. You can find in the editor’s toolbar.

    To: Lee
    It seems that it’s inconvenient for you. I will add a switch to close the function.

  13. Hello! Thanks for this! What I like in 2.3 is the “more” to see More smileys.

    What I do Not like in 2.3 is the same problem as Lee says. The smileys appear twice in my comment form, because I already use the PHP code to put the smiley form in my comments.php template.

    I will remove line 368 for now. Can you please make the option in 2.4?

    Thanks again ^O^

  14. Thanks for the response, Crazy Loong. Unfortunately, mine’s not showing up. Is there a setting I need to change or something else I need to upload in order to get the smilies to show on my new post page?

  15. To: Lynn Daniels
    I’m currently using WP 2.6.3, if you Modify the folder name “custom-smilies-se”, you can’t find in the editor’s toolbar. :hehe:

  16. Great plugin!
    But, I have some problem. Sometimes, the smiley code didn’t converted into image on our comments. I saw this problem on some blogs using this plugin.

    You can see this problem appears at this comments blog.

    Hope we can found the problem… :hehe:
    See you…

  17. To: DB
    Yes, I have check it. The bug will appear when you use < because of character entity in html. I will fix it as soon as possible. Thank you.

  18. To: Sam Zuo
    Thanks. I checked; that’s not my issue. That folder has not been renamed. I did update through the WordPress auto update — should I try downloading from the website and updating manually? Would that make a difference?

  19. I reloaded the plugin manually; nothing changed. I did find that if I switch to the visual editor I get a button that opens a popup window with smilies, but not down below “categories” like it shows in the screenshot. Is this correct?

  20. Same like DB, I have same problem too…

    And I found that sometimes If I write my comments like this

    test comment line 1 :smileycode:
    test comment line 2

    Then after I click submit, that line converted into only one line (sometimes the smiley code didn’t converted into image to). So the line will be:

    test comment line 1 :smileycode: test comment line 2

    To fix it, I must edit my comments and add extra enter hit, so the line will be separated (but with extra space).

    test comment line 1 :smileycode:

    test comment line 2

    Another way is I edit my comment, and add tag to separate that line…

    Hope you’ll fix this problem

  21. Another way is I edit my comment, and add tag to separate that line…

    Sorry, what I meant is add break tag…

  22. Then after I click submit, that line converted into only one line (sometimes the smiley code didn’t converted into image to). So the line will be:

    Please check this

  23. #

    24. Crazy Loong | 2008年11月10日 13:22

    To: Lee
    You can remove the line 368 in for25.php, so it will be the same as 2.2.
    #

    25. Crazy Loong | 2008年11月10日 13:28

    To: Robin
    删除for25.php的268行。

    幸好上面有句英文的368…要不然找268行是个空行..

    直接呆住了..

  24. To: 或许
    有时候在中英之间切换,回答的时候打错了。因为我奉行评论不修改的原则,错了,我也只会重新发一个回复。 ^O^

  25. 我升级到2.2版后,很多主题里文章的评论位置都出现了上下都有相同的表情,请问如何解决?旧版本没发现有这个问题的。请看图:[url=http://tu.6.cn/pic/show/id/1574465][img]http://i3.6.cn/cvbnm/c4/ac/e8/64ea16ed104a23e2ed4a9e1f777171db.jpg[/img][/url]

  26. Hy crazy loong. When you release the new version that fix my problem before? I also found same problem like AB said…

  27. To: DB, AB
    Thanks your response.
    Yes, I have found this problem. But I have no time to fix it in this month. If I can complete task, I will check it in the next month.

Leave a Reply