Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Embed MP3 in post using flash player Details »»
Embed MP3 in post using flash player
Version: 1.00, by majordork82 majordork82 is offline
Developer Last Online: Mar 2010 Show Printable Version Email this Page

Category: BB Code Enhancements - Version: 3.6.x Rating:
Released: 02-18-2008 Last Update: Never Installs: 38
Re-useable Code  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 02-21-2008, 05:00 PM
pompaunpo pompaunpo is offline
 
Join Date: Nov 2006
Posts: 36
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It worked great !!!
sorry, but uploading mp3 file on the server?
Reply With Quote
  #13  
Old 02-21-2008, 09:45 PM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by iogames View Post
In my case I just uploaded:
- audio-player.js
- player.swf
and created the BBCode

Right, thats all there is to it.
Reply With Quote
  #14  
Old 02-22-2008, 05:32 AM
Tharos Tharos is offline
 
Join Date: Aug 2007
Location: VALPARAISO / CHILE
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 02-22-2008, 09:07 AM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 02-23-2008, 02:39 AM
Tharos Tharos is offline
 
Join Date: Aug 2007
Location: VALPARAISO / CHILE
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #17  
Old 02-23-2008, 08:22 AM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The MP3 files can be hosted anywhere. Also make sure you are adding the http:// in the address.
Reply With Quote
  #18  
Old 02-23-2008, 05:26 PM
Kalina's Avatar
Kalina Kalina is offline
 
Join Date: Mar 2005
Location: Canada
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, works great!

It's best to upload your own MP3 as the example MP3 because the one provided here does not work.
Reply With Quote
  #19  
Old 02-23-2008, 09:55 PM
Tharos Tharos is offline
 
Join Date: Aug 2007
Location: VALPARAISO / CHILE
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by majordork82 View Post
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 =)
Reply With Quote
  #20  
Old 02-23-2008, 10:22 PM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Tharos View Post
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?
Reply With Quote
  #21  
Old 02-25-2008, 04:26 AM
Tharos Tharos is offline
 
Join Date: Aug 2007
Location: VALPARAISO / CHILE
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, sorry, i forgot it xD
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:29 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05497 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete