vb.org Archive

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

majordork82 02-18-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/#download

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.2minus2.com/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! Thats it!

DEMO: http://2minus2.com/forum/showthread.php?p=3405#post3405

For any support on this code please refer to the demo thread on my site.

BE SURE TO CLICK INSTALLED :)

rapidphim 02-19-2008 09:09 PM

Where is the mp3 button? Nice work... will try out.

iogames 02-19-2008 09:19 PM

Well although AnyMedia and GoldBrick do the same job I love the player! so I will install ;)

rapidphim 02-19-2008 09:52 PM

Goldbrick did not play audio on my site.

majordork82 02-19-2008 09:57 PM

Quote:

Originally Posted by rapidphim (Post 1446890)
Where is the mp3 button? Nice work... will try out.

Added! Sorry, I forgot to add it. :)

iogames 02-20-2008 03:45 AM

Quote:

Originally Posted by rapidphim (Post 1446917)
Goldbrick did not play audio on my site.

I don't know why since the player.swf is exactly the same on GoldBrick ;)

rapidphim 02-20-2008 01:47 PM

more likely you might have to rename one of the player. Otherwise, we can't have two mods at the same time.

Can this mod play all kind of audio file extensions or just mp3 format?

majordork82 02-20-2008 06:51 PM

Just MP3 as far as I know.

SwordmanJr 02-21-2008 02:09 AM

It worked great the first time. Thanks.:)

iogames 02-21-2008 05:04 AM

Quote:

Originally Posted by rapidphim (Post 1447339)
more likely you might have to rename one of the player. Otherwise, we can't have two mods at the same time.

Can this mod play all kind of audio file extensions or just mp3 format?

In my case I just uploaded:
- audio-player.js
- player.swf
and created the BBCode


All times are GMT. The time now is 10:17 AM.

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.01079 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
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (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