PDA

View Full Version : Add-On Releases - Brando Amp3 Mp3 Attachment Player


brandondrury
05-17-2010, 10:00 PM
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:
Unzip Brando-Mp3-Attachment.zip, paste the "audio" folder in your forumroot/clientscripts folder.
Open up postbit_attachment template
Paste the code from brando-mp3.txt at the very top of the template


Brandon

TimberFloorAu
05-17-2010, 11:24 PM
1. have you got permission to reuse this hack ?
2. any demo
3. any images

brandondrury
05-17-2010, 11:28 PM
1. have you got permission to reuse this hack ?
Nope. I guess they can remove it if it's against TOS. I just figured I'd take 5 minutes and pass on what numerous people have asked for. I had to swap out the variables myself. I figured I could save people some time.

2. any demo
3. any images
I have no time for this. The code works. Maybe another person can pretty up this thread if they really want to. Sorry, I'm just insanely busy.

Brandon

your24hourstore
05-18-2010, 12:36 AM
odd place for it :>

oh i see its for inline playing of mp3 or something

AURFSCAN
05-18-2010, 06:45 AM
good work thx

sweetguy2004
05-18-2010, 10:39 AM
thanks alot nice job!

AURFSCAN
05-18-2010, 06:29 PM
:up:


100% perfect :D

AURFSCAN
05-18-2010, 08:46 PM
The added bold code is whats needed to show the player only for an mp3 file and to not display the player to guests.




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

rootsxrocks
06-06-2010, 08:54 PM
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.

rootsxrocks
06-06-2010, 08:57 PM
marked and nominated thank you for the effort

MudRacing
06-06-2010, 09:27 PM
good job!
Serves only a small explanation on how to enable mp3 attachments

rootsxrocks
06-09-2010, 07:23 AM
I don't wanna be dificult or anything but whats the posibility of this working for wav and ogg ?

D19RNY
06-10-2010, 07:17 PM
where can I find the postbit_attachment template ?

COL NIL SATIS
06-10-2010, 07:30 PM
where can I find the postbit_attachment template ?

In admin cp

goto style manager
find the style you want to update
style options.. scroll down to edit templates
open postbit templates
postbit attachment is below mate ;)

khet
06-22-2010, 11:32 AM
Hi!
It is working.
Thanks!:up:

D19RNY
06-22-2010, 10:49 PM
it doesnt work any more it was working perfectly yesterday

dankreiner
07-20-2010, 04:18 PM
whats the possibility of being able to play a number of mp3 attachments with one click and having the option of playing individually?

The_Rascal
10-29-2010, 02:50 PM
Works a treat - thanks :)

sulasno
10-29-2010, 03:25 PM
is this working for vB4.0.8 ?

AURFSCAN
11-07-2010, 05:06 PM
is this working for vB4.0.8 ?

yes :up:

Krusty1231
12-30-2010, 10:19 AM
Working for me....nice - voted and rated.

Thank you.

sulasno
12-30-2010, 10:58 AM
can anyone confirm that it is working for vB 4.1.0

edgemedia
02-16-2011, 04:08 PM
Can someone tell were the postbit_attachment file in the vb 4.1.1 is. Somehow i can't find it?

starman?
08-17-2011, 01:58 PM
working in 4.1.5. Thank you very much to Brandon for the initial product and Aurfscan for the refinement. Good work. Cheers!

Toorak Times
03-31-2014, 01:41 PM
Sorta got there!

I thought I'd give this a try on 4.2.2pl1. It sorta worked once, 1 outa 4 ain't bad. I thought I did it wrong, but it woiked-with bugs! FINALLY worked out I had to set up another

