hey guys, does anybody has the sample of, how to insert smiley/icon in the message board (php or javascript)
i have the simple one:
//character typed
$typed_chars = array('X(', '8)', 'oO');
//to_be_replace
$icon_set = array("<img src=\"../smiley/smiley 1/fire24.png\">", "<img src=\"../smiley/smiley 1/icon_cool24.png\">", "<img src=\"../smiley/smiley 1/startle24.png\">");
//convert
$message = str_replace($typed_chars, $icon_set, $message);
I want to make it easier to user, they just click on the smiley and it will show in textarea. Like http://www.daniweb.com message area with the smiley drop-down
:)