PDA

View Full Version : BB Code Enhancements - Embed MP3 in post using flash player


majordork82
18 Feb 2008, 00:31
This is somthing I created rather quickly because I wanted somthing small and effective for streaming MP3's in a post. I was searching the net for a nice small MP3 player to embed into a post and I found a nice FREE one over at 1pixelout.net. I did NOT create the player, I only created the BB code for this hack.

This takes about 2 minutes to prepare and get working.

Follow these steps

1. Download the Audio Player here http://www.1pixelout.net/code/audio-player-wordpress-plugin/#examples

2. Unzip and upload the files for the player to your host.

3. Add new BB code with the following information

Title: FlashPlayer

Tag: mp3

Replacement:

<script language="JavaScript" src="http://www.yourhost.com.com/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.yourhost.com/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.yourhost.com/audio/player.swf">
<param name="FlashVars" value="playerID=4&amp;soundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

Keep in mind this replacement code must match the location where you uploaded the audio player on your host.

Example: http://www.hd-trailers.org/song.mp3 *"http://" must be added for this to work properly.

Use Option: No

Button Image: See attachment

How to use: Simply find a link to an mp3 file and wrap the tags around it! That's it!


BE SURE TO CLICK INSTALLED :)

NeuroLancer
18 Feb 2008, 00:49
Looks good. Reminds me of the one i used in 3.6.8 ... Thanks alot for sharing.

Dark Cynicus!
18 Feb 2008, 00:51
nice hack fam

NeuroLancer
18 Feb 2008, 01:01
just a quick note about how this works, you must include the "http" in the url.

Installed :)

Dark Cynicus!
18 Feb 2008, 01:04
http://www.rhythematics.com/forums/showthread.php?p=30#post30 doesnt work =/

i tried it on da 2nd post

majordork82
18 Feb 2008, 01:06
Try unlinking your links before you post and make sure the string is all in one line like this

Good

http://www.2minus2.com/song.mp3

Bad


http://www.2minus2.com/song.mp3

Bad


http://www.2minus2.com/song.mp3

NeuroLancer
18 Feb 2008, 01:08
Working great for me. See attachment

Mus.t be a problem with how you've configured it.

majordork82
18 Feb 2008, 01:11
just a quick note about how this works, you must include the "http" in the url.

Installed :)

Good catch NeuroLancer. Thanks! Added it in :)

Dark Cynicus!
18 Feb 2008, 01:28
got it working thanks

majordork82
18 Feb 2008, 01:38
Good deal! Let me know if you have any issues :)

NeuroLancer
18 Feb 2008, 02:30
Good catch NeuroLancer. Thanks! Added it in :)

Your welcome.

I see its turned into mp3, no longer stream. good idea. does it only handle mp3's?

majordork82
18 Feb 2008, 02:52
As far as I know only mp3's. If you find otherwise please let me know.

Rickeo
18 Feb 2008, 05:58
Is it possible to have MP3's automatically play in profile with something like this I would love a mod like that it has been highly requested as well :)

NeuroLancer
18 Feb 2008, 11:04
Is it possible to have MP3's automatically play in profile with something like this I would love a mod like that it has been highly requested as well :)

Yeah its possible, I do it on my site. Basically, what you want to do, is 1. find a flash player to use. (one of those sites that has the embed code generated after letting you search for songs is good.) 2. look at the embed code, find the user id(or whatever its using that is similar), take it out and replace with a field .. this way a user can use their own ID's ... that's basically it.

TTG
18 Feb 2008, 13:27
Installed straight out of the box with no problems.
Thanks majordork82 .. clicked install.

majordork82
18 Feb 2008, 21:11
Yeah this is pretty simple and works fantastic!

pcoskat
18 Feb 2008, 22:55
Interesting.

Is there a way to make this 'automatic'? I'd like to have a forum that imports feeds from podcasts, but currently the links to the audio file aren't in a format that make it easy for my forum members to click and listen.

Can this mod be used to 'automatically' post audio files with the flash player?

If someone will take this on 'for a fee', let me know. Thanks.

majordork82
19 Feb 2008, 01:24
I'm sure it can be done but thats a whole new mod in itself :)

Magnumutz
19 Feb 2008, 11:20
I really like it... java :)

majordork82
20 Feb 2008, 00:15
Glad you lile it! I'm working on another one right now.

LoneWolf71
20 Feb 2008, 01:00
mine says cannot find file :(

Im sure its all done right...

rinkrat
20 Feb 2008, 01:48
Easy install, works great.

Buddabing Buddaboom!


Thanks !

omgwf
20 Feb 2008, 11:11
we still use 3.6.8 VB
so where can i find the download "flash player" for 3.6.8 ?

Thanks you

are u updating it for 3.7.0 v 5 ?

majordork82
20 Feb 2008, 20:52
It will work for any version.

elmati
20 Feb 2008, 23:10
as i see we cant use more than 1 player in the same page...

i need to use options to use 1, 2, 3, 4 player in the same post :P
for this: id="audioplayer{option}

url1.mp3
url2.mp3
url3.mp3

and if i just want to use one player i got and error :P

im trying to find a way...

majordork82
21 Feb 2008, 21:06
Yes. If you want more than one in a post you have to give each one its own unique ID. :)

elmati
22 Feb 2008, 01:47
yeah, im using option

ty m8!

majordork82
22 Feb 2008, 20:31
No problem. I am working on more now :)

Brew
26 Feb 2008, 15:28
Can you include instructions on where to upload the tag button .gif?

Thanks!

