Back to vBulletin 4.x Template Modifications

Embedded MP3 Attachment Player
Mod Version: 1.00, by ericgtr

vB Version: 4.0.3 Rating: (16 votes - 4.94 average) Installs: 88
Released: 17 Apr 2010 Last Update: 18 May 2010 Downloads: 777
Not Supported Template Edits Re-usable Code  

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}&amp;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.

Download

File Type: %1$s mp3_player.txt (1.1 KB, 639 downloads)
File Type: %1$s audio_player.zip (68.2 KB, 751 downloads)

Screenshots

Click image for larger version
Name:	mp3_player.jpg
Views:	2579
Size:	106.6 KB
ID:	115921  

Similar Mods

Miscellaneous Hacks aMP3 - (mp3 attachment player) vBulletin 3.6 Add-ons
New Posting Features Tigur MP3/Media Player Post Integration - Integrate MP3/FLV Player into Post vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024