Custom Smilies 1.2
Custom Smilies has been taken over by Crazy Loong and a WP 2.5-compatible version could be found at his blog: http://goto8848.net/2008/05/custom-smilies-20/What it does
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 was selected as one of 30+ plugins for WordPress comments and 300+ tools for running your WordPress blog. These lists were conducted by Mashable, as of July 24th, 2007 and August 16th, 2007.This plugin was first released in 2005 and it is now updated to be compatible with WordPress 2.3.3. It might not work with WordPress 2.5, though.
The lastest version is 1.2 [released on 19.01.2008]. It is also the very last version released under my name, as I have decided to halt the development of this plugin.If you want to take over this project, feel free to leave a comment here, or send me an email to quanganhdo@onetruebrace.com.
Credits
Custom Smilies is written by me, QAD. Great thanks to Mastermnd, Evolver, and countless number of commenters for their great contribution.
How it works
After installing Custom Smilies, you can start adding your own smilies by putting all image files in WordPress's smilies folder (wp-includes/images/smilies/), then navigate to Manage > Smilies in your Admin Panel and customize which emoticon is associated with which smilie. Believe me, it's as easy as 1, 2, 3.
The smilies can then be added to any posts and comment by typing emoticons such as :D, :), :|, you name it. Or, by clicking any of them in the docking box within your Write page:
You can also add these clickable smilies to your comment form, so that your visitors could know exactly which smilies can be used in the comment. This list could be customized to suit your need:
Where to get this plugin
You can grab the lastest version of Custom Smilies here. See above ↑
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:
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
Changelog
Version 1.0
- This version uses flat file to manipulate your smilies, instead of messing around with your precious database
- Clickable smilies can be added to your posts regardless of which editing mode you are in (Visual or Code)
- Clickable smilies are now cursor-aware, which means the text you are typing no longer loses focus
Version 1.1
- Problems with file names have been fixed
- A space is put right after your smilie automatically
- Now you can specify which smilies to be displayed above the comment form
- A function that returns all of your smilies has been added - cs_all_smilies()
Version 1.2
- A space is put before your smilie as well
- Blog URL has been changed to WordPress URL so that Custom Smilies could work with all configuration
- A link to show more/less smilies has been added to the comment form
Troubleshooting
In case Custom Smilies doesn't work well with your blog, follow these steps:
- Make sure that none of your smilie files has an underscore (_) in its name.
- Make sure the wp-plugins/custom-smilies/init.php file is writable. CHMOD it to 777 or something like that.
If none of them fixes your problem, let me know by leaving a comment here. Support is no longer provided. Use this plugin at your own risk! (though I don't think it will ever have a chance to screw up your blog)

Comments
Hi,
i have the same problem.
Only the text version of the smilies come it up. (comment and post area)
@Micha: If this problem occurs in both your posts and comments, check your Smilies option (under Options > Writing).
Make sure the box is ticked.
Hi,
i checked the options and the smilie option was ticked.
The standard smilies from wordpress working fine. ( :) = a smilie picture )
Just this plugin give me only the text version. :(
I think I figured that out. Your init.php file isn't CHMODded correctly. Change its permission to 777 and it should work properly.
Hope that helps.
Hi,
the init.php file have the permission 777.
The Plugin is not working.
Okay, I've messed around this and this is what happens. The only way the smilies show up is if a) you only put one smiley in a post and b) there is a space between the smiley and whatever text the smiley comes after in the post. This is ridiculous, as many people who comment like to use more than one smiley and some may not know to put a space before using one. I'm sure this can be worked out in the code somehow, so please tell me (and everyone else) how to fix this, or release a new version that works properly. Thank you.
[...] Installation Instructions By: Michael Cromarty Friday, December 14, 2007 Plugins 4 [...]
hi i use this great plugin, and i also had that problem, so i modify the code
find the line:
function grin(tag) {
then add this just below:
tag = tag + ' ';
this solves the half of the problem ;)
插件推荐:Custom Smilies...
Custom Smilies专门为wordrepss设计的一款插件,能在你回复或者文章中添加自定义的表情,使得你的文字更加生动.上一个版本是2.4,在05年的时候已经停止更新了.不过现在作者带来了最新版本的Cus...
@all: Thanks for your comments.
@Micha: Well, I'm confused. Not sure what your problem is. :(
@Steve: If you spend time reading my code, you might find out that it actually uses WordPress's built-in convert_smilies function. That means, what my plugin does is changing the smilies array, nothing more, nothing less. If you face those 2 problems while using Custom Smilies, it's likely that the same thing happens when you disable the plugin.
@Francisco: Yes, I'd add this to the next version.
@Franciso: Where EXACTLY do you put this line? Meaning, what other code is around it to make sure I add this in the right place?
@QAD: I have not spent time looking at your code, just messing around with the text and the smilies themselves to see what the results would be when a comment was submitted. It doesn't make sense how this plugin is not working, since at the top of this page you can see how you are able to put smilies next to each other. Why is it not working with mine? My website is included in my name if you want to view my source code to see if there is anything I need to change. Otherwise, I have not messed with the plugin code, so that shouldn't be the problem unless the plugin code you created is wrong. If there aren't any problems you can see, is there something I would need to change in WP's convert_smilies function that you mentioned for it to work?
I just want to say too I'm sorry for creating such a fuss. I just like this plugin and it doesn't seem as though there are any other good smiley plugins out there. Just wish I could get this to work. :)
great plugin works very well thanks :D!
[...] essendo su wordpress.com (si progetta migraggio a netsons ) non posso installare un plugin come custom smilies e devo inserire le emoticon “a manina” trattandole come immagini. Se qualcuno a qualche [...]
Yes I have this very same problem when trying to edit smilies.
I have one set where they are just called angry, blush, cheer, sad, ect and these save absolutely fine and appear in posts and in the right hand side when writing a post.
I then have a set that are called panda_angry, panda_blush, panda_cheer, panda_sad, ect and these are the ones that I cannot edit, nor do they show up in posts or in the right hand side when writing a post.
Any ideas what the problem might be?
Geordnete Liste aller im Blog Karneval vorgestellten Wordpressplugins...
Ich habe selbst mit einem Artikel bei dem Blog Karneval von Michael mitgemacht. Neugierig wie ich bin habe ich mir natürlich auch die anderen Beiträge angesehen und einerseits viele bekannte, aber auch viele für mich neue Plugins gefunden. Der angen...
Could you update this in the Wordpress plugin database so that users are made aware of the plugin (as well as being able to use the one-click-plugin updater to update it)?
That would be really great!!
Bác có biết làm thế nào để hạn chế số Emoticons hiện lên ở khung Comment không ?
@Gemma & Steve: It'd be easier if any of you could provide me access to your blog's back-end, so that I could track the problem down. If it's possible, feel free to send me an email at quanganhdo (at) onetruebrace.com.
@Leanne: I'd add this plugin to the plugin repository as soon as all problems are solved.
@Duy: Phiên bản hiện tại tớ chưa làm tính năng hạn chế số emoticon, nên bạn phải tự edit plugin theo ý muốn.
Is it possible to edit this plugin, so only certain smilies get shown when adding a comment?
@Fox: it's possible. Just open the plugin file and make changes to the cs_print_smilies() function.
[...] view plaincopy to clipboardprint? [...]
Thanks hun, this plug-in saved my smiley horrors.
[...] smilies è un plugin per Wordpress, ufficialmente rilasciato da QAD at DonationCoders, che permette di personalizzare le “faccine” da inserire nei commenti e nei post dei [...]
I've had the same problem as many... But I've found out why!
Smiliesfiles with underscores are not working.
Example: icon_biggrin.gif The plugin tries to read it as icon-biggrin.gif
_ becomes -
The problem starts in the configuration, because those wrong filenames are already written to init.php
It might have something to do with the function: sanitize_file_name()
[...] WP Grins có thể thay thế bằng Plugin Custom Smilies của bác Quang Anh , Mình thấy dùng rất [...]