Brew
26 Feb 2008, 15:57
I changed the bbcode graphic so it has a transparent background.

It may help some people.

nerofix
26 Feb 2008, 22:57
Thx :)

Works fine but I get an error message saying: illegal character GIF89a

Edit: and one error message more:

ap_stopAll is not defined
null
javascript:ap_sto... (line 1)

majordork82
01 Mar 2008, 11:56
That's the first report of errors... where are you seeing those errors and or can you take a screenshot?

yotsume
13 Mar 2008, 05:44
I like this way to have a MP3 player much better. Automatically makes attached MP3s into flash player and you can have multiple players. Can be uploaded or linked.

http://www.vbulletin.org/forum/showthread.php?t=161567

7lanet
13 Mar 2008, 06:27
thanks

Fatsobob
13 Mar 2008, 19:59
Very simple install, got it working first try with no fuss. Thanks for the great how-to!

DarkSorrowz
14 Mar 2008, 01:12
What do I use as the button?

rolfw1
17 Mar 2008, 13:43
Thanks very much, have installed on 3.67PL1 and works great, a nice neat solution. :)

leylandfor
20 Mar 2008, 07:04
i have tried to implement this but the mp3 player doesnt appear in the post, i no its there tho becuase IE says press spacebar to use enable when you hover it, my replace code is

<script language="JavaScript" src="http://www.leylandforum.co.uk/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.leylandforum.co.uk/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.leylandforum.co.uk/audio/player.swf">
<param name="FlashVars" value="playerID=4&amp;soundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

and the path to the player is www.leylandforum.co.uk/audio

the path to the mp3 song is www.leylandforum.co.uk/rocketman.mp3 and i have insert the tags as follows

http://www.leylandforum.co.uk/rocketman.mp3

Sworm
20 Mar 2008, 18:00
Hi, this mod can be used with a music files on the pc? (with a upload)

KURTZ
20 Mar 2008, 18:14
just wondering: where i should put the audio player? into my forum root?

Sworm
23 Mar 2008, 10:40
hi all,
is possible to create an direct upload field that allow the users to upload all the mp3 files in the forum's host?

If yes, how can i do for do this?

mikkitine
07 Apr 2008, 02:35
Is there something that must be done in order to get the mp3 titles to appear within the player?

elmati
07 Apr 2008, 05:07
the player take the title from ID3 tag :)

mikkitine
07 Apr 2008, 14:48
The songs I am testing have ID3 tags but the song titles are not being displayed in the player. Do the songs need to have a certain version of ID3 tags for this to work? Or could it be something else?

elmati
07 Apr 2008, 15:47
try adding same information in ID3v1 and ID3v2. I don't remember wich is required for this player...

rizelim
08 Apr 2008, 08:07
thanks very nice hack...

vbntn
12 Apr 2008, 15:36
noobee questions here:
-Do I download to the root?
-And when you say:
3. Add new BB code with the following information
Where do I do that? ADD the new bb code?
I have some podcasts I want to put on my forum that I made on Talkshoe. Of course they are downloaded in MP3. I will upload them to my server and link from there. I want people to be able to listen to each one without going to talkshoe.
Each mp3 would have it's own thread.
Thanks,
Mark

vbntn
12 Apr 2008, 19:29
Ok, I got this going. I get the interface...but with any mp3 when I click the play button all I get is buffering.......it never plays..on any host/server.
Any ideas?

yinyang
13 Apr 2008, 03:01
Great mod. Thanks for sharing.

Would you be willing to modify this as a User Profile Field? This way, whenever someone visits a user's profile, they can set this as the music that also loads.

That would be awesome!

vbntn
13 Apr 2008, 04:06
Ok. I just realized that this is a problem with my Firefox browser. It works great in IE.
Any suggestions?

vanskills
13 Apr 2008, 09:39
uh yea..wheres the code BB go?

vbntn
13 Apr 2008, 13:23
HEY! I can actually answer somebody elses question here!! LOL.
Click here (http://www.vbulletin.com/docs/html/bbcode_add) for instructions.

Freak0204
13 Apr 2008, 16:03
i have tried to implement this but the mp3 player doesnt appear in the post, i no its there tho becuase IE says press spacebar to use enable when you hover it, my replace code is

<script language="JavaScript" src="http://www.leylandforum.co.uk/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.leylandforum.co.uk/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.leylandforum.co.uk/audio/player.swf">
<param name="FlashVars" value="playerID=4&amp;soundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

and the path to the player is www.leylandforum.co.uk/audio

the path to the mp3 song is www.leylandforum.co.uk/rocketman.mp3 and i have insert the tags as follows

http://www.leylandforum.co.uk/rocketman.mp3

Make sure your code matches where you uploaded the files. Did you upload to your forum? Because your code is trying to pull from the root.

Also, when I downloaded the files, I had to rename "audio-player" to "audio" because the code didn't match the folder name downloaded.

rapidphim
14 Apr 2008, 08:17
Can anyone tell me whether or not this hack will work on RC3?

majordork82
18 Apr 2008, 01:02
This hack works on any VB release.

rapidphim
18 Apr 2008, 04:46
thanks much.

majordork82
20 Apr 2008, 12:57
No problem! :D

moonface
20 Apr 2008, 15:22
i can change color?

macc
20 Apr 2008, 16:14
have same question... can we change color of mp3 player inside in our posts? and how if is it possibly?

regards

macc

majordork82
21 Apr 2008, 12:19
I'm not too sure on this but try reading this over http://www.1pixelout.net/code/audio-player-wordpress-plugin/#runtime

rapidphim
22 Apr 2008, 06:03
how can you/we get the custom color button?

rapidphim
24 Apr 2008, 03:33
This won't effect or cause any issue on RC4 right?

budatalk
24 Apr 2008, 15:14
love it love it love it =))))))

