quanganhdo's archive

I'm Anh Quang Do (aka QAD). This tumblelog is where I talk about what I deeply care about and link to interesting articles on the interweb. If you want to reuse any of my content, feel free to do so. Just remember to put a link back to my original post.

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.

Manage Smilies

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:

Docking box

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:

Comment form

Where to get this plugin

You can grab the lastest version of Custom Smilies here. See above ↑

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:

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

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:

  1. Make sure that none of your smilie files has an underscore (_) in its name.
  2. 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


[...] http://onetruebrace.com/custom-smilies [...]


Identical ơi, nó không hiện hết các emotion tớ chọn ở cái phần bên phải khi viết bài mới


Mấy cái emotion như là :"> (Mặt ngượng) ý vẫn ko đc, cái nào có dấu " đều k đc hết


@de_so: nó chỉ hiện những emo đã có shortcut đi kèm thôi (kiểu như : D ấy)

Mấy cái có dấu " ' hoặc \ đều bị strip.


Sao tớ thấy trogn hình minh họa của cậu vẫn hiện ra đầy đủ mà


Hiện lên là vì tớ set cho nó ký hiệu khác, ko phải :-" :P


Hi

thanks for the great plugin

can I have your email please ?


Cool! Cool! Cooooooool!!! Thanks! Works good, WP 2.31, but it needs to be work with my theme.


[...] Installation Instructions Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. [...]


When I typed in a search for smilies and emoticons, I was dreading getting to many results and having to test all the plugins to see which one actually did what it was meant to!

But thankfully I came across yours first and I didn't need to look any further as it was exactly what I was looking for.

Thank you for making this plugin, it simply makes customizing smilies so much easier.

Gemma :-) [Emoticon Junkie]


Thanks for your nice words, Gemma :)

You are welcome.


[...] un poco me encuentro con este bonito plugin :cool: Custom-smilies ya te has de imaginar que hace este plugin solo con el nombre no? Bueno te cuento cambia los [...]


When I go to manage the smilies and change the text for them and hit Update, it doesn't update and the changes don't stick. Can this be fixed?


@Steve: Make sure your wp-content/plugins/custom-smilies/init.php file is writable.


It is writable. Nothing changes. I also uploaded many other Yahoo Messenger smilies and gave them my own names, and yet the only thing that comes up by the comment box area is empty image boxes, like it will only accept smilies labeled 1.gif thru 5.gif. Nothing else works. How do I fix this?


Okay, it only works after you CHMOD the init.php file to 777. You should have this in your installation instructions. The only other thing is is there a way to put the smilies in a specific order above the comment form?


Glad to know that it works. I'd add this to the installation instructions.

The ability to put the smilies in a specific order would be added to the next version. Thanks for your suggestion.


Any idea when that version might be available?


Okay, for some reason this is not working again. Everything seems to be fine except when you click on a smilie and submit a comment, the text version of it comes up, not the graphic. What do I do to fix this?


Hi,

when i managed the smilies, i get two error messages.

Fatal error: Call to undefined function sanitize_file_name() in ...\wp-content\plugins\custom-smilies\custom-smilies.php on line 204

and

Parse error: syntax error, unexpected $end, expecting ')' in ...\wp-content\plugins\custom-smilies\init.php on line 3

What can i do?

I use the WP Version 2.07


wow thanks alot for the custom similies plugin.

i am having a small problem inby blog.

when i put two smilies beside each other its not coming. exp :):) the codeit self is appearing;

but when i put space inbetween the smilie it works. so how can make it so that everytime i select a smilie it put a space in the front. or how to make it work withour putting space. thanks


@Steve: Does it work when you add the smilies to your posts?

@Hennes: I think you might have to upgrade your installation of WordPress to the lastest version. It doesn't only include bug fixes and new features but also security fixes as well.

@Krish: The smilies could work only if you put at least a space between them. If you want Custom Smilies to add a space automatically when you select them, you might need to edit the plugin file.

Just change the line that says:

var myField;

to

var myField; tag = ' ' + tag;

Hope it helps.

Page 1 of 9 Next →