vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   BB Code Enhancements - Embed MP3 in post using flash player (https://vborg.vbsupport.ru/showthread.php?t=170951)

majordork82 02-18-2008 10:00 PM

Embed MP3 in post using flash player
 
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-...ugin/#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:

Code:

<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: [mp3]http://www.2minus2.com/song.mp3[/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

Quote:

Originally Posted by rapidphim (Post 1446890)
Where is the mp3 button? Nice work... will try out.

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

iogames 02-20-2008 03:45 AM

Quote:

Originally Posted by rapidphim (Post 1446917)
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

Quote:

Originally Posted by rapidphim (Post 1447339)
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

Quote:

Originally Posted by iogames (Post 1447892)
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...

[mp3]http://www.2minus2.com/song.mp3[/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 ([mp3]http://www.2minus2.com/song.mp3[/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

Quote:

Originally Posted by majordork82 (Post 1449225)
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

Quote:

Originally Posted by Tharos (Post 1449567)
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

Quote:

Originally Posted by Deucebigalow (Post 1454506)
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

Quote:

Originally Posted by ezurick (Post 1477550)
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

Quote:

Originally Posted by ezurick (Post 1479006)
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

Quote:

Originally Posted by ezurick (Post 1484548)
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

Quote:

Originally Posted by Tharos (Post 1449567)
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!


All times are GMT. The time now is 04:54 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01328 seconds
  • Memory Usage 1,818KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete