PDA

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


majordork82
02-17-2008, 10:00 PM
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
02-17-2008, 10:49 PM
Looks good. Reminds me of the one i used in 3.6.8 ... Thanks alot for sharing.

Dark Cynicus!
02-17-2008, 10:51 PM
nice hack fam

NeuroLancer
02-17-2008, 11:01 PM
just a quick note about how this works, you must include the "http" in the url.

Installed :)

Dark Cynicus!
02-17-2008, 11:04 PM
<a href="http://www.rhythematics.com/forums/showthread.php?p=30#post30" target="_blank">http://www.rhythematics.com/forums/s...hp?p=30#post30</a> doesnt work =/

i tried it on da 2nd post

majordork82
02-17-2008, 11:06 PM
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
02-17-2008, 11:08 PM
Working great for me. See attachment

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

majordork82
02-17-2008, 11:11 PM
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!
02-17-2008, 11:28 PM
got it working thanks

majordork82
02-17-2008, 11:38 PM
Good deal! Let me know if you have any issues :)

NeuroLancer
02-18-2008, 12:30 AM
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
02-18-2008, 12:52 AM
As far as I know only mp3's. If you find otherwise please let me know.

Rickeo
02-18-2008, 03:58 AM
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
02-18-2008, 09:04 AM
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
02-18-2008, 11:27 AM
Installed straight out of the box with no problems.
Thanks majordork82 .. clicked install.

majordork82
02-18-2008, 07:11 PM
Yeah this is pretty simple and works fantastic!

pcoskat
02-18-2008, 08:55 PM
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
02-18-2008, 11:24 PM
I'm sure it can be done but thats a whole new mod in itself :)

Magnumutz
02-19-2008, 09:20 AM
I really like it... java :)

majordork82
02-19-2008, 10:15 PM
Glad you lile it! I'm working on another one right now.

LoneWolf71
02-19-2008, 11:00 PM
mine says cannot find file :(

Im sure its all done right...

rinkrat
02-19-2008, 11:48 PM
Easy install, works great.

Buddabing Buddaboom!

Thanks !

omgwf
02-20-2008, 09:11 AM
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
02-20-2008, 06:52 PM
It will work for any version.

elmati
02-20-2008, 09:10 PM
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
02-21-2008, 07:06 PM
Yes. If you want more than one in a post you have to give each one its own unique ID. :)

elmati
02-21-2008, 11:47 PM
yeah, im using option

ty m8!

majordork82
02-22-2008, 06:31 PM
No problem. I am working on more now :)

Brew
02-26-2008, 01:28 PM
Can you include instructions on where to upload the tag button .gif?

Thanks!

Brew
02-26-2008, 01:57 PM
I changed the bbcode graphic so it has a transparent background.

It may help some people.

nerofix
02-26-2008, 08:57 PM
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
03-01-2008, 09:56 AM
That's the first report of errors... where are you seeing those errors and or can you take a screenshot?

yotsume
03-13-2008, 03:44 AM
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.

https://vborg.vbsupport.ru/showthread.php?t=161567

7lanet
03-13-2008, 04:27 AM
thanks

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

DarkSorrowz
03-13-2008, 11:12 PM
What do I use as the button?

rolfw1
03-17-2008, 11:43 AM
Thanks very much, have installed on 3.67PL1 and works great, a nice neat solution. :)

leylandfor
03-20-2008, 05:04 AM
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
03-20-2008, 04:00 PM
Hi, this mod can be used with a music files on the pc? (with a upload)

KURTZ
03-20-2008, 04:14 PM
just wondering: where i should put the audio player? into my forum root?

Sworm
03-23-2008, 08:40 AM
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
04-07-2008, 12:35 AM
Is there something that must be done in order to get the mp3 titles to appear within the player?

elmati
04-07-2008, 03:07 AM
the player take the title from ID3 tag :)

mikkitine
04-07-2008, 12:48 PM
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
04-07-2008, 01:47 PM
try adding same information in ID3v1 and ID3v2. I don't remember wich is required for this player...

rizelim
04-08-2008, 06:07 AM
thanks very nice hack...

vbntn
04-12-2008, 01:36 PM
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
04-12-2008, 05:29 PM
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
04-13-2008, 01:01 AM
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
04-13-2008, 02:06 AM
Ok. I just realized that this is a problem with my Firefox browser. It works great in IE.
Any suggestions?

