MyBB Community Forums

Full Version: Inferno Shoutbox is not able to use smilies with multiple shortcut codes + fix
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
You won't be able to use emoticons which have more than one 'shortcut code' (i.e. : ) and :-) for same smiley).  Selecting that kind of smiley from emoticon list is going to be futile (kinda nothing happens then).

Here is some solution for this bug:

find 263 line of infernoshout.php:

foreach ($smilies as $s)
{
$html .= '<a href="#" onclick="javascript: inferno.append(\'' . $s['find'] . '\'); return false;"><img title="' . $s['name'] . '" src="' . $s['image'] . '" /></a> ';
} 


and add between:

foreach ($smilies as $s)
{
$tmp = explode("\n", $s['find']);
$s['find'] = $tmp[0];
$html .= '<a href="#" onclick="javascript: inferno.append(\'' . $s['find'] . '\'); return false;"><img title="' . $s['name'] . '" src="' . $s['image'] . '" /></a> ';
}