Scandal
02-04-2015, 06:55 PM
Well, I have a textarea:
<textarea name="myname" id="myid"></textarea>
I want to add a button next to this textarea with smilies popup, so when someone clicks it, it opens the vbulletin's default smilies popup window. When the user click to a smilie, the smilie should added to the <textarea>.
I do some ways but with no result.
An example of the link:
<a href="#" onclick="window.open('misc.php?do=getsmilies&editorid=vB_Ed itor_001','Smilies'
,'statusbar=no,menubar=no,toolbar=no,scrollbars=ye s,resizable=no,width=430,height=720'); return false;">LINK</a>
What I should add to my template code? :(
I have stack to the section of the connection of popup with the textarea and also what other I must include to the html code for it to work? I need to input the smilies to the textarea when user clicks to a smilie.
Thanks :)
<textarea name="myname" id="myid"></textarea>
I want to add a button next to this textarea with smilies popup, so when someone clicks it, it opens the vbulletin's default smilies popup window. When the user click to a smilie, the smilie should added to the <textarea>.
I do some ways but with no result.
An example of the link:
<a href="#" onclick="window.open('misc.php?do=getsmilies&editorid=vB_Ed itor_001','Smilies'
,'statusbar=no,menubar=no,toolbar=no,scrollbars=ye s,resizable=no,width=430,height=720'); return false;">LINK</a>
What I should add to my template code? :(
I have stack to the section of the connection of popup with the textarea and also what other I must include to the html code for it to work? I need to input the smilies to the textarea when user clicks to a smilie.
Thanks :)