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
  #12  
Old 02-18-2008, 12:30 AM
NeuroLancer's Avatar
NeuroLancer NeuroLancer is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

As far as I know only mp3's. If you find otherwise please let me know.
Reply With Quote
  #14  
Old 02-18-2008, 03:58 AM
Rickeo's Avatar
Rickeo Rickeo is offline
 
Join Date: Jan 2007
Location: Manchester
Posts: 275
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #15  
Old 02-18-2008, 09:04 AM
NeuroLancer's Avatar
NeuroLancer NeuroLancer is offline
 
Join Date: Feb 2008
Location: Australia
Posts: 143
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Rickeo View Post
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.
Reply With Quote
  #16  
Old 02-18-2008, 11:27 AM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed straight out of the box with no problems.
Thanks majordork82 .. clicked install.
Reply With Quote
  #17  
Old 02-18-2008, 07:11 PM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah this is pretty simple and works fantastic!
Reply With Quote
  #18  
Old 02-18-2008, 08:55 PM
pcoskat pcoskat is offline
 
Join Date: Apr 2002
Location: atlanta
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

I'm sure it can be done but thats a whole new mod in itself
Reply With Quote
  #20  
Old 02-19-2008, 09:20 AM
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Location: Romania
Posts: 731
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really like it... java
Reply With Quote
  #21  
Old 02-19-2008, 10:15 PM
majordork82 majordork82 is offline
 
Join Date: Apr 2007
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Glad you lile it! I'm working on another one right now.
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:38 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.05335 seconds
  • Memory Usage 2,305KB
  • 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
  • (2)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
  • (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