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. Dear Crazy Long,

    the smilies are appearing twice in my comment form. It was not like this before and I don’t know why it is now like that.
    So I’m wondering if you can help me solve this problem?

  2. Hi Crazy,

    itss about the WP-Backend => List of all Live-Comments, I am missing the button to add Smilies into the form where I am going to reply to a comment (screenshot 01). If I am editing my recent comment-reply, I’ve got the button called “smilies” (screenshot 02).

    01: http://is.gd/dzCi0

    02: http://is.gd/dzCl5

    Pleas email me, if you’d need a dump of the site-code.

    regards ruediger

  3. Hello 🙂

    How to put smilies toolbar above “Submit” button?
    I’m using wordpress 3.0.1 and comment_form() function..

  4. Thank for answer ,
    but I’m not sure how to integrate that function to show smilies above submit button.

    My code look like this:
    comment_form(array(‘comment_notes_after’ => ‘some text’));
    which ll print ‘some text’ below comment text area and above submit button (which i want). But how to integrate here function cs_all_smilies() to print smilies on the same place.. I have tried few times and none worked..

  5. With code:
    comment_form(array(‘comment_notes_after’ => ‘some text’.cs_all_smilies().”));
    I got: ‘some text’Array

  6. @Dusan

    Hi, you need use cs_print_smilies(), not cs_all_smilies().

    You can use it as the following:

    comment_form(array(‘comment_notes_after’ => ‘some text’));cs_print_smilies();

    :hehe:

  7. Hi Crazy Loong 🙂
    Now i got smilies, but not on place I expected ^O^
    With your code smilies are printed below submit button.

    I modify your code to this:
    comment_form(array(‘comment_notes_after’ => ‘some text’.cs_print_smilies().”));
    For some reason smilies are printed above the comment form and they are not in div ^O^

  8. When we can expect upgrade, so we can make smilies in custom order?

    Thanks!

  9. Hi Crazy Loong, I love your plugin!
    Is there a way to display custom smilies in widgets? I’d love to use them in my custom text widgets. Thanks!
    我想要知道custom smilies可不可以使用在自定文字模组里,可以的话要怎么修改php,谢谢!

  10. 你好,我很喜欢这个插件,但是我在添加新文章的时候点击那个笑脸,弹出来的窗口中全是显示的红叉。。
    看你在上面说过可能是因为和某些插件冲突导致的,但是我在停用除了Custom Smilies以外的所有插件后依旧如此。。
    并且,如上面某位朋友所说,第一次弹出是在右边,关闭后再次点笑脸,它就跑左边去了,超出了左边显示边界
    请问如何处理呢?感谢
    (我是在wp后台直接安装的2.9.1)

  11. Webkit内核下
    第一次点笑脸,弹出框在右边(红叉)
    http://www.skidu.me/skidu-img/face-1-1.png
    第二次点笑脸,弹出框在左边(这个内核下它不会超出边界)
    http://www.skidu.me/skidu-img/face-1-2.png
    ———————
    IE内核下
    第一次点笑脸,右边
    http://www.skidu.me/skidu-img/face-2-1.png
    第二次点笑脸,左边,超出边界
    http://www.skidu.me/skidu-img/face-2-2.png
    ==================================
    谢谢咯 ^O^

  12. 您好,现在有个问题想问您,我已经安装此插件了,就是想让在前台评论上也实现和后台文章管理一样的效果:一个小表情,然后点击它之后弹出个窗口,然后再窗口里再选择所需要的表情,就是和后台完全一样的不要more那种!

  13. when i active yor plugin (Custom Smilies 2.9.1) every things work but i can NOT edit postd !!
    my wp : 3.0.1
    and when i INactive yor plugin i can edit my post ! :dsadasccc:

  14. @tamizi

    I can edit posts in my blog while wordpress is 3.0.1. If you can show me more about this error you said, I can help you.

  15. Hi loong,

    I’m using wordpress 3.0.1 with Fusion theme.
    I’m stuck with this smiley things all this week, and nothing happens.

    just check it in my website : here

    the smilies shown up, but they’re UN-clickable

    please help me with this issue..

  16. @loong

    i have put that
    and nothing happens..

    could you check my site again, and gimme a solution?

    i’m stuck..have no clue.. :dsadas:

  17. Hai… Please help me…

    The smilies is show up, but it’s unclickable.

    My blog is http:://www.anggadipura.com

    Thankssss… 🙂

  18. Can you describe it a little bit, i don’t know what to fix with your solution : “Please fix your ID of textarea in background.”…

    🙂

  19. @Ardie

    In the settings of Custom Smilies, you can find the input field named “The ID of comment textarea”. The default is “comment”, you can fix it.

  20. Hello
    I have version 2.9.1 of Custom Smiles, and I have tried to change the .gif files for the smiles.
    The problem is that the smiles appear at the start of the line, not in the place where they are typed.

    I changed the .gif files by uploading the files to the directory, and then assigned them symbols in the wordpress dashboard. I have not changed the custom smile files.

    Please help! thanks!

  21. I have a problem with the plugin using version 2.9.1 of the plugin and WordPress 3.0.3. If I have more than 13 defined smilies, the little box that pops up on the New Post page doesn’t load properly.

    If I have more than 13 smilies, it looks like this:

    http://img210.imageshack.us/i/customsmilies.jpg/

    If I have 13 smilies or less, it looks like this (like it should do):

    http://img508.imageshack.us/i/customsmilies2.jpg/

    It doesn’t seem to matter which smilies I define or what size the files/images are. Any ideas?

  22. How do we get the smilies to show up on the “Add New Post” page so we can insert them into our posts?

  23. 请问这个插件的表情对应的字符是存放在哪里?
    我想复制一下这个表情的字符,由于我定义了非常多的表情,因此如果要手动再设置一遍非常麻烦。
    有什么办法可以简单的复制一份设置呢?
    感谢!

Leave a Reply