WordPress.org

Ready to get started?Download WordPress

Forums

1.5 smilies not working? (9 posts)

  1. eXcentra
    Member
    Posted 9 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. eXcentra
    Member
    Posted 9 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...

  3. lokrin
    Member
    Posted 9 years ago #


  4. eXcentra
    Member
    Posted 9 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. :-/

  5. raena
    Member
    Posted 9 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.)

  6. eXcentra
    Member
    Posted 9 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

  7. raena
    Member
    Posted 9 years ago #

    You're welcome!

  8. slave0
    Member
    Posted 9 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

Tags

No tags yet.