1.5 smilies not working? (9 posts)

  1. eXcentra
    Posted 11 years ago #

    Anybody else having the same problem?

    I've tried out certain smilies like :P, :), and :D but they don't work. And for some reason, certain ones like :razz: shows up (as a :P smiley but I don't know if that's what it's supposed to be...)

    How do I fix this?

  2. James Huff
    Support Representative
    Posted 11 years ago #

  3. eXcentra
    Posted 11 years ago #

    Tried it out and it doesn't seem to work. :(
    I uploaded it in binary and everything. It seems that only :D works...

  4. lokrin
    Posted 11 years ago #

  5. eXcentra
    Posted 11 years ago #

    Well, I've "solved" the problem.

    You can't make a smiley as the first thing on a new line. Before you make a smiley, there has to be text before it. :-/

  6. raena
    Posted 11 years ago #

    It won't work if it is the first on the line because some of the definitions in vars.php are prefixed with a space. You can alter this behaviour in your wp-config file -- just add an array of smileys and their associated icons, without the spaces in front of the emoticons.

    Somewhere above the line that says 'Stop editing,' put the following:

    // smiley array

    $wpsmiliestrans = array (
    ":D" => "grinny.gif",
    ":-D" => "grinny.gif",
    ":grin:" => "grinny.gif",
    ":)" => "smiley.gif",
    ":-)" => "smiley.gif",
    ":smile:" => "smiley.gif",
    // (keep adding smileys to suit)
    ":mrgreen:" => "icon_mrgreen.gif",

    Note the lack of spaces in front.

    You can copy the array from vars.php and remove those spaces if you need to remember which phrase triggers each icon. It's easier than editing vars.php, cause that will get overwritten next time you apply an upgrade.

    (ETA: this at least worked fine for me; if it buggers things for you, I apologise.)

  7. eXcentra
    Posted 11 years ago #

    Thanks for the help! :D

    The next time I upgrade, I'll just edit the vars.php file again. It's easier to do that for me. :P

  8. raena
    Posted 11 years ago #

    You're welcome!

  9. slave0
    Posted 11 years ago #

    i have some problems with my smilies, here's my blog: http://x.victorox.com

    as u can see from some of my posts, some of the smilies display weirdly.. i get this "ops:' class='wp-smiley' />" after some of them...

    any idea why?

    many thanks in advance

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.