PDA

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


majordork82
02-18-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/#download

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.2minus2.com/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! Thats it!

DEMO: http://2minus2.com/forum/showthread.php?p=3405#post3405

For any support on this code please refer to the demo thread on my site.

BE SURE TO CLICK INSTALLED :)

rapidphim
02-19-2008, 09:09 PM
Where is the mp3 button? Nice work... will try out.

iogames
02-19-2008, 09:19 PM
Well although AnyMedia and GoldBrick do the same job I love the player! so I will install ;)

rapidphim
02-19-2008, 09:52 PM
Goldbrick did not play audio on my site.

majordork82
02-19-2008, 09:57 PM
Where is the mp3 button? Nice work... will try out.

Added! Sorry, I forgot to add it. :)

iogames
02-20-2008, 03:45 AM
Goldbrick did not play audio on my site.

I don't know why since the player.swf is exactly the same on GoldBrick ;)

rapidphim
02-20-2008, 01:47 PM
more likely you might have to rename one of the player. Otherwise, we can't have two mods at the same time.

Can this mod play all kind of audio file extensions or just mp3 format?

majordork82
02-20-2008, 06:51 PM
Just MP3 as far as I know.

SwordmanJr
02-21-2008, 02:09 AM
It worked great the first time. Thanks.:)

iogames
02-21-2008, 05:04 AM
more likely you might have to rename one of the player. Otherwise, we can't have two mods at the same time.

Can this mod play all kind of audio file extensions or just mp3 format?

In my case I just uploaded:
- audio-player.js
- player.swf
and created the BBCode

pompaunpo
02-21-2008, 05:00 PM
It worked great !!!
sorry, but uploading mp3 file on the server?

majordork82
02-21-2008, 09:45 PM
In my case I just uploaded:
- audio-player.js
- player.swf
and created the BBCode


Right, thats all there is to it.

Tharos
02-22-2008, 05:32 AM
it is not working to me and I did all the steps =(

the player just says "buffering" and nohing else
I did it:

<script language="JavaScript" src="http://www.wachos.cl/comunidad/audio-player/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.wachos.cl/comunidad/audio-player/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.wachos.cl/comunidad/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>


and I thought the example is wrong =/
beacuse I put it and nothing happened
see it by yourselves http://www.2minus2.com/song.mp3

majordork82
02-22-2008, 09:07 AM
THat is not the example. The example is...

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

Ofcourse the example wont work on this forum because they are not using the tag!

Look at the demo here http://2minus2.com/forum/showthread.php?t=223

Tharos
02-23-2008, 02:39 AM
i used that example (http://www.2minus2.com/song.mp3)
but the file says "error opening file", so i donĀ“t know what to do
you say that the songs I want to play on posts have to be on my servers or I can host them on a website??

grettings from chile!

majordork82
02-23-2008, 08:22 AM
The MP3 files can be hosted anywhere. Also make sure you are adding the http:// in the address.

Kalina
02-23-2008, 05:26 PM
Thanks, works great!

It's best to upload your own MP3 as the example MP3 because the one provided here does not work.

Tharos
02-23-2008, 09:55 PM
The MP3 files can be hosted anywhere. Also make sure you are adding the http:// in the address.
I don?t think so my friend, because i tried to use two websites: boomp3.com and goear.c om and it didn?t work =/


-----------------------
It worked dude! so thanks a lot ^^
god bless you all for your help =)

majordork82
02-23-2008, 10:22 PM
I don?t think so my friend, because i tried to use two websites: boomp3.com and goear.c om and it didn?t work =/


-----------------------
It worked dude! so thanks a lot ^^
god bless you all for your help =)


Haha, glad it works for you now, can you mark it as installed? :)

Tharos
02-25-2008, 04:26 AM
ok, sorry, i forgot it xD

majordork82
03-01-2008, 09:56 AM
Thanks!

Deucebigalow
03-01-2008, 04:44 PM
here is a dumb questions, where do you change the bb code? what is a bb code?

<-- total noob and first time doing something like this

lurkerx
03-01-2008, 06:22 PM
How do you make it autostart? or change color?