vanskills
04-13-2008, 07:39 AM
uh yea..wheres the code BB go?

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

Freak0204
04-13-2008, 02:03 PM
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
04-14-2008, 06:17 AM
Can anyone tell me whether or not this hack will work on RC3?

majordork82
04-17-2008, 11:02 PM
This hack works on any VB release.

rapidphim
04-18-2008, 02:46 AM
thanks much.

majordork82
04-20-2008, 10:57 AM
No problem! :D

moonface
04-20-2008, 01:22 PM
i can change color?

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

regards

macc

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

rapidphim
04-22-2008, 04:03 AM
how can you/we get the custom color button?

rapidphim
04-24-2008, 01:33 AM
This won't effect or cause any issue on RC4 right?

budatalk
04-24-2008, 01:14 PM
love it love it love it =))))))

rapidphim
04-27-2008, 05:32 AM
Is there anyway we can have this mod play with all media format?

fateL
04-28-2008, 08:10 AM
Is there a way to put this in profiles?

rapidphim
04-28-2008, 01:33 PM
You can use the bbcode in profile/signature :-)

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

rapidphim
04-29-2008, 04:28 AM
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
04-29-2008, 05:51 AM
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
04-29-2008, 08:31 AM
Is there any way to embed this player for attachments?

rapidphim
04-29-2008, 02:03 PM
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
04-29-2008, 02:37 PM
And why would you want to do that?
Members of my forums want to ulpoad and listen some music.

rapidphim
04-29-2008, 05:00 PM
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
04-29-2008, 05:03 PM
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
04-29-2008, 08:53 PM
You can always provide a screenshot with instruction? I do not think this hack would work at anyway for attachment purposes.

TimberFloorAu
05-05-2008, 11:22 AM
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
05-10-2008, 01:50 PM
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
05-15-2008, 03:11 AM
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
05-15-2008, 10:27 AM
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
05-15-2008, 01:42 PM
thank so much for that!

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

Chadi
05-16-2008, 01:43 AM
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
05-16-2008, 02:26 AM
[edit: mistake]

Chadi
05-16-2008, 07:50 PM
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
05-16-2008, 07:53 PM
ok here is the problem ...
when i click on play it ask me to download the .mp3 file...
it dosent play it online.....

waheedmiah
05-22-2008, 10:49 AM
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.
05-23-2008, 04:31 AM
great!!!

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

kylemj
05-24-2008, 11:47 PM
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
05-25-2008, 12:17 AM
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
05-25-2008, 12:47 PM
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
05-25-2008, 04:13 PM
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
05-25-2008, 05:54 PM
im using the latest version of firefox which is 2.0.0.1.4 and its working fine

princeedward
05-26-2008, 06:47 PM
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
05-27-2008, 08:26 PM
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
05-28-2008, 04:32 PM
Hmm, it would be nice if there was a "Download File" somehow integrated into the flash.

xoutlawz00x
06-06-2008, 11:41 PM
i agree tooo

bobII
06-15-2008, 02:59 AM
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
06-18-2008, 07:14 PM
Worked perfectly in IE7, Firefox and Safari :D

I'm running 3.7.1 P1 for reference. Thanks!

tangerinebreem
06-21-2008, 04:25 PM
Very easy and very effective. Brilliant. Thanks :)

majordork82
06-25-2008, 07:39 PM
No problem. Glad you guys enjoy it! :D

rapidphim
06-26-2008, 01:49 PM
how can you set it auto play?

princeedward
06-28-2008, 05:24 AM
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
06-28-2008, 02:23 PM
<clicked>Installed</clicked> Nice mod, thanks for this!:up:

majordork82
06-29-2008, 01:26 AM
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
07-01-2008, 02:46 AM
thanks! cool add on and easy...I like easy :)

Cobro
07-04-2008, 03:08 AM
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
07-04-2008, 05:46 AM
Installed thanks

rooban12
07-04-2008, 05:50 AM
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
07-05-2008, 05:20 PM
plzz help meeeeeeeeeee

dadoc
07-06-2008, 05:07 AM
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-07-2008, 07:31 AM
hello majordork82 where are you???????????????

dadoc
07-08-2008, 05:45 AM
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
07-08-2008, 05:48 AM
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
07-08-2008, 01:35 PM
nop
I think, its jst one .com

