• I recently installed more-smilies (including the menu-header.php patch) as well as wp-grins and I am having array issues. My active smilies array is:

    $wp_smilies = array(
    ‘:-)’ => ‘icon_smile.gif’,
    ‘:D’ => ‘icon_biggrin.gif’,
    ‘:-D’ => ‘icon_biggrin.gif’,
    ‘:grin:’ => ‘icon_biggrin.gif’,
    ‘:)’ => ‘icon_smile.gif’,
    ‘:-)’ => ‘icon_smile.gif’,
    ‘:smile:’ => ‘icon_smile.gif’,
    ‘:(‘ => ‘icon_sad.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’,
    ‘:confused:’ => ‘icon_confused.gif’,
    ‘8)’ => ‘icon_cool.gif’,
    ‘8-)’ => ‘icon_cool.gif’,
    ‘:cool:’ => ‘icon_cool.gif’,
    ‘:lol:’ => ‘icon_lol.gif’,
    ‘:x’ => ‘icon_mad.gif’,
    ‘:-x’ => ‘icon_mad.gif’,
    ‘:mad:’ => ‘icon_mad.gif’,
    ‘:P’ => ‘icon_razz.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_wink.gif’,
    ‘:!:’ => ‘icon_exclaim.gif’,
    ‘:exclaim:’ => ‘icon_exclaim.gif’,
    ‘:?:’ => ‘icon_question.gif’,
    ‘:question:’ => ‘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’
    );

    ?>

    However, some of the commands aren’t working. I added :exclaim: and :question: and :confused: and none of them work. Also look at the first comment here: http://www.sydlexia.com/news/?p=107#comments

    The person typed ❓ but it displayed a colon instead of the question smiley. What is going on?

Viewing 1 replies (of 1 total)
  • You have a conversion for 😕 which produces icon_confused.gif. WP converts that, and leaves the remaining :

    You’d need to make the characters for the question mark something different that don’t overlap with another conversion

Viewing 1 replies (of 1 total)
  • The topic ‘Array issues with more-smilies plugin’ is closed to new replies.