The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Embedded MP3 Attachment Player Details »» | |||||||||||||||||||||||||||||||
This is a simple modification that will embed an "attached" MP3 player so the file can be played inline. It uses a simple flash player from Google. There are many MP3 player mods but none that I could find that would actually play an attached file and in my community this was a the most missed feature since the upgraded to 4.x.
Unzip and then upload the attached audio_player.swf to your server, then modify the path where it says http://www.YOURSITE.com accordingly. Open up postbit_attachment and add this at the very bottom: HTML Code:
<!-- Embed Player --> <vb:if condition="$show['member']"> <embed type="application/x-shockwave-flash" src="http://www.YOURSITE.com/audio-player.swf?audioUrl=attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" /> </vb:if> <BR /> <vb:if condition="$show['guest']"> <a href="/register.php">Register for free</a> today to download files or play them directly in our embedded media player </vb:if> <!-- /Embed Player --> Download Now
Screenshots
Show Your Support
|
Comments |
#72
|
|||
|
|||
Thats working. Although it gave a few errors with that code. Missing some " or so it says.
Anyway it does load up the player now. Only it errors opening the file. Half way there already though and i assume its something simple now so i will go play with it for a while and see. Thanks once again AURFSCAN. Appreciated. |
#73
|
||||
|
||||
Great I have use this as Mp3 Player BB code too.
Thanks 5star |
#74
|
|||
|
|||
DAMINK make sure the link in between the tags are quoted
for bbcode |
#75
|
|||
|
|||
Quote:
I got it working. Actually more accurately it may have been working all along The file size i was using may have been too big. I tried a smaller mp3 and it was fine. So now i am left wondering where to change the settings to allow for bigger files to play? I have increased the upload size in attachments. It seems to attach fine just not play fine. But essentially it is working and for that i cant thank you enough AURFSCAN. You have been patient with me mate. Cheers. :up: Using this same theory i was able to get video to play on my forum now also YAY!!!!!!! One happy chappy here. Thanks again all. And the size limit seems to be attachment related which dont bother me as i have a upload script i made a long time ago for members and they use that. Now everything is perfect. (Cant wipe the smile off my face guys and gals) |
#76
|
|||
|
|||
You'll probably find your host is restricting you to the size of upload,changing the upload size in VB serves no purpose if your host dosen't allow it.
|
#77
|
|||
|
|||
Quote:
I am able to play any size now using my own upload system etc. Running a charm i have to say now. Thanks for the bbcode advice everyone and sorry for hijacking this thread However i hope the advice given to me can help others while using this plugin or editing to suit. |
#78
|
|||
|
|||
is there any way that when you finish the first file, it automatically moves on to the second without having to hit play on the next file? the other thought was is there a way that users can download all attachments with a single click?
|
#79
|
||||
|
||||
just a problem within this : when i have attach sth like pdf files, the player shows too, is there any way to make it to be shown just within mp3 files?
|
#80
|
|||
|
|||
Thanks =) installed
|
#81
|
|||
|
|||
i use this code, works like a charm
Code:
<!-- Embed Player --> <vb:if condition="$show['member']"> <vb:if condition="$attachment[attachmentextension] == mp3"> <embed type="application/x-shockwave-flash" src="{vb:raw vboptions.bburl}/audio-player.swf?audioUrl=attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" width="400" height="27" allowscriptaccess="never" quality="best" bgcolor="#ffffff" wmode="window" flashvars="playerMode=embedded" /> </vb:if> </vb:if> <!-- /Embed Player --> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|