[eluser]oliur[/eluser]
So far I've managed to get the smileys to appear in my text area in both IE and Firefox. For it to work with IE you need to fix something in the system/helpers/smiley_helper.php. Line 96, flip that second "text" to "smiley". So, it should read:
Code:
document.selection.createRange().text = smiley;
And, also regarding smiley_js() function you should put that in your head tag as shown below where comments refer to the name and id of the text area I have used.
Code:
<?php echo smiley_js('comments','comments');?>
Now, when I click on the icons they don't appear as an icon in the text area rather their corresponding name is shown. For example, if I click on smile[
] icon it will generate
mile: and that's how it gets saved in the database as well.
I am not too fussy about that but I'd like to know how to print those back as icons. At the moment, if I display my database record it looks something like:
Quote:This is a great post. I am so happy mile: mile:
Do I need to write specific code for this?