rapidphim
27 Apr 2008, 07:32
Is there anyway we can have this mod play with all media format?

fateL
28 Apr 2008, 10:10
Is there a way to put this in profiles?

rapidphim
28 Apr 2008, 15:33
You can use the bbcode in profile/signature :-)

fateL
28 Apr 2008, 23:01
where would I put it for profiles though? (visitor messages work, but then if you click about me or stats it turns off :()

rapidphim
29 Apr 2008, 06:28
under "About Me" put the mp3 bbcode under signature, it will list there. check this out
http://www.viet-tube.com/member.php?u=1, and you it still plays while you navigate around the profile

fateL
29 Apr 2008, 07:51
under "About Me" put the mp3 bbcode under signature, it will list there. check this out
http://www.viet-tube.com/member.php?u=1, and you it still plays while you navigate around the profile

Thing is, I'd like it to auto-play when you go to the profile, if it's in people's sig and it's set to auto-play it'd cause a mess, lol.

butch3r
29 Apr 2008, 10:31
Is there any way to embed this player for attachments?

rapidphim
29 Apr 2008, 16:03
Thing is, I'd like it to auto-play when you go to the profile, if it's in people's sig and it's set to auto-play it'd cause a mess, lol.

Why don't you use the Goldbrick media instead? It's also offer you to play media in the profile, not just mp3.

Is there any way to embed this player for attachments?
And why would you want to do that?

butch3r
29 Apr 2008, 16:37
And why would you want to do that?
Members of my forums want to ulpoad and listen some music.

rapidphim
29 Apr 2008, 19:00
why don't you direct them to this site www.youjams.com and have them upload there and link back to your forum? this will save your host bandwidth.

butch3r
29 Apr 2008, 19:03
why don't you direct them to this site www.youjams.com and have them upload there and link back to your forum? this will save your host bandwidth.

Because i don't actually care of bandwidth, and way i want to make it is easier for users who don't know a single word in english

rapidphim
29 Apr 2008, 22:53
You can always provide a screenshot with instruction? I do not think this hack would work at anyway for attachment purposes.

TimberFloorAu
05 May 2008, 13:22
This is one of the BEST mods I have come across... Some tweaking but easy stuff.

Ozzy. www.yobromofo.com/forum

We have added it to the site, bbcode and sigs.

Good Onya Mate !!!

Yama
10 May 2008, 15:50
This is exactly what I was looking for. Thanks! Hands down, this audio-player is the best mp3 embed tool I've come across yet online.

Le Soft Parade
15 May 2008, 05:11
Has anyone here figured out how to change the colors of the player? I love the player itself, but I'd love it much more if I could figure this one thing out.

Le Soft Parade
15 May 2008, 12:27
I found a guide for anyone interested in color customization:
http://www.macloo.com/examples/audio_player/options.html

As soon as I found that I had customized my mp3 player colors within minutes.

rapidphim
15 May 2008, 15:42
thank so much for that!

odeezie
15 May 2008, 21:50
Very nice and easy to install, even for a noob like me. :D Thank You so much! :up:

Chadi
16 May 2008, 03:43
I'm using 16 x 16 size icons in the toolbar editor. Where would I adjust the size since my custom icon is getting scaled to the default 21 x 20

Chadi
16 May 2008, 04:26
[edit: mistake]

Chadi
16 May 2008, 21:50
Ok, I got this going. I get the interface...but with any mp3 when I click the play button all I get is buffering.......it never plays..on any host/server.
Any ideas?

Ok. I just realized that this is a problem with my Firefox browser. It works great in IE.
Any suggestions?

I have the same problem.

The mp3 is:

http://playmp3.sa-media.com/media/52906154239/52906154239.mp3

It buffers in Firefox, IE7, IE8 and Opera 9.

Same for a few other mp3's I've tried from various websites.

tafreeh
16 May 2008, 21:53
ok here is the problem ...
when i click on play it ask me to download the .mp3 file...
it dosent play it online.....

waheedmiah
22 May 2008, 12:49
Thanx for a great mod just installed it now, no hickups on the way,

Can someone please tell me how do i get the audio to play automatically?

autostart how do i modify the code to do that? this is what iv got so far:

<center><script language="JavaScript" src="http://www.dar-ul-ishaat.com/audio-player/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.dar-ul-ishaat.com/audio-player/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.dar-ul-ishaat.com/audio-player/player.swf">
<param name="FlashVars" value="playerID=4&amp;soundFile=http://www.dar-ul-ishaat.com/media/Qari-abdul-basit.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object></center>

where do i add this code: autostart=yes

thanx again for this great mod
:)

RC.
23 May 2008, 06:31
great!!!

Replicators
24 May 2008, 17:41
We need somethiung like this, but for profile viewing and that has the choice to autoplay or not.

kylemj
25 May 2008, 01:47
with firefox it was not working when i installed it, worked fine in IE7 but not firefox, then closed firefox and restarted..Now its working!

Chadi
25 May 2008, 02:17
I have the same problem.

The mp3 is:

http://playmp3.sa-media.com/media/52906154239/52906154239.mp3

It buffers in Firefox, IE7, IE8 and Opera 9.

Same for a few other mp3's I've tried from various websites.

This thing just does not work. Can someone kindly figure this out?