raven3d
07-08-2008, 03:15 PM
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
07-12-2008, 06:27 AM
Does anyone know how i can have a playlist module with vbadvanced

Raptor
07-16-2008, 04:18 PM
works superb on 3.7.2

usmansabir
07-19-2008, 09:46 AM
nice.. working fine with 3.7.2

AURFSCAN
07-20-2008, 01:17 AM
Perfect - thankyou

Keesa
07-21-2008, 12:23 PM
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
07-27-2008, 04:06 AM
edit: my mistake, never mind sorry

BondhuMela
07-30-2008, 06:42 AM
I installed, working excellent with vB3.7.2

many thanx

RFViet
07-31-2008, 01:03 AM
Good job !!

vbboarder
08-17-2008, 03:36 AM
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
08-18-2008, 07:43 AM
does it cause slowing down of forums ? Will it cause any queries to be run ?

PAKIDIL
08-21-2008, 09:20 PM
can u make to work it with .flv ?

jalmz
08-22-2008, 11:00 PM
it works like a charm.. thanks

Wsh
08-25-2008, 02:48 PM
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
09-24-2008, 02:49 AM
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
11-14-2008, 11:49 AM
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
11-14-2008, 12:57 PM
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
01-02-2009, 09:35 PM
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 (https://vborg.vbsupport.ru/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
01-11-2009, 10:24 AM
download link :( pleas

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

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

powersilie
01-31-2009, 12:14 PM
Thank you so much, it works great with vB 3.8.1

TOP!

greetings
Karin

chikkoo
03-31-2009, 01:16 PM
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
04-07-2009, 10:30 AM
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
04-15-2009, 02:15 PM
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
06-04-2009, 06:21 PM
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
06-25-2009, 03:17 AM
Sorry, wrong thread.

ricardoNJ
10-12-2009, 03:46 AM
Thanks!

Kingdombuilder
10-23-2009, 05:45 AM
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
10-23-2009, 12:36 PM
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
10-25-2009, 02:36 AM
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
10-25-2009, 09:06 AM
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
10-25-2009, 11:47 AM
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
10-25-2009, 11:58 AM
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
10-25-2009, 12:45 PM
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
10-25-2009, 12:53 PM
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
10-25-2009, 12:59 PM
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
10-25-2009, 01:11 PM
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
10-25-2009, 01:33 PM
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
10-25-2009, 08:38 PM
<a href="http://www.supload.com/listen?s=LCr6bv" target="_blank">http://www.supload.com/listen?s=LCr6bv</a>

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
10-25-2009, 10:54 PM
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
10-26-2009, 12:32 AM
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
10-26-2009, 01:03 AM
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
10-26-2009, 01:29 AM
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
10-26-2009, 01:36 AM
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
10-26-2009, 01:45 AM
No problem Chris, glad I could help a fellow admin! :D

mandingo
12-27-2009, 04:03 PM
This works in 4 with no problems

PET
01-20-2010, 03:44 AM
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
01-20-2010, 04:17 AM
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-04-2010, 09:55 AM
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
04-10-2010, 07:21 PM
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
04-16-2010, 11:22 AM
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
04-16-2010, 11:55 AM
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
04-16-2010, 12:05 PM
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
04-16-2010, 12:07 PM
I believe you are correct.

Just found this: https://vborg.vbsupport.ru/showthread.php?t=168123

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

JohnMcClane
04-16-2010, 12:22 PM
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
04-16-2010, 12:27 PM
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
04-16-2010, 12:29 PM
Thanks buddy, have a good day :)

John

metalguy639
04-30-2010, 03:13 AM
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
04-30-2010, 10:16 AM
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
10-21-2010, 01:43 PM
Beautiful. Worked perfectly!

goxy63
11-27-2010, 03:35 AM
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
12-26-2010, 10:17 PM
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
02-04-2011, 09:13 AM
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
03-08-2011, 10:24 AM
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
03-10-2011, 03:40 AM
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
05-01-2011, 09:00 PM
This bbcode not workign for me on 4.1.3 version :(

tell me why ?

MagicThemeParks
05-04-2011, 02:07 AM
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
11-05-2011, 08:46 PM
I allways get "file not found" ?

on 4.1.6

goxy63
10-08-2014, 09:13 PM
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
10-08-2014, 09:34 PM
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
10-09-2014, 04:44 AM
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
10-09-2014, 07:10 PM
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 :)