Hello all. I lately tried to to show the smilyes in the comment template. But it didn’t worked. First I tried to put the javascript code in the header :
<!--
function add_smiley(smiley)
{
opener.document.getElementById('comment_form').comment.value += " " + smiley + " ";
window.close();
opener.window.document.getElementById('comment_form').comment.focus();
}
//-->and the smilyes ee code above the comment form:
{exp:emoticon columns="4"}
<tr class="row">
<td class="red"><div>{smiley}</div></td>
</tr>
{/exp:emoticon}But it didn’t work. When I click on the icon, the smile isn’t added to the textarea.
Next I tried to embed the smilyes template in the comment template, but the same result. Does anybody know what am I missing? I think I have to make some modifications to the JavaScript, but I don’t have any know knowledge of this kind.
Thank you.