princeedward
25 May 2008, 14:47
thanks installed...but...
is there anyway we can play or use this to Firefox Browser....got also bufferring and no chance to play it...

:(

TheBlackPoet
25 May 2008, 18:13
i loaded this and it played perfectly in IE7.. when i came back to thank the coder... i saw your post.... PRINCEEDWARD... so, i rushed to test this in FF (i had just emailed my members that this feature was available)... i tested it in FF and it works just fine... i dont think im using the latest FF.. 2.0.0.14 so.., i dont know why yours isnt working..

waheedmiah
25 May 2008, 19:54
im using the latest version of firefox which is 2.0.0.1.4 and its working fine

princeedward
26 May 2008, 20:47
i loaded this and it played perfectly in IE7.. when i came back to thank the coder... i saw your post.... PRINCEEDWARD... so, i rushed to test this in FF (i had just emailed my members that this feature was available)... i tested it in FF and it works just fine... i dont think im using the latest FF.. 2.0.0.14 so.., i dont know why yours isnt working..

im using the latest version of firefox which is 2.0.0.1.4 and its working finei really don't know also why is it not workin to my site using FF browser...it show also the download window always...but it's working best using IE & Opera...btw...i upload the mp3 file to my hostcpanel server...is there any mp3 host website to use ? or any idea guys about this problem?

appreciate any help from any of you guys...

;)

Leo Brazil
27 May 2008, 22:26
Not installed yet just because I'm concerned about copyright thing, you all know that.

Question:

Normally people host their mp3 files on the web using e.g.
http://minorcrisis.net
http://www.ripway.com
http://www.hotlinkfiles.com

This could be a way to get rid of any copyright issues because users would be resposible to keep their on mp3 files on the web but all those mp3 host require you to sign it up. So if you need to log in, would the mp3 links from those hosts work with this player ?

Great mod idea by the way.

insidedesign
28 May 2008, 18:32
Hmm, it would be nice if there was a "Download File" somehow integrated into the flash.

xoutlawz00x
07 Jun 2008, 01:41
i agree tooo

bobII
15 Jun 2008, 04:59
how about if you wanted to use this in a profile field, so a user can have this player show up on their profile?

ArnyVee
18 Jun 2008, 21:14
Worked perfectly in IE7, Firefox and Safari :D

I'm running 3.7.1 P1 for reference. Thanks!

tangerinebreem
21 Jun 2008, 18:25
Very easy and very effective. Brilliant. Thanks :)

majordork82
25 Jun 2008, 21:39
No problem. Glad you guys enjoy it! :D

rapidphim
26 Jun 2008, 15:49
how can you set it auto play?

princeedward
28 Jun 2008, 07:24
how can you set it auto play?here is my replacement code to make it autoplay & autoloop

<script language="JavaScript" src="http://www.yourhost.com.com/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.yourhost.com/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.yourhost.com/audio/player.swf">
<param name="FlashVars"
value="playerID=4&amp;slider=0x303030&track=0xFFFFFF&border=0x666666&loader=0xC52C24&autostart=yes&loop=yes&soundFile={param}">
<param name="quality" value="high">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>


hope it work also to you and enjoy it...



best regards...

;)

R-n-R
28 Jun 2008, 16:23
<clicked>Installed</clicked> Nice mod, thanks for this!:up:

majordork82
29 Jun 2008, 03:26
I just re installed this on my forum. Still works like a charm on the latest versions of VB. Any questions feel free to ask on my forum :D

calldaffer
01 Jul 2008, 04:46
thanks! cool add on and easy...I like easy :)

Cobro
04 Jul 2008, 05:08
i just cant get it to work on my server i have vbulletin 3.7.2 ? is that an issue maby can some one help me ? plz

installed and MOTM

rooban12
04 Jul 2008, 07:46
Installed thanks

rooban12
04 Jul 2008, 07:50
can you check this link please http://www.lovetack.com/home/showthread.php?t=9182&page=4
when I play a song... its playing something else

rooban12
05 Jul 2008, 19:20
plzz help meeeeeeeeeee

dadoc
06 Jul 2008, 07:07
I would love some help I have it working on IE no problems

but on FF I cant get it to work

Please help

I am so close but just cant work it out.
Thanks

I have it installed on my site 13Bullets you can see it in the suggestions forum.

rooban12
07 Jul 2008, 09:31
hello majordork82 where are you???????????????

dadoc
08 Jul 2008, 07:45
Hey rooban12 maybe we can help each other!

have you been able to make it function on firefox?

What do you have to do to the options-panel.php file when you open the file it has some options to edit.

the

Audio files directory:? just call it "audio"

How do you want to use the audio player? what box did you check here?

Feed options did you leave this blank?

Colour scheme? what do you do here?


or is this not important

as it is working on my site on IE but not FF

we would love some help?

dadoc
08 Jul 2008, 07:48
In the first line of the BB code,

<script language="JavaScript" src="http://www.yourhost.com.com/audio/audio-player.js"></script>


is this correct? .com.com?

rooban12
08 Jul 2008, 15:35
nop
I think, its jst one .com

raven3d
08 Jul 2008, 17:15
splendid clicks install.....

i'll tell you what is really cool, you can embed an mp3 in your signature.
awesome for me running a guitarsite!!!

xoutlawz00x
12 Jul 2008, 08:27
Does anyone know how i can have a playlist module with vbadvanced

Raptor
16 Jul 2008, 18:18
works superb on 3.7.2

usmansabir
19 Jul 2008, 11:46
nice.. working fine with 3.7.2

