Version: 1.00, by ericgtr
Developer Last Online: Feb 2022
Version: 3.0.3
Rating:
Released: 11-24-2004
Last Update: 05-14-2005
Installs: 149
No support by the author.
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.
The bbcode will work for an outside link as well, as long as it's a file it can recognize, it's just a parser. So give it a try and see if it works for .wmv, if not it's a matter of finding the right WMV code which is pretty easy.
as a n00b, im not following that instructiuon m8.
im having the same problem, where i have uploaded the attachment, it shows underneath the player, al is well, except i cant hear the file playing, and the player just seems to stick on "connecting"......
uploaded all ok, all the filepaths are right......scratching my head now....lol
Okay, to make sure you are storing your files in file system and not the database.
Admin CP > Attachments > Attachment Storage Type. If 'Move Items to a Different Directory' is checked it means your files are stored in the database, you need to check 'Move Items from File System into Database' to move them into the file system.
Another common problem for it not playing is an incorrect path in the template, make sure this matches your site structure exactly:
So from looking at your site in your profile it would belike this: (note, ++ is there because the language filter on this site doesn't like it, but you get the idea)
The bbcode will work for an outside link as well, as long as it's a file it can recognize, it's just a parser. So give it a try and see if it works for .wmv, if not it's a matter of finding the right WMV code which is pretty easy.
nope.
if we're only doing it this way, do we still need to make the changes in newattachmentbit?
i followed your embed install instructions and substituted your code with stitch's wmv code. it didn't work
Try deleting the existing bbcode and create a new one with all the same parameters and replace the media player code that I provided with stitch's code.
Try deleting the existing bbcode and create a new one with all the same parameters and replace the media player code that I provided with stitch's code.
ok, basically i cut and pasted your code:
PHP Code:
<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">
Okay, to make sure you are storing your files in file system and not the database.
Admin CP > Attachments > Attachment Storage Type. If 'Move Items to a Different Directory' is checked it means your files are stored in the database, you need to check 'Move Items from File System into Database' to move them into the file system.
Another common problem for it not playing is an incorrect path in the template, make sure this matches your site structure exactly:
So from looking at your site in your profile it would belike this: (note, ++ is there because the language filter on this site doesn't like it, but you get the idea)
many thanks for the prompt reply mate...working fine now.
i DID have the paths correct, but for some strange reason, the wrong attachment reference was coming up when i cut n pasted the url into the post.
that sounds wrong in itself....lol
anyways, its working fine now..again, many thanks.
Great hack, just installed and after having some trouble uploading songs (because the files were located in database, after moving them to thr filesystem, i was able to uploading the songs) - but there is a new problem now. And I bet you've answered it before but I am still not able to work it out - so I need your help.
I am not able to run the file. I am sure it has to do something with the path -....