hi guys, i have been looking hi and low and unable to fins a good example or explanation onto inserting a script / mod / block into SMF that when a administrator or a given group can insert media player tags to play media files when thread is viewed. more on the lines of MKmedia, waiting version 2 to be released - but found a bbcode mod for vbulletin and works a treat - but nothing for SMF. i rather use SMF due to it been an opensource or free bulletin board that has some outstanding features.
found the following
Lainaa<html>
<head>
<title>Embedding Windows Media Player</title>
</head>
<body>
<!-- Check Media Player Version -->
<SCRIPT LANGUAGE="VBScript">
<!--
On Error Resume Next
lngMP70 = IsObject(CreateObject("WMPlayer.OCX"))
' Windows Media Player 7 Code
If (lngMP70) Then
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""286"" height=""225"">"
document.write "<PARAM NAME=""url"" VALUE=""http://ncnetshow/station1.asx"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "<PARAM NAME=""uiMode"" VALUE=""mini"">"
document.write "</OBJECT>"
' Windows Media Player 6.4 Code
Else
document.write "<OBJECT ID=MediaPlayer "
document.write " CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
document.write "CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
document.write " standby=""Loading Microsoft Windows Media Player components..."" "
document.write " TYPE=""application/x-oleobject"" width=""286"" height=""225"">"
document.write "<PARAM NAME=""FileName"" VALUE=""http://ncnetshow/station1.asx"">"
document.write "<PARAM NAME=""AutoStart"" VALUE=""true"">"
document.write "<PARAM NAME=""ShowControls"" VALUE=""1"">"
document.write "</OBJECT>"
End If
-->
</SCRIPT>
</body>
the bbcode i am using in Vbuletin:
Lainaa<Table align="center">
<tr >
<td align="center" valign="bottom" background="images/misc/mediabg.gif" border="0" alt="" width="345" height="304">
<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="400">
<param name="URL" value="URL to video">
<param name="rate" value="1">
<param name="balance" value="0">
<param name="currentPosition" value="1">
<param name="defaultFrame" value>
<param name="playCount" value="1">
<param name="autoStart" value="-1">
<param name="loop" value="-1">
<param name="currentMarker" value="0">
<param name="invokeURLs" value="-1">
<param name="baseURL" value>
<param name="volume" value="100">
<param name="mute" value="0">
<param name="uiMode" value="full">
<param name="stretchToFit" value="0">
<param name="windowlessVideo" value="0">
<param name="enabled" value="-1">
<param name="enableContextMenu" value="0">
<param name="fullScreen" value="0">
<param name="SAMIStyle" value>
<param name="SAMILang" value>
<param name="SAMIFilename" value>
<param name="captioningID" value>
<param name="enableErrorDialogs" value="0">
<param name="_cx" value="7938">
<param name="_cy" value="6482">
</object>
</td>
</tr>
</table>
Please anyone --- help :)
as an admin of your forum, you can embed music. for your users to have this capability, you must enable html for them, and even then it may not work for regular users, but for the admin, it will.
[html]<EMBED><BGSOUND SRC="http://www.your_domaincom/midi/joy2world.mp3"></NOEMBED>[/html]