I'm working on a new mod for my forum but am having trouble writing the function in inc_func_common.asp.
I think I'm getting close to making this work but need some help.
I'm basically working on a new [media] tag. What you do is place a url to virtually any video from YouTube, Dailmotion, Vimeo or any site like that and it will open in a lightbox style pop up. It will also open swf files, mp3 files, flv files, images... just about anything.
Reminder Note: Remember to include your .js files in inc_header_short.asp as well.
inc_code.js
function mediabox() { var text = getText(); if (helpstat) { alert("Media Tag plays various media formats.\n\nUSE: [media]http://www.domaingoeshere.com/media.swf[/media]"); } else if (basic) { AddTxt="[media]" + text + "[/media]"; AddText(AddTxt); } else { if (text) { txt=prompt("URL Link to media file.",text); } else { txt=prompt("URL Link to media file.","Text"); } if (txt!=null) { AddTxt="[media]"+txt+"[/media]"; AddText(AddTxt); } } }
// playerpath: 'http://www.yoursite.com/forum/media/player.swf', // Path to the mediaplayer.swf or flvplayer.swf file playerpath: '<% =strForumURL %>', // Path to the mediaplayer.swf or flvplayer.swf file
Thank you for responding but I think it is ok to some problem?
leatherlips problem this mod conflit for yuor mod automatic tag ! remember ? and yuo send file all estension and utomatic upload insert tag for this mod not automatic tag i 'am leave
Etymon, thanks for the additional code and the button. I have to ask though, what does the M B Stand for? I can think of Media, but I don't know about the B. I also have another button in mind that I may use.