WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Adding smilys... (5 posts)

  1. Anonymous
    Unregistered
    Posted 10 years ago #

    How come when i try to add new smilys they won't show up in wp-grins?

    # if the config file does not provide the smilies array, let's define it here
    if (!isset($wpsmiliestrans)) {
    $wpsmiliestrans = array(
    ' :)' => 'icon_smile.gif',
    ' :D' => 'icon_biggrin.gif',
    ':grin:' => 'icon_biggrin.gif',
    ' :)' => 'icon_smile.gif',
    ':smile:' => 'icon_smile.gif',
    ' :(' => 'icon_sad.gif',
    ':sad:' => 'icon_sad.gif',
    ' :o' => 'icon_surprised.gif',
    ' :-o' => 'icon_surprised.gif',
    ':eek:' => 'icon_surprised.gif',
    ' 8O' => 'icon_eek.gif',
    ' 8-O' => 'icon_eek.gif',
    ':shock:' => 'icon_eek.gif',
    ' :?' => 'icon_confused.gif',
    ' :-?' => 'icon_confused.gif',
    ' :???:' => 'icon_confused.gif',
    ' 8)' => 'icon_cool.gif',
    ':cool:' => 'icon_cool.gif',
    ':lol:' => 'icon_lol.gif',
    ' :x' => 'icon_mad.gif',
    ':mad:' => 'icon_mad.gif',
    ' :P' => 'icon_razz.gif',
    ':razz:' => 'icon_razz.gif',
    ':oops:' => 'icon_redface.gif',
    ':cry:' => 'icon_cry.gif',
    ':evil:' => 'icon_evil.gif',
    ':twisted:' => 'icon_twisted.gif',
    ':roll:' => 'icon_rolleyes.gif',
    ':wink:' => 'icon_wink.gif',
    ' ;)' => 'icon_wink.gif',
    ':!:' => 'icon_exclaim.gif',
    ':?:' => 'icon_question.gif',
    ':idea:' => 'icon_idea.gif',
    ':arrow:' => 'icon_arrow.gif',
    ' :|' => 'icon_neutral.gif',
    ' :-|' => 'icon_neutral.gif',
    ':neutral:' => 'icon_neutral.gif',
    ':mrgreen:' => 'icon_mrgreen.gif',
    ' :-)' => 'smiling.gif',
    ' :-(' => 'frowning.gif',
    ' ;-)' => 'winking.gif',
    ' :-P' => 'sticking-out-tongue.gif',
    ' =-O' => 'surprised.gif',
    ' :-*' => 'kissing.gif',
    ' >:O' => 'yelling.gif',
    ' 8-)' => 'cool.gif',
    ' :-$' => 'money-mouth.gif',
    ' :-!' => 'foot-in-mouth.gif',
    ' :-[' => 'embarrassed.gif',
    ' O:-)' => 'innocent.gif',
    ' :-/' => 'undecided.gif',
    " :'(" => 'crying.gif',
    ' :-X' => 'lips-are-sealed.gif',
    ' :-D ' => 'laughing.gif',
    );

    is what i added to vars.php

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    Nevermind all...i'm a dumb ass. lol. I got it now =P

  3. Anonymous
    Unregistered
    Posted 10 years ago #

    sorry me again...ok...i can't get both these smiles to work:
    ':-\' => 'undecided.gif',
    and
    ':'(' => 'crying.gif',
    sorry to bother you all with this...but i know for obvious reasons why those 2 don't work...but how can i fix it?

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    \\ and \'

  5. ByteWarrior
    Member
    Posted 10 years ago #

    I think yo have to escape them. They contain special characters.
    Use ':-\\' => 'undecided.gif', ':\'(' => 'crying.gif'

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.