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
  #172  
Old 04-16-2010, 12:22 PM
JohnMcClane JohnMcClane is offline
 
Join Date: Jan 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I've just tested this and it works (to an extent) but for some reason when I enter the text, and hit post - it shows up the code like this in the actual post-

[mp3]http://www.site.com/audio/sound.mp3[/mp3]

After a refresh it's still the same. But if you click "Edit post", change nothing and then hit "Save" it's fine and it shows.

Quite annoying Do you know why or of another way we can do this?
Reply With Quote
  #173  
Old 04-16-2010, 12:27 PM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmm...interesting. I have to head to work, but if I think of anything I'll drop by this thread and give you a suggestion.
Reply With Quote
  #174  
Old 04-16-2010, 12:29 PM
JohnMcClane JohnMcClane is offline
 
Join Date: Jan 2010
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks buddy, have a good day

John
Reply With Quote
  #175  
Old 04-30-2010, 03:13 AM
metalguy639 metalguy639 is offline
 
Join Date: Dec 2008
Posts: 501
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?
Reply With Quote
  #176  
Old 04-30-2010, 10:16 AM
MagicThemeParks's Avatar
MagicThemeParks MagicThemeParks is offline
 
Join Date: Sep 2009
Posts: 850
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by metalguy639 View Post
Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?
Absolutely DOES work with 3.8.4

Demo: http://www.magicthemeparks.com/mk/fo...hread.php?t=51
Reply With Quote
  #177  
Old 10-21-2010, 01:43 PM
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Beautiful. Worked perfectly!
Reply With Quote
  #178  
Old 11-27-2010, 03:35 AM
goxy63 goxy63 is offline
 
Join Date: Oct 2008
Location: its like another planet:D
Posts: 657
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works with vb4 just great
was wondering is there any way to play from a link like this:
http://www.spreadtheonavirus.com/classicona/O&A Bits/Arnold Prank Calls/Arnold Prank Calls - Arnold calls Arnold Pizza.mp3
Note those spaces in link, in a browser I can open that link and play mp3 file but within tags on my site I just cant (spaces)

Think I got it, if i place "%" where I have space it will play, but who can make users to do that?
http://www.spreadtheonavirus.com/cla...ld%20Pizza.mp3
nope its not working with "%" within BB code
Reply With Quote
  #179  
Old 12-26-2010, 10:17 PM
Keesa Keesa is offline
 
Join Date: Oct 2007
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Schnee View Post
I can't get this to work on v 3.8.5



I am trying to reinstall it, but the link to download the player is unclear to me... do I need the standalone version?

Has anyone had success with this?
Thought I would just ask this again, I am not clear which version to use of the player?

Thank you
Reply With Quote
  #180  
Old 02-04-2011, 09:13 AM
fastcom fastcom is offline
 
Join Date: Mar 2010
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,
I want create this bbcode for vbulletin 4.1.x

after complete i have receive vbulletin message
Code:
The following BB Code replacement may not be properly formed. All HTML attributes should be enclosed within double quotes.
<script language="JavaScript" src="http://mysite.com/audio-player/audio-player.js"></script> <object type="application/x-shockwave-flash" data="http://mysite.com/audio-player/player.swf" id="audioplayer4" height="24" width="290"> <param name="movie" value="http://mysite.com/audio-player/player.swf"> <param name="FlashVars" value="playerID=4&soundFile={param}"> <param name="quality" value="high"> <param name="menu" value="false"> <param name="wmode" value="transparent"> </object>
but it still work so well(in admin Panel)

when use in front end it not work(error: file not found)

here my code:
+ Replacement:
PHP Code:
<script language="JavaScript" src="http://mysite.com/audio-player/audio-player.js"></script>
<
object type="application/x-shockwave-flash" data="http://mysite.com/audio-player/player.swf" id="audioplayer4" height="24" width="290">
<
param name="movie" value="http://mysite.com/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
I think issue in line:
<param name="FlashVars" value="playerID=4&soundFile={param}">

I have tried some option custom
<param name="FlashVars" value="playerID=4&soundFile=
"{param}">

or

<param name="FlashVars" value="playerID=4&soundFile='{param}'">

or

<param name="FlashVars" value="playerID=4&soundFile=\"{param}\"">

but it's not work

who can let me know can I fix

Thank so much.
Reply With Quote
  #181  
Old 03-08-2011, 10:24 AM
ShawneyJ's Avatar
ShawneyJ ShawneyJ is offline
 
Join Date: Jul 2006
Location: Australia
Posts: 1,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by metalguy639 View Post
Absolutely positively does NOT work. Using vb 3.8.4. It will not embed the file into the post. I've tried everything I can think of. Does anyone know of one that does work in posts?

has to be something to do with the server or some shit. none of the mp3 mods are working.
everything is correct %100.
the mp3 works in bb code test in admin but not out on the forums, driving me nuts.
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:32 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.04860 seconds
  • Memory Usage 2,328KB
  • 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_php
  • (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
  • (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