Please note: I changed the tag names to [mp3wma] and [aviwmv] because there are a ton of video/audio formats, and this will probably not work for all of them(quicktime and realaudio come to mind).
You need to edit the bbcode.cs file, add the following code, recompile it, then copy the new binarys onto your web server.
This goes around line 84 (just before the line with "r_youtube" ) :
static private Regex r_mp3wma = new Regex(@"\[mp3wma\](?<inner>(.*?))\[/mp3wma\]", m_options);
static private Regex r_aviwmv = new Regex(@"\[aviwmv\](?<inner>(.*?))\[/aviwmv\]", m_options);
This goes around line 187 (just before "// youtube" ) :
// mp3wma
NestedReplace(ref bbcode, r_mp3wma, "<!-- BEGIN audio player --><OBJECT id=Player codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=62 width=420 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6><PARAM NAME=\"URL\" VALUE=\"${inner}\"></OBJECT><!-- END audio player --><br />", new string[] { "inner" });
// aviwmv
NestedReplace(ref bbcode, r_aviwmv, "<!-- BEGIN video player --><OBJECT id=Player codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 type=application/x-oleobject height=420 width=420 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6><PARAM NAME=\"URL\" VALUE=\"${inner}\"></OBJECT><!-- END video player --><br />", new string[] { "inner" });
Edited by user
13 years ago
|
Reason: Not specified