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 |
#52
|
|||
|
|||
everything is done but when im click on play batten song not play , how i fix it . my hosting supported mp3 file http://www.desifunbox.com/thread12.html
|
#53
|
|||
|
|||
Tag and Thank you Very Much
|
#54
|
|||
|
|||
Got me stumped at the second. I added the code to postbit attachment and edited it to reflect my urland uploaded the attached file to root of my server. I have allowed for .mp3 to be allowed as attachments. I have uploaded a couple and no luck. It just comes up as a link.
url is http://www.ftw.net.au/showthread.php...an-test-thread! Small word of warning. Its an over 18 site i guess. Content can get a bit racey so dont look around just stick to thread at hand |
#55
|
|||
|
|||
You dont upload file to server, you attach file in post
|
#56
|
|||
|
|||
I did attach file to post.
That is the result. I also uploaded the .swf player my server to play it from there. Thats the file i pointed at in the postbit hack. |
#57
|
|||
|
|||
get rid of everthing you did to install this and use this https://vborg.vbsupport.ru/showthread.php?t=242738
If you still want to use this google one , post the code that you put in your postbit attach template |
#58
|
|||
|
|||
Tried that AURFSCAN and still the same result.
I must be missing something. I see in that thread you got it going well. SO just edit specific themes postbit attachement adding the supplied code then upload the player and javascript. Should be a no brainer. Yet its not working for some reason. I will persist however. This is somethin i really need. |
#59
|
|||
|
|||
yep thats it, might be the links in your code are not pointing correctly to the player files ??
post the code your using |
#60
|
|||
|
|||
Certainly mate.
In postbit / postbit_attachment above existing code i placed this. Code:
<!-- Embed Player --> <script src="./clientscript/audio/audio-player.js" language="JavaScript"></script> <object style="vertical-align: middle;" id="./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" width="290" height="24" data="./clientscript/audio/player.swf" type="application/x-shockwave-flash"> <param value="./clientscript/audio/player.swf" name="movie"/> <param value="playerID=1&soundFile=./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" name="FlashVars"/><param value="high" name="quality"/> <param value="false" name="menu"/> <param value="transparent" name="wmode"/> </object> <!-- /Embed Player --> Cant remember now to be honest. Damn stomach infection is running wild in my house currenly. |
#61
|
|||
|
|||
place it below ???
Code:
<li> <img class="inlineimg" src="{vb:stylevar imgdir_attach}/{vb:raw attachment.attachmentextension}.gif" alt="{vb:rawphrase file_type_x, {vb:raw attachment.attachmentextension}}" /> <a href="attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}"<vb:if condition="$show['newwindow']"> target="_blank"</vb:if>>{vb:raw attachment.filename}</a> ({vb:raw attachment.filesize}<vb:if condition="$show['views']">, {vb:rawphrase x_views, {vb:raw attachment.counter}}</vb:if>) </li> <br /> <!-- Embed Player --> <vb:if condition="$show['member']"> <vb:if condition="$attachment[attachmentextension] == mp3"> <script src="./clientscript/audio/audio-player.js" language="JavaScript"></script> <script src="./clientscript/audio/audio-player.js" language="JavaScript"></script> <object style="vertical-align: middle;" id="./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" width="290" height="24" data="./clientscript/audio/player.swf" type="application/x-shockwave-flash"> <param value="./clientscript/audio/player.swf" name="movie"/> <param value="playerID=1&soundFile=./attachment.php?{vb:raw session.sessionurl}attachmentid={vb:raw attachment.attachmentid}&d={vb:raw attachment.dateline}" name="FlashVars"/><param value="high" name="quality"/> <param value="false" name="menu"/> <param value="transparent" name="wmode"/> </object> </vb:if></vb:if> <!-- /Embed Player --> |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|