Post discussion

# Taming WordPress smilies

Posted: Nov 26, 2005, under WordPress. Add a comment!

The emoticons used by WordPress can be a rowdy bunch. Learn how to replace them with your own smilies, and, most important, how to control they way they behave and look.

You can add a comment:
Identify yourself here, or login.

(only seen by admins)
(optional) if you want people to visit


Smilies: (click to append)

11 comments

RSS2 feed for this discussion.

  1. Posted by antonio nardella, on December 27, 2005, 13:39.

    hello, i just upraded to wordpress 2.0 and this system doesn't work anymore.
    any help?

    thanx

  2. Posted by Skippy, on December 27, 2005, 15:44.

    As stated, this article covers version 1.5.x. When I get a chance to look at WP 2.x I will update it.

  3. Posted by antonio nardella, on December 28, 2005, 12:51.

    thank you :lol:

  4. Posted by Saz, on January 22, 2006, 12:56.

    Hey, thanks for this very handy explaination, however, I've followed it to the letter and it's not working for me. The emoticons aren't appearing. I used the same ones from beccary.com, so I didn't even need to change the example code you used in your explaination. But still no luck.
    Any ideas?

    Thanks.

  5. Posted by Skippy, on January 22, 2006, 16:17.

    Saz: did the smilies appear before you made the changes ie. with the wp-config.php that the install produced for you? Are you using WP 1.5? Did you enable smilies from the admininstration? Did you put Becca's images exactly in the same directory the old ones were in?

    If you did everything right, then please paste your wp-config.php here (but without the DB_ stuff at the top, of course).

  6. Posted by Javi Vicente, on June 23, 2006, 04:19.

    Do you know how can I write the texto of a smiley without it appears? For example, I want write down :smile: without the smiley appears, but only in one post, not always. The check option in admin panel is not valid ;)

  7. Posted by Skippy, on June 23, 2006, 15:21.

    I'm afraid this plugin has nothing to do with that. This plugin only creates clickable smilies and adds the codes to the comment area, that's all. WordPress decides how to interpret them.

    However, I've noticed that most smilies need a space in front of them to be recognized. So if you omit that space and stick the smilie against something, it won't be made into an image.

    Example: _:) The :) didn't appear.

  8. Posted by Lauren, on April 11, 2007, 00:46.

    Hi, I tried to do exactly as explained here, but it's not working for me. Instead of seeing my images I get this:
    /hippie-kitty.com/wordpress/wp-includes/images/smilies/Ssmile.gif' alt=':smile:' class='wp-smiley' /> /hippie-kitty.com/wordpress/wp-includes/images/smilies/Ssmile.gif' alt=':)' class='wp-smiley' />
    Does it have to do with the format of the images I uploaded? I just uploaded them regularly… I was reading on another site about changing the smilies that you have to upload them in binary format. Is that the case here? If so, how do I do that. Is it possible for you to email me your response? Thanks so much!

  9. Posted by Skippy, on April 25, 2007, 10:11.

    Lauren, please make sure you placed the code exactly where it's supposed to be in the file. That's pretty much all there is to it, unless a plugin is somehow messing with the smilies big time. Anyway, I see on your blog that you've managed in the meantime.

    And no, the binary transfer doesn't have anything to do with it. It's important to make sure you transfer the images as binary, of course, but if you didn't it would misbehave differently from what you've seen (you'd just see the text smiley instead of an image).

  10. Posted by Viq, on July 19, 2007, 05:55.

    I use wordpress 2.1.3 and this doesnt work. :/ I've done exactly as the guide but the smilies doesnt show. It just gets ":)" without the "". I get no errors. I hope you have an solution, and this guide rocks!

  11. Posted by Skippy, on July 19, 2007, 21:10.

    Viq, the guide works just as well under WP 2.1.x as well as 2.2.x. Please make sure you haven't disabled smilies from your blog options. See "Options > Write > Convert emoticons".

    Second possiblity: it's possible that you only see the text instead of the smiley because your custom images aren't under wp-includes/images/smilies/, or are not named correctly, or don't have the proper rights, or have been garbled during upload on the server and so on. Right-click on the smiley text and see "Properties". If it suggests that it's in fact an image there, you know it's something to do with this second possibility.

Jump to comment box