Version: 1.00, by ericgtr
Developer Last Online: Feb 2022
Category: Show Thread Enhancements -
Version: 4.0.3
Rating:
Released: 04-16-2010
Last Update: 05-17-2010
Installs: 88
Template Edits
Re-useable Code
No support by the author.
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 -->
I have added a register option for guests, if you have attachments viewable by guests though feel free to strip that out of this code.
Yep tried that too AURFSCAN.
Same result each time.
To clarify. Once this code is put into postbit_attachments then all you need to do is attach a file of that format and it should play yes? Or am i missing something simple?
Yes i sure did. And double and tripple checked to make sure both files were in the /clientscript/audio folder.
Even tried editing the code thinking it might have been the way it was enterpreting the root directory. ( ./ ../ etc) But no luck either way.
I will continue to try with this, time permitting.
previously I could play tunes within the post itself, but now pop-up comes with options to open or save which I hate frankly....Can you help me out? Any ideas how to fix this?
Yep i come to the same conclusion AURFSCAN.
Wish i knew why though. So much of my forum was based on vides, music and the like being freely posted by my members.
Now i cant do any of that in any capacity.
However dissapointing i remain confident in time such things will be made available in VB.
Sooner the better
you could always use bbcode players inside a post, link to files you upload to your server etc. Ive made bbcodes for both these players and they both work to play mp3's inside a post. search for vb 3 series bbcode players here, they work on 4
this one works on 4 no worries, it uses the same player as the amp3