MyBB Community Forums

Full Version: [B] Smilies bug ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
1.If Text to Replace contains double quote characters (") that it will occur error in showcode
example:
onclick="insertSmilie(':-\"');" />
onclick="insertSmilie(':\">');" />
view attachment

================================
2.Parser

In Yahoo Smileys
True
\:D/ => [Image: 69.gif]
but MyBB parser
\[Image: 4.gif]/

Fix bug?
It is a bug, it simply needs to addslashes($code); and it will be fixed.
yes, thank u.
--------

the longer Second bug
\:D/
$smilies = array(
      ":D" => "<img src=\"http://us.i1.yimg.com/us.yimg.com/i/mesg/emoticons7/4.gif\">",
      "\:D/" => "<img src=\"http://l.yimg.com/us.yimg.com/i/mesg/emoticons7/69.gif\">",
      ); 

$t = "hi u :D \:D/"; 
$t = strtr($t, $smilies); 

echo $t;
true
#2 is a limitation - it won't be fixed. Also #1 was already addressed