The Arcive of vBulletin Modifications Site. |
|
Brando Amp3 Mp3 Attachment Player Details »»
|
|||||||||||||||||||||||||||||
This is an update of https://vborg.vbsupport.ru/showthread.php?t=161567 which now works with the new variable system in vB4. I've tested it in 4.0.3 and it works just like the old player did in vB3.
I don't have time to figure out how products work so this is a simple template hack. Maybe someone can improve it. There is another vb4 mp3 attachment plugin that relies on player from Google which is no longer available. You host the player on your server so there is no worrying about Google moving or deleting the file. Instructions:
Brandon Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
1. have you got permission to reuse this hack ?
2. any demo 3. any images |
|
#3
|
|||
|
|||
|
Quote:
Quote:
Brandon |
|
#4
|
|||
|
|||
|
odd place for it :>
oh i see its for inline playing of mp3 or something |
|
#5
|
|||
|
|||
|
good work thx
|
|
#6
|
||||
|
||||
|
thanks alot nice job!
|
|
#7
|
|||
|
|||
|
:up:
100% perfect
|
|
#8
|
|||
|
|||
|
The added bold code is whats needed to show the player only for an mp3 file and to not display the player to guests.
Code:
<!-- 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 -->
|
|
#9
|
|||
|
|||
|
Fantastic This Make being an admin worth it . I have wanted this for years now for wavs ogg and that weird foprmat on my phone.
|
|
#10
|
|||
|
|||
|
marked and nominated thank you for the effort
|
![]() |
|
|