View Full Version : smilie box
AN-net
03-02-2004, 11:03 PM
<a href="#" onclick="smilie(':sango:'); return false;"><img src="http://www.animationation.net/community/images/smilies/demonslayerf.gif" alt="Sango" border="0" /></a>
how can i code it so that on click it adds the bbcode. im using it on a different page then where the smilie box is. so how can i code this? cause i dont see any javascript for it>_< thanks in advance
Andreas
03-02-2004, 11:29 PM
function smilie() is defined in vbulletin_stdedit.js
But I think you will also need vbulletin_global.js and maybe vbulletin_editor.js
AN-net
03-02-2004, 11:40 PM
i included vbullet_editor.js and vbulletin_stedit.js but it still doesnt work(vbullet_global.js is included in header include)
Andreas
03-02-2004, 11:42 PM
You got an editor control on that page?
Any JavaScript errors?
AN-net
03-03-2004, 12:26 AM
there is no editor cause im trying to use it with my shoutout box, i am getting an object expected error
Andreas
03-03-2004, 12:30 AM
there is no editor cause im trying to use it with my shoutout box, i am getting an object expected error
That's the reason :)
AN-net
03-03-2004, 12:42 AM
is there a way i can do it without an editor?
Andreas
03-03-2004, 12:50 AM
You could write your own functions to put smilies/bbcode - or use the appropriate names for the controls/form so vB's standard functions will work.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.