Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 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.7.0 Beta 4 Rating:
Released: 02-17-2008 Last Update: Never Installs: 210
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/#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:

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.hd-trailers.org/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! That's it!


BE SURE TO CLICK INSTALLED

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
goxy63

Comments
  #152  
Old 10-25-2009, 12:53 PM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #153  
Old 10-25-2009, 12:59 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .... I had to hardcode the url into the code and using this code ...

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
Reply With Quote
  #154  
Old 10-25-2009, 01:11 PM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #155  
Old 10-25-2009, 01:33 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Chris, what's the mp3 file URL that you're using and I'll test it on my site. Have a goodnight!
Reply With Quote
  #156  
Old 10-25-2009, 08:38 PM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<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
Reply With Quote
  #157  
Old 10-25-2009, 10:54 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #158  
Old 10-26-2009, 12:32 AM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 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
Reply With Quote
  #159  
Old 10-26-2009, 01:03 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #160  
Old 10-26-2009, 01:29 AM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #161  
Old 10-26-2009, 01:36 AM
Driven By Shine Driven By Shine is offline
 
Join Date: Oct 2009
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MagicThemeParks View Post
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
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 06:31 PM.


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.04505 seconds
  • Memory Usage 2,320KB
  • 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
  • (2)bbcode_code
  • (1)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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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