AURFSCAN
20 Jul 2008, 03:17
Perfect - thankyou

Keesa
21 Jul 2008, 14:23
Working fine on my 3.7.2 on Firefox, Opera and IE7.

AWESOME. Really cool for a band fanclub like ours.

:up::up::up::up::up:

Chadi
27 Jul 2008, 06:06
edit: my mistake, never mind sorry

BondhuMela
30 Jul 2008, 08:42
I installed, working excellent with vB3.7.2

many thanx

RFViet
31 Jul 2008, 03:03
Good job !!

vbboarder
17 Aug 2008, 05:36
Thanks for this great mod! Will you be updating this mod to work with the new audio player 2.0? It's available at: http://wpaudioplayer.com/

realmr
18 Aug 2008, 09:43
does it cause slowing down of forums ? Will it cause any queries to be run ?

PAKIDIL
21 Aug 2008, 23:20
can u make to work it with .flv ?

jalmz
23 Aug 2008, 01:00
it works like a charm.. thanks

Wsh
25 Aug 2008, 16:48
I'm wondering if theres anyway to hide the URL of the mp3? I love the idea of the script, however I'm afraid that people are just going to rip the links and hotlink it.

thanks.

majordork82
24 Sep 2008, 04:49
With this current version I have, it will not support hiding of the url. You shouldn't have an issue though. Now a days it's very hard to hide things on the net.

Thanks for this great mod! Will you be updating this mod to work with the new audio player 2.0? It's available at: http://wpaudioplayer.com/

I hadn't planned on it but I am working on a rating BB code ;)

does it cause slowing down of forums ? Will it cause any queries to be run ?

It does not require a connection to a database or a database implementation :)

can u make to work it with .flv ?

Not at this time, maybe in the future. :)

vbob
14 Nov 2008, 13:49
Great mod. I would like a little bit help though.
I want to embed the mp3 using the xxx tag so the users can only see the player and not the attach link.

I know that in our times it is hard to prevent the downloading, but it is exactly what I want.

