The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Embedded media player in post Details »» | |||||||||||||||||||||||||
This is my first mod for VB, I personally need it on my site because it's focus is MP3's, it may be able to be customized for other uses I would think. What it does is embeds Windows Media Player into the body of the post (as well as the regular attachment) using bbcode and plays the attached MP3 file. What this does upon completing the upload is allows the user to copy and paste the URL to the attached file if they choose.
Also, since this bbcode is the Windows Media Player it may also be able to play .avi, .wmv, .mpg etc. So to broaden this you can change the [MP3] [/MP3] tag to something else like [MEDIA] [/MEDIA] for example. There is no option to secure this to specific groups, however you can use Princeton's Allow Group to Read Titles / Not Content modification as an alternative. Better template formatting, also maybe add a javascript function so that a user can click to add the line of code to the post. If you find this useful please Click Install Update: Added an option to allow only certain groups to add the option to view/paste the URL in their post. Show Your Support
|
Comments |
#132
|
||||
|
||||
It's hard to guess without seeing your setup, which template modification are you using, the one with or without restrictions (there are two options). If the one with restrictions try replacing it with the one without just to test.
|
#133
|
||||
|
||||
Quote:
As I said the file can be attached via manage attachments and shows up fine and is clickable opening quicktime player. the bbcode appears correct in admin and have double checked this in the post. The replacement code in bbcode [mp3] is as follows <object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" id="Player" width="400" height="200" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,0,0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject"> <param name="URL" value="{param}"> <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="0"> <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"> <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp" src="{param}" rate=1 balance=0 currentPosition=1 playCount=1 autoStart=0 loop=-1 currentMarker=0 invokeURLs=-1 volume=100 mute=0 uiMode=full stretchToFit=0 windowlessVideo=0 enabled=-1 enableContextMenu=0 fullScreen=0 SAMIStyle SAMILang SAMIFilename captioningID enableErrorDialogs=0 _cx=7938 _cy=6482 width=400 height=200> </embed> </object> thanks |
#134
|
||||
|
||||
Okay, in your bbcode what did you setup your tag to be i.e. mp3 etc? We want to be sure that this line matches the tags in the template mod.
So if it's MP3 it should look like this: Code:
[MP3]http://www.yoursite.com/vb/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] |
#135
|
||||
|
||||
bbcode
[MP3]http://www.the-ice-castle.co.uk/forum/file.mp3[/MP3] template [MP3]http://www.the-ice-castle.co.uk.co.uk/forum/attachment.php?attachmentid=$attach[attachmentid].mp3[/MP3] post [MP3]http://www.the-ice-castle.co.uk/forum/attachment.php?attachmentid=227.mp3[/MP3] |
#136
|
||||
|
||||
Try this, nuke the bbcode and re-add it, don't change anything else.
|
#137
|
||||
|
||||
ok sorry no change though. mmmh :nervous:
|
#138
|
||||
|
||||
Do you have windows media player installed? It will not work with quicktime using that embedded media code. I would register at your forums to see but it looks like it may contain adult content and I am at work.
|
#139
|
||||
|
||||
Quote:
It contains adult material please be aware sent you pm. Not sure if windows media player installed how would I check this I presume you mean installed on the server not local machine. |
#140
|
||||
|
||||
Quote:
Instructions say Code:
Use {option}: No Enjoy! |
#141
|
||||
|
||||
Dont you just hate that LOL - thank you very much :nervous:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|