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
  #132  
Old 11-14-2008, 11:49 AM
vbob vbob is offline
 
Join Date: Jan 2008
Posts: 37
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. I would like a little bit help though.
I want to embed the mp3 using the [attach]xxx[/attach] tag so the users can only see the player and not the attach link.

I know that in our times it is hard to prevent the downloading, but it is exactly what I want.

Let me be more specific.
1. The user Create New Thread/post
2. The user upload the mp3 attachment. (now the url of the attachment is something like this:
Code:
http://mysite.com/forum/attachment.php?attachmentid=xxxxx&d=xxxxxxxxxxxxx
3. The user uses copy/paste and paste the above url inside his post.
Then he select the url he just pasted and press the mp3 bbcode button.
The result is this:
Code:
[mp3]http://mysite.com/forum/attachment.php?attachmentid=xxxxx&d=xxxxxxxxxxxxx[/mp3]
I want the user to be able to follow the above if he want to "share for downloading" his mp3. Ok until now, everything is working great. The player appears and below it is the link to download the file.

If the user want just to put it in the post for other user to hear it only with the player, then, like in the [attach]XXXX[/attach] method, the attachment is placed between the text and the url in the end of the post disappears...!!! Thats what I want. I want a bbcode to be able to play the mp3 attachment using the below bbcode so the mp3 link "disappear" and only the flash player is available.
Here is what I want:
Code:
[mp3][attach]XXXXX[/attach][/mp3]
Could you help me with that?
How can I do it?
Reply With Quote
  #133  
Old 11-14-2008, 12:57 PM
Leo Brazil's Avatar
Leo Brazil Leo Brazil is offline
 
Join Date: Dec 2007
Location: Brazil
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by vbob View Post
If the user want just to put it in the post for other user to hear it only with the player, then, like in the [attach]XXXX[/attach] method, the attachment is placed between the text and the url in the end of the post disappears...!!! Thats what I want. I want a bbcode to be able to play the mp3 attachment using the below bbcode so the mp3 link "disappear" and only the flash player is available.
Here is what I want:
Code:
[mp3][attach]XXXXX[/attach][/mp3]
Could you help me with that?
How can I do it?
This is an interesting idea, I'd use that too. :up:
Reply With Quote
  #134  
Old 01-02-2009, 09:35 PM
Thelonius Beck's Avatar
Thelonius Beck Thelonius Beck is offline
 
Join Date: Jan 2008
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK folks.

I couldn't make this (or anything similar) work for the life of me. Then I had an epiphany.

Having already installed MP3 Player in Profile, the 1pixelout flash player already existed on my server! Therefore, for whatever reason, calling the new one wouldn't work.

So I simply changed all of the file paths in the replacement code to that of my existing player. VOILA!

I removed the duplicate player from my server, and I'm pleased as punch.

Hope this helps somebody out.






*Installed*
Reply With Quote
  #135  
Old 01-11-2009, 10:24 AM
Nwq Nwq is offline
 
Join Date: Dec 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

download link pleas
Reply With Quote
  #136  
Old 01-11-2009, 01:03 PM
ArnyVee's Avatar
ArnyVee ArnyVee is offline
 
Join Date: Mar 2008
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nwq, what download link are you looking for? The download link for the player is in the 1st post (description of mod).
Reply With Quote
  #137  
Old 01-13-2009, 09:01 PM
Ceaseless Skies Ceaseless Skies is offline
 
Join Date: Jul 2008
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks so much--this looks great in my podcasting sub-forum!
Reply With Quote
  #138  
Old 01-31-2009, 12:14 PM
powersilie powersilie is offline
 
Join Date: Dec 2008
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you so much, it works great with vB 3.8.1

TOP!

greetings
Karin
Reply With Quote
  #139  
Old 03-31-2009, 01:16 PM
chikkoo chikkoo is offline
 
Join Date: Mar 2005
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can someone kindly elobrate this trick. How to do it?

I am trying to post 10 parts of one album.


Quote:
Originally Posted by elmati View Post
as i see we cant use more than 1 player in the same page...

i need to use options to use 1, 2, 3, 4 player in the same post :P
for this: id="audioplayer{option}

[mp3=1]url1.mp3[/mp3]
[mp3=2]url2.mp3[/mp3]
[mp3=3]url3.mp3[/mp3]

and if i just want to use one player i got and error :P

im trying to find a way...
Reply With Quote
  #140  
Old 04-07-2009, 10:30 AM
h2ck3r h2ck3r is offline
 
Join Date: Mar 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works with the latest 2.0, just download from http://wpaudioplayer.com and replace the old files =)

And it is possible to have more then 1 player =) no options or anything needed.. just

[mp3]http://test.net/mp3/test1.mp3[/mp3]
[mp3]http://test.net/mp3/test2.mp3[/mp3]
Reply With Quote
  #141  
Old 04-15-2009, 02:15 PM
Exstedt Exstedt is offline
 
Join Date: Apr 2009
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can only get one song to work at a time, and that's by adding the link to that song within the BB code.

I needed to show two songs, so I had to make a new BB code, the same as the first, but with a different url within the BB code.

It has worked out great on Internet Explorer, but on FireFox the songs get ruined and distorted. Anyone else experiencing this? Thank you.
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:30 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.05170 seconds
  • Memory Usage 2,321KB
  • 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
  • (5)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
  • (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