Let me be more specific.
1. The user Create New Thread/post
2. The user upload the mp3 attachment. (now the url of the attachment is something like this:
http://mysite.com/forum/attachment.php?attachmentid=xxxxx&d=xxxxxxxxxxxxx
3. The user uses copy/paste and paste the above url inside his post.
Then he select the url he just pasted and press the mp3 bbcode button.
The result is this:
http://mysite.com/forum/attachment.php?attachmentid=xxxxx&d=xxxxxxxxxxxxx

I want the user to be able to follow the above if he want to "share for downloading" his mp3. Ok until now, everything is working great. The player appears and below it is the link to download the file.

If the user want just to put it in the post for other user to hear it only with the player, then, like in the XXXX method, the attachment is placed between the text and the url in the end of the post disappears...!!! Thats what I want. I want a bbcode to be able to play the mp3 attachment using the below bbcode so the mp3 link "disappear" and only the flash player is available.
Here is what I want:
XXXXX
Could you help me with that?
How can I do it?

Leo Brazil
14 Nov 2008, 14:57
If the user want just to put it in the post for other user to hear it only with the player, then, like in the XXXX method, the attachment is placed between the text and the url in the end of the post disappears...!!! Thats what I want. I want a bbcode to be able to play the mp3 attachment using the below bbcode so the mp3 link "disappear" and only the flash player is available.
Here is what I want:
XXXXX
Could you help me with that?
How can I do it?

This is an interesting idea, I'd use that too. :up:

Thelonius Beck
02 Jan 2009, 23:35
OK folks.

I couldn't make this (or anything similar) work for the life of me. Then I had an epiphany.

Having already installed MP3 Player in Profile (http://www.vbulletin.org/forum/showthread.php?t=187174), the 1pixelout flash player already existed on my server! Therefore, for whatever reason, calling the new one wouldn't work.

So I simply changed all of the file paths in the replacement code to that of my existing player. VOILA!

I removed the duplicate player from my server, and I'm pleased as punch.

Hope this helps somebody out. ;)






*Installed*

Nwq
11 Jan 2009, 12:24
download link :( pleas

ArnyVee
11 Jan 2009, 15:03
Nwq, what download link are you looking for? The download link for the player is in the 1st post (description of mod).

Ceaseless Skies
13 Jan 2009, 23:01
Thanks so much--this looks great in my podcasting sub-forum!

powersilie
31 Jan 2009, 14:14
Thank you so much, it works great with vB 3.8.1

TOP!

greetings
Karin

chikkoo
31 Mar 2009, 15:16
Can someone kindly elobrate this trick. How to do it?

I am trying to post 10 parts of one album.


as i see we cant use more than 1 player in the same page...

i need to use options to use 1, 2, 3, 4 player in the same post :P
for this: id="audioplayer{option}

url1.mp3
url2.mp3
url3.mp3

and if i just want to use one player i got and error :P

im trying to find a way...

h2ck3r
07 Apr 2009, 12:30
It works with the latest 2.0, just download from http://wpaudioplayer.com and replace the old files =)

And it is possible to have more then 1 player =) no options or anything needed.. just

http://test.net/mp3/test1.mp3
http://test.net/mp3/test2.mp3

Exstedt
15 Apr 2009, 16:15
I can only get one song to work at a time, and that's by adding the link to that song within the BB code.

I needed to show two songs, so I had to make a new BB code, the same as the first, but with a different url within the BB code.

It has worked out great on Internet Explorer, but on FireFox the songs get ruined and distorted. Anyone else experiencing this? Thank you.

soash
04 Jun 2009, 20:21
I get absolutely NOTHING from this!

I've copied the code, made the mods for my own site - and when I run it, I get an empty post.

Is it a problem with the code, or a problem with the file I am trying to load??

Any ideas??

barcena
25 Jun 2009, 05:17
Sorry, wrong thread.

ricardoNJ
12 Oct 2009, 05:46
Thanks!

Kingdombuilder
23 Oct 2009, 07:45
I had alittle trouble at first but i did not have the path correct. Once i got that straight it was all good. Thanks!!

Great hack!! Keep them coming...

MagicThemeParks
23 Oct 2009, 14:36
Works great on 3.8.4 :up:

Here's a link to a demo (scroll the the bottom of the first post): Disney Magic Kingdom Forums (http://www.magicthemeparks.com/mk/forum/showthread.php?t=50)

MagicThemeParks
25 Oct 2009, 03:36
Just used this HOW TO GUIDE (http://www.macloo.com/examples/audio_player/options.html) in order to change the colors and it's working great! :D

Also using the information from this page (http://www.macloo.com/examples/audio_player/) to show the code on custom pages such as this one: Disney's Magic Kingdom Attraction Page (http://www.magicthemeparks.com/mk/forum/mkattractions.php)

Driven By Shine
25 Oct 2009, 11:06
Thanks magicthemeparks,

Hi I am new at all this yet have managed to install quite a few mods to my VB forum. But I am having a few problems with this one.

I seem to have it working fine if I upload the mp3 file to the server, I thought this was ment to work from any mp3 url. Have I got it wrong.????

At the bottom of this page there are two examples and the one on the net just keeps buffering.

http://www.paintcorrection.org/forum/showthread.php?t=13&p=48

I have read here that a few have had similar issues, could anyone shed some light on this.

The only thing I can think of is where I installed the files.

would this be correct "/public_html/forum/audio"

or should it be "/public_html/audio"

or "/audio"

"audio" being the files with the player.

Or do I just have it totally wrong and should stick to car detailing LOL

Can anyone help point me in the right direction.

Thanks

Chris

MagicThemeParks
25 Oct 2009, 13:47
I noticed that the 2nd test post you made worked. Congrats! :up:

From what I understand, you can't use two mp3s in the same post like you did in the first post. I remember reading about having to have the 2.0 version of the audio software before being able to do that. That might be it.

Driven By Shine
25 Oct 2009, 13:58
I noticed that the 2nd test post you made worked. Congrats! :up:

From what I understand, you can't use two mp3s in the same post like you did in the first post. I remember reading about having to have the 2.0 version of the audio software before being able to do that. That might be it.

The two that work have been uploaded to my host. LOL But thanks

I also thought I couldnt do two in a post and have had just the one but still no difference.

Ive had both of the files on my host in the same post and they both work,

but Im not sure anymore.

You will be able to help me though with this, how do i follow the instructions you put up in regards to the colours and inserting the code with "no hard returns"

Chris

MagicThemeParks
25 Oct 2009, 14:45
I can help you with the colors, no problem :)

Edit the BBCode and be sure and place all of these adjustments to the colors where you see the RED text and with no spaces or line breaks.....

<script language="JavaScript" src="http://www.yourhost.com.com/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.yourhost.com/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.yourhost.com/audio/player.swf">
<param name="FlashVars" value="playerID=4&amp;RIGHT_HEREsoundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>


....where I placed "RIGHT_HERE", simply place the codes for the different areas of the player that you'd like to adjust. You can also control the autoplay or loop features of the player as well. Here are the codes...

bg=0xf8f8f8&amp;
leftbg=0xeeeeee&amp;
lefticon=0x666666&amp;
rightbg=0xcccccc&amp;
rightbghover=0x999999&amp;
righticon=0x666666&amp;
righticonhover=0xffffff&amp;
text=0x666666&amp;
slider=0x666666&amp;
track=0xFFFFFF&amp;
border=0x666666&amp;
loader=0x9FFFB8&amp;
loop=no&amp;
autostart=no&amp;

....you can include as many or few of those options as you'd like. Check out the diagram on the page I listed to see which areas to change. Good luck! :up:

Driven By Shine
25 Oct 2009, 14:53
Awesome, thanks heaps. Got the colours sorted.

Now just to work out the original problem playing mp3's from a URL. and not having to host the file.

Thanks again for all your help.

Does yours work via a URL wrapped in tags mp3 tags[][/]

Chris

MagicThemeParks
25 Oct 2009, 14:59
I just place the URL (no matter where it is hosted) within the mp3 tags and it works. Not sure if you edited the code in some way.

On my custom pages like this one.... Walt Disney World - Magic Kingdom Attractions (http://www.magicthemeparks.com/mk/forum/mkattractions.php) .... I had to hardcode the url into the code and using this code ...

<script language="JavaScript" src="http://www.fakedomain.com/myname/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.fakedomain.com/myname/audio/player.swf" id="audioplayer1" height="24" width="290">
<param name="movie" value="http://www.fakedomain.com/myname/audio/player.swf">
<param name="FlashVars" value="playerID=audioplayer1&soundFile=http://www.fakedomain.com/myname/audio/music.mp3">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>


....from this page: http://www.macloo.com/examples/audio_player/index.html

Driven By Shine
25 Oct 2009, 15:11
I wonder what I have done wrong then, I think I'll have to sleep on it and try again when I'm fresh. I did just notice you have. Slightly different code then me. Audioplayer1 or something like that I don't have that in my code.

Thanks heaps for your help so far.

I'll let you know how I go tomorrow.

Chris

MagicThemeParks
25 Oct 2009, 15:33
Chris, what's the mp3 file URL that you're using and I'll test it on my site. Have a goodnight!

Driven By Shine
25 Oct 2009, 22:38
http://www.supload.com/listen?s=LCr6bv

good idea I didn't even think that the link might be wrong. Here it is above. I didn't include the mp3 wraps although I do have them on my site.

Do you have a working URL I can also test.

Many thanks once again

chris

MagicThemeParks
26 Oct 2009, 00:54
Chris, that's not an mp3 file. Did you download it and change it to an mp3 file and then upload it on your own site?

Driven By Shine
26 Oct 2009, 02:32
Here is what I did.

We made the video you find on my thread from You tube, I then used a you tube to mp3 convertor to create the mp3 file. Then i googled audio hosting and found "supload.com" so i uploaded the mp3 file to their site. The URL that comes up when its playing through supload is http://www.supload.com/listen?s=LCr6bv, so its not a mp3 file but wouldnt it be the mp3 URL

The links that work are the same mp3 files uploaded to my hosting server, I have done nothing extra to them.

Maybe I just have this totally wrong.

As embarrassing :o:o as it is to ask, what does a mp3 URL look like and where can I find one :erm:??

Again thanks for your efforts in helping me sort this out.:up:

Chris

MagicThemeParks
26 Oct 2009, 03:03
Chris, as far as I'm aware, it has to be a URL that ends in ".mp3"

So, it would be "http://www.exampledomainname.com/audio/examplemusic.mp3" and that should work. So, instead of uploading it somewhere to save on bandwidth, you're going to have to upload it to your own server (or another service that will still allow the .mp3 in the URL) and use it that way.

I'm not 100% sure, but someone else may be able to jump in and answer that one for you. :)

Driven By Shine
26 Oct 2009, 03:29
I finally got it sorted, seems it was working all along, stupid me just wasnt using the correct URL's

I tried many different audio hosting sites, but the one i got it to work with was www.hotlinkfiles.com

Thank you to everyone, your help is............... well very helpful.

Thanks again

Chris

Driven By Shine
26 Oct 2009, 03:36
Chris, as far as I'm aware, it has to be a URL that ends in ".mp3"

So, it would be "http://www.exampledomainname.com/audio/examplemusic.mp3" and that should work. So, instead of uploading it somewhere to save on bandwidth, you're going to have to upload it to your own server (or another service that will still allow the .mp3 in the URL) and use it that way.

I'm not 100% sure, but someone else may be able to jump in and answer that one for you. :)

You are correct as far as i can see, i did try to manually insert the .mp3 but still no good but this hotlinkfiles.com works a charm, so its all good.

Thanks again for you patience with me.

Chris

MagicThemeParks
26 Oct 2009, 03:45
No problem Chris, glad I could help a fellow admin! :D

mandingo
27 Dec 2009, 18:03
This works in 4 with no problems

PET
20 Jan 2010, 05:44
Yap. It works on vB4.

By the way. do you know if it's possible to have a player like this on mp3 Attachments?

mandingo
20 Jan 2010, 06:17
Yap. It works on vB4.

By the way. do you know if it's possible to have a player like this on mp3 Attachments?

I'm waiting for someone to make a mod. I wish I knew how.

Keesa
04 Apr 2010, 11:55
I can't get this to work on v 3.8.5

:(

I am trying to reinstall it, but the link to download the player is unclear to me... do I need the standalone version?

Has anyone had success with this?

Gamelobby
10 Apr 2010, 21:21
The only thing I can think of is where I installed the files.

would this be correct "/public_html/forum/audio"
or should it be "/public_html/audio"
or "/audio"

"audio" being the files with the player.

Can anyone help point me in the right direction.

Thanks
Chris


Ditto.. where do we upload to.?
Example.com/HERE
Example.com/forums/HERE
or.. does it matter.?

Also do we upload the whole "audio-player" folder.?

JohnMcClane
16 Apr 2010, 13:22
Would it be possible to have a bbcode icon in my toolbar that members click and a sound is already inserted? For example - if I click on an icon that says "lol" in the image, the following will be inserted into the post editor;

http://www.mysite.com/clips/lolsound.mp3

It would be great if someone could help!

All the best,

John

MagicThemeParks
16 Apr 2010, 13:55
John, I'm sure there has to be a way to do something like that.

One possible solution would be to use the built-in replacement variable option. This would automatically enter that mp3 file into all posts when someone types the letters "LOL".

Go to AdminCP >> Styles and Templates >> Replacement Variable Manager

Select the style you'd like to use this replacement variable on and then click on Add New Replacement Variable.

Once you are there, type the LOL next to the space named Search for Text. And, in the Replace with Text space type out your mp3 code: http://www.mysite.com/clips/lolsound.mp3

After you save, type out a test post (or search another post with LOL in it already) and it should turn into the link to the mp3 file. Would that work for you?

JohnMcClane
16 Apr 2010, 14:05
To avoid it accidentally happening, would it be possible to have the "search for text" field with something like {LOL} ?

Also, I'm sure I saw it somewhere but is it possible to have the player just show the "play" triangle button instead of the entire thing expanding? Does that make sense? For this type of use, it's not really pretty to have a thread with the players everywhere.

MagicThemeParks
16 Apr 2010, 14:07
I believe you are correct.

Just found this: http://www.vbulletin.org/forum/showthread.php?t=168123

Looks like it could work. Check it out and let us know if it works for you. :up:

JohnMcClane
16 Apr 2010, 14:22
Okay, I've just tested this and it works (to an extent) but for some reason when I enter the text, and hit post - it shows up the code like this in the actual post-

http://www.site.com/audio/sound.mp3

After a refresh it's still the same. But if you click "Edit post", change nothing and then hit "Save" it's fine and it shows.

Quite annoying :( Do you know why or of another way we can do this?

MagicThemeParks
16 Apr 2010, 14:27
Hmm...interesting. I have to head to work, but if I think of anything I'll drop by this thread and give you a suggestion.

JohnMcClane
16 Apr 2010, 14:29
Thanks buddy, have a good day :)

John

metalguy639
30 Apr 2010, 05:13
Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?

MagicThemeParks
30 Apr 2010, 12:16
Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?

Absolutely DOES work with 3.8.4

Demo: http://www.magicthemeparks.com/mk/forum/showthread.php?t=51

ryancooper
21 Oct 2010, 15:43
Beautiful. Worked perfectly!

goxy63
27 Nov 2010, 05:35
works with vb4 just great
was wondering is there any way to play from a link like this:
http://www.spreadtheonavirus.com/classicona/O&A Bits/Arnold Prank Calls/Arnold Prank Calls - Arnold calls Arnold Pizza.mp3
Note those spaces in link, in a browser I can open that link and play mp3 file but within tags on my site I just cant (spaces)

Think I got it, if i place "%" where I have space it will play, but who can make users to do that?
http://www.spreadtheonavirus.com/classicona/O&A%20Bits/Arnold%20Prank%20Calls/Arnold%20Prank%20Calls%20-%20Arnold%20calls%20Arnold%20Pizza.mp3
nope its not working with "%" within BB code :(

Keesa
27 Dec 2010, 00:17
I can't get this to work on v 3.8.5

:(

I am trying to reinstall it, but the link to download the player is unclear to me... do I need the standalone version?

Has anyone had success with this?

Thought I would just ask this again, I am not clear which version to use of the player?

Thank you

fastcom
04 Feb 2011, 11:13
Hi,
I want create this bbcode for vbulletin 4.1.x

after complete i have receive vbulletin message

The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
<script language="JavaScript" src="http://mysite.com/audio-player/audio-player.js"></script> <object type="application/x-shockwave-flash" data="http://mysite.com/audio-player/player.swf" id="audioplayer4" height="24" width="290"> <param name="movie" value="http://mysite.com/audio-player/player.swf"> <param name="FlashVars" value="playerID=4&soundFile={param}"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object>

but it still work so well(in admin Panel)

when use in front end it not work(error: file not found)

here my code:
+ Replacement:

<script language="JavaScript" src="http://mysite.com/audio-player/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://mysite.com/audio-player/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://mysite.com/audio-player/player.swf">
<param name="FlashVars" value="playerID=4&amp;soundFile={param}">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>

I think issue in line:
<param name="FlashVars" value="playerID=4&soundFile={param}">

I have tried some option custom
<param name="FlashVars" value="playerID=4&soundFile=
"{param}">

or

<param name="FlashVars" value="playerID=4&soundFile='{param}'">

or

<param name="FlashVars" value="playerID=4&soundFile=\"{param}\"">

but it's not work

who can let me know can I fix

Thank so much.

ShawneyJ
08 Mar 2011, 12:24
Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?


has to be something to do with the server or some shit. none of the mp3 mods are working.
everything is correct %100.
the mp3 works in bb code test in admin but not out on the forums, driving me nuts.

ShawneyJ
10 Mar 2011, 05:40
ah ok:
set this in bb code section and create a fresh new thread, it should work for those that get "file not found"
Disable BB Code Within This BB Code: YES
Disable Smilies Within This BB Code: YES
Disable Word Wrapping Within This BB Code: YES

Pakiisp
01 May 2011, 23:00
This bbcode not workign for me on 4.1.3 version :(

tell me why ?

MagicThemeParks
04 May 2011, 04:07
What isn't working Pakiisp?

The player isn't showing? The file showing as not found?

I just added it again to another site and it's working fine.

Cobro
05 Nov 2011, 21:46
I allways get "file not found" ?

on 4.1.6

goxy63
08 Oct 2014, 23:13
in chrome for some reason not working for me, just few days ago it was all ok....in mozilla just fine, for years now I am on vb 4.2.2 pl1

this is very nice player

tbworld
08 Oct 2014, 23:34
in chrome for some reason not working for me, just few days ago it was all ok....in mozilla just fine, for years now I am on vb 4.2.2 pl1
this is very nice player

Is there a question here @Goxy63 you needed help with, or were you just informing the community? :)

ShawneyJ
09 Oct 2014, 06:44
in chrome for some reason not working for me, just few days ago it was all ok....in mozilla just fine, for years now I am on vb 4.2.2 pl1

this is very nice player

have you tried uploading the latest player for this mod?
http://wpaudioplayer.com/download/

i wouldn't say its new, but if you like the player so much, just download the stand alone player and over right your old player.

mind you, older players like this are falling behind the updated browsers. i just tested this and it does work, but the time of the audio dont show in new browsers. maybe its time to move on to a better player :erm:

goxy63
09 Oct 2014, 21:10
was thinking to ask did someone else got issue in chrome like me....

for me in opera, mozilla, its working just great...but from yesterday not working in chrome

maybe its some chrome issue or its something local with me (or its old player as ShawneyJ says) will check it out these days...just few users complaining

for me in mozilla its ALL working just fine for years now

@tbworld @ShawneyJ

thanks :)