I want to add a custom popup from the video and photo section (not vbulletin) on my forum.
So I added a new button to the toolbar template, I added the following code in "clientscript/vbulletin_textedit.js"
Code:
case 'attach':
{
popup = window.open('newvideo.php','video','');
}
This opens the new window, but now I want to add a button or link in that window which will add custom HTML to the text editor.
But how can I do this? I was trying to run back with the smilie popup but i cant follow it anymore.