RottiEF
03-01-2008, 06:25 PM
Sorry for my english..i am speaking german ;)

Verry Nice Addon i am installed...Perfect....

Deucebigalow
03-01-2008, 11:22 PM
here is a dumb questions, where do you change the bb code? what is a bb code?

<-- total noob and first time doing something like this

Nevermind. This noob got it to work! Nice!!

mikkitine
03-03-2008, 02:03 AM
Works excellently. Thank you very much. 5 stars.

ezurick
03-29-2008, 11:33 AM
Installed this and I have an example mp3 on my host... I can pull up the mp3 easily in the web browser. But when I try to link it in the BB code, I always get a "error opening the file". Can any help?

ezurick
03-31-2008, 12:08 PM
Installed this and I have an example mp3 on my host... I can pull up the mp3 easily in the web browser. But when I try to link it in the BB code, I always get a "error opening the file". Can any help?

Can anyone help me with this? I see that others had the same issue, but never stated what they done to correct it. All they replied with is... ok, I fixed it. Blah!

I studied intensely... the code for the BB... I have it linked properly. The .swf comes up and tries to load the file I have addressed in the [mp3] tag, but always comes up with "error opening the file". I make sure the complete url (including the http://) is in the addy. I can not figure out what could be the problem... anyone?

RC.
04-01-2008, 05:01 PM
Very nice...

bago200
04-01-2008, 08:01 PM
Hey the code works well for me but when i hit the play button, not only it starts to play but it opens up another window with another player and that too starts to play- automatically, any ideas how to fix this?

sat2dvb
04-01-2008, 10:32 PM
oooh

very nice mod

I'm installed

thanks sr

moonface
04-02-2008, 06:04 PM
Can I change color?

ezurick
04-06-2008, 05:53 PM
Can anyone help me with this? I see that others had the same issue, but never stated what they done to correct it. All they replied with is... ok, I fixed it. Blah!

I studied intensely... the code for the BB... I have it linked properly. The .swf comes up and tries to load the file I have addressed in the [mp3] tag, but always comes up with "error opening the file". I make sure the complete url (including the http://) is in the addy. I can not figure out what could be the problem... anyone?

U N I N S T A L L E D!!! Absolutely ZERO help! Run from these!

majordork82
04-17-2008, 10:57 PM
The main thing people are doing wrong is putting the wrong link back where the script is located. It's not the BB part that people are messing up on. Make sure your linking to the exact location of the script.

Silvio
04-18-2008, 01:16 PM
ty so much. this bbcode is working perfectly.

I would love to let the player start automatically. any idea on howto?


regards and again ty

pls apologises for my terrible english

ciao

Silvio
04-18-2008, 01:45 PM
U N I N S T A L L E D!!! Absolutely ZERO help! Run from these!
I suppose the problem is that you are inserting an url already parsed.

note that the address inside the mp3 tags should be inserted raw (should be black and not blue underlined as the parsed links are) and it will work perfectly

ciao

majordork82
04-21-2008, 10:24 AM
You must follow the instructions perfectly. This is a very picky BB code and everything must be perfect for it to work right. This includes adding "http" in your links, using the right directory for the BB code and so on. Remember if you want faster responses you can go to my demo page I posted in the first post and you will get a quicker response there :D

K4GAP
04-28-2008, 05:46 PM
Real dumb question... where do I upload the button too?

nevermind, I found it :) i'm so slow

gim
05-02-2008, 01:39 AM
Great!

vithorius
05-07-2008, 07:16 PM
I don?t think so my friend, because i tried to use two websites: boomp3.com and goear.c om and it didn?t work =/


-----------------------
It worked dude! so thanks a lot ^^
god bless you all for your help =)

Dear Tharos, are you able to put Boomp3.com to work with AME???

Or do you use another way of emmedding it inside the posts?

Thank you!

david05
05-12-2008, 04:52 PM
How can I set autostart for the music when entering a thread or topics.

majordork82
06-29-2008, 01:29 AM
Try this :D

<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>

Prisim
01-08-2010, 06:14 AM
working

but sometime it say a error file not found :)