My site is connected to a lot of independent Oz musos and I have been frustrated by not having simple ways to express themselves, sell their music even. The volume of original music I have lined up requires that Members can upload their tracks, or our Reviewers can drop mp3s in they have been sent to artists without me having to upload to the database for them as is with most players. It is excellent value as they can put up lesser than top quality to disenchant pirates, or just put up previews. For instance, the one that DOES work is Shane Howard, from, Goanna Band that had huge international hit Solid Rock (https://www.youtube.com/watch?v=Lf0_m5oZW7c) with the didjeridoo playing...its his latest work (Almost first time listeners!)!

An mp4 version would be awesome also, anything above that I just dream about! Something that handled ALL common video versions would be awesome. I have search so hard for stuff that works in the Blogs, Calendars and CMS, I'll test it in all and report back.

I also use vBTube, but none of the Videos play on Apple devices...doh...

http://www.tooraktimes.com.au/showthread.php/21635-mp3-Embedded-Player?p=21884&posted=1#post21884

It is wonderfully simple way of members easily uploading their tracks.

Any help here would be appreciated, cheers

yotsume
10-20-2014, 12:43 PM
Installed and works perfect on vBulletin 4.2.2 Patch Level 1.

I used the following code because your original has two errors.

<!-- Embed Player -->
<vb:if condition="$show['member']">
<vb:if condition="$attachment[attachmentextension] == mp3">
<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}&amp;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}&amp;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 -->

Crossbow
01-19-2015, 07:24 PM
Tried this in 3.8.8 as there is no new one made for that version.

The old mod was for 3.6 I loaded it and plays but the box just says connecting and never shows the timer which we need on collabs to each person part on timing.

I tried this one on it and sad to say this did not work for me.. Man I sure had high hopes it would have. When I post the code and save it a pop up error appears but says I can do it anyway and I did but it will not show the player.

Edit: Marked as installed as I could use your player on 3.8.8 and it showing the timer now but has no volume adjustment. Hey least it works.. Thanks Brandon....

hazem_aliraqi
06-29-2015, 12:05 PM
installed

thank you

the one
12-14-2015, 11:50 AM
Could i ask is this working on 4.2.1 when i attached an mp3 it just give's me the normal link then when i press it it downloads to my desktop :(

the one
12-14-2015, 05:59 PM
Ok this is what happened i am running 4.2.1 when i uploaded a mp3 this is how it looked below

https://vborg.vbsupport.ru/external/2015/12/21.png

You can see it does not have the option to play.My friend who runs 4.2.2 said it was working ok on his forum and this is how it should look below

https://vborg.vbsupport.ru/external/2015/12/22.png

You will see he does have the option to play.

This is the code i put in my postbit_attachment below

<!-- Embed Player -->
<vb:if condition="$show['member']">
<vb:if condition="$attachment[attachmentextension] == mp3">
<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}&amp;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}&amp;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 -->

Obviously that must need changing for vbullwtin 4.2.1 can anyone help me to get this to work

Many thanks

yotsume
12-14-2015, 07:53 PM
I just reinstalled this on my site running vb 4.2.3 and I get the player to show but says "File Not Found".

Make sure that you have the code in the template if you updated your site. It might have wiped out the template edit.

If and when I find a solution to fix this I will post it here.

ForceHSS
12-14-2015, 08:27 PM
Ok this is what happened i am running 4.2.1 when i uploaded a mp3 this is how it looked below

https://vborg.vbsupport.ru/external/2015/12/21.png

You can see it does not have the option to play.My friend who runs 4.2.2 said it was working ok on his forum and this is how it should look below

https://vborg.vbsupport.ru/external/2015/12/22.png

You will see he does have the option to play.

This is the code i put in my postbit_attachment below

<!-- Embed Player -->
<vb:if condition="$show['member']">
<vb:if condition="$attachment[attachmentextension] == mp3">
<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}&amp;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}&amp;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 -->

Obviously that must need changing for vbullwtin 4.2.1 can anyone help me to get this to work

Many thanks
Check group permissions Check: Can See Thumbnails = Yes

the one
12-14-2015, 08:44 PM
Check group permissions Check: Can See Thumbnails = Yes

Hello buddy i am having a blonde moment lol where is this setting is it in Message Attachment Options

Many thanks

the one
12-14-2015, 09:06 PM
ok i got it working cheers

ywwz
12-12-2016, 01:31 AM
Fantastic add on, works great with 4.2.3! Nominated for MOTM!!!

ywwz
12-14-2016, 12:44 AM
thank u

ywwz
12-14-2016, 12:56 AM
it doesnt work any more it was working perfectly yesterday

Some of the files. Edit the article and save.