vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   BB Code Enhancements - Embed MP3 in post using flash player (https://vborg.vbsupport.ru/showthread.php?t=170794)

majordork82 02-17-2008 10:00 PM

Embed MP3 in post using flash player
 
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 :)

NeuroLancer 02-17-2008 10:49 PM

Looks good. Reminds me of the one i used in 3.6.8 ... Thanks alot for sharing.

Dark Cynicus! 02-17-2008 10:51 PM

nice hack fam

NeuroLancer 02-17-2008 11:01 PM

just a quick note about how this works, you must include the "http" in the url.

Installed :)

Dark Cynicus! 02-17-2008 11:04 PM

<a href="http://www.rhythematics.com/forums/showthread.php?p=30#post30" target="_blank">http://www.rhythematics.com/forums/s...hp?p=30#post30</a> doesnt work =/

i tried it on da 2nd post

majordork82 02-17-2008 11:06 PM

Try unlinking your links before you post and make sure the string is all in one line like this

Good

Code:

[mp3]http://www.2minus2.com/song.mp3[/mp3]
Bad

Code:

[mp3]
http://www.2minus2.com/song.mp3[/mp3]

Bad

Code:

[mp3]
http://www.2minus2.com/song.mp3
[/mp3]


NeuroLancer 02-17-2008 11:08 PM

Working great for me. See attachment

Mus.t be a problem with how you've configured it.

majordork82 02-17-2008 11:11 PM

Quote:

Originally Posted by NeuroLancer (Post 1445533)
just a quick note about how this works, you must include the "http" in the url.

Installed :)

Good catch NeuroLancer. Thanks! Added it in :)

Dark Cynicus! 02-17-2008 11:28 PM

got it working thanks

majordork82 02-17-2008 11:38 PM

Good deal! Let me know if you have any issues :)


All times are GMT. The time now is 10:35 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01096 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete