Description:
I ran across a request for the ability to play someones audio straight from the attachment bit, i had a few minutes to spare so i created it.
Very very cool!
I was wondering if this is possible. I was wondering if you can implement a feature where you can limit the amount of seconds the player can play. So let say an mp3 file is 3 minutes long and I want the player to play only the first X seconds (like 30 secs). Can this be possible?
not sure what you mean exactly, its possible to do it in posts with a custom BBCODE.
let's say i have uploaded an mp3 to the post. If i save the post the player will show up..awesome. works great.
now, lets say i am typing out a description of the song, then click on the paperclip and choose the song i uploaded. It inserts this code into the post - [attach] 14 [/attack]. This creates a link to download the song, but no flash player appears.
(where in this case, 14 is the attachment id)
This would be great if this attach code worked because you could place the player anywhere you want in your post, instead of just having them all listed normally as attached files. hope you understand, if not let me know...
also, i wouldn't know the custom bbcode u mentioned..
I have a large 35 meg mp3 file (speech) that I want users to be a able to click on and play. How do I get it to work? I don't see any new BBcode after adding this mod and when I try to add the mp3 file (it's too big anyway) using the attach files in a post, it says that it's not the correct type?
I'm not a member of the demo board, so I can't see the vBulletin post code that makes it work there.
I have a large 35 meg mp3 file (speech) that I want users to be a able to click on and play. How do I get it to work? I don't see any new BBcode after adding this mod and when I try to add the mp3 file (it's too big anyway) using the attach files in a post, it says that it's not the correct type?
I'm not a member of the demo board, so I can't see the vBulletin post code that makes it work there.
Anyone help me our with a basic example?
Thanks..
Regards,
Badger
Go to your Admin Control panel, and look at the Navigation menu on the left:
Attachments -> Attachment Manager -> Add New Extension
add mp3 and set "Maximum Filesize" to the size of your mp3 you want to upload.
This mod does not use BB code - it allows mp3 attachments to be played inline. After you make the above changes then upload your mp3 and it should play inline if you have this mod installed. If you want guests to be able to listen to it then you need to set registered/not logged in to allow download of attachments or they will not be able to hear the mp3
This mod does not use BB code - it allows mp3 attachments to be played inline. After you make the above changes then upload your mp3 and it should play inline if you have this mod installed. If you want guests to be able to listen to it then you need to set registered/not logged in to allow download of attachments or they will not be able to hear the mp3
Thanks...
Added the mp3 code as per instructions. I tried to upload the 35 meg mp3 file as an attachment and it simply died after about 10 minutes.
It would be nice if we could use this mod to point to mp3 files stored directly, that are already stored on the server (not try to make them attachments), or point the mod to mp3 file links stored on a separate server (externally).
Added the mp3 code as per instructions. I tried to upload the 35 meg mp3 file as an attachment and it simply died after about 10 minutes.
It would be nice if we could use this mod to point to mp3 files stored directly, that are already stored on the server (not try to make them attachments), or point the mod to mp3 file links stored on a separate server (externally).
I'll have to look around for another option....
Un-installed....
Thanks again for the help... :up:
Regards,
Badger
this is the wrong addon for what your trying to do. You are looking for a MP3 player BBCODE.
Actually the only thing I did was to change the template to parse if we are in blogs.. from $vbulletin->templatecache['postbit_attachment'] to $vbulletin->templatecache['blog_entry_attachment']
if we are not in blogs it works as usual..
It now seems to work fine in vblogs AND showthread
and i'm happy
Felix
[EDIT]: Just corrected one bracket.. and a line that got lost in cut & paste AND added that the player only appears for logged in users.. (if you want all users to see the player.. remove AND ($vbulletin->userinfo['userid'] > 0) at the beginning..)