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 :)

NeuroLancer 02-18-2008 12:30 AM

Quote:

Originally Posted by majordork82 (Post 1445545)
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?

majordork82 02-18-2008 12:52 AM

As far as I know only mp3's. If you find otherwise please let me know.

Rickeo 02-18-2008 03:58 AM

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 :)

NeuroLancer 02-18-2008 09:04 AM

Quote:

Originally Posted by Rickeo (Post 1445701)
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.

TTG 02-18-2008 11:27 AM

Installed straight out of the box with no problems.
Thanks majordork82 .. clicked install.

majordork82 02-18-2008 07:11 PM

Yeah this is pretty simple and works fantastic!

pcoskat 02-18-2008 08:55 PM

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.

majordork82 02-18-2008 11:24 PM

I'm sure it can be done but thats a whole new mod in itself :)

Magnumutz 02-19-2008 09:20 AM

I really like it... java :)

majordork82 02-19-2008 10:15 PM

Glad you lile it! I'm working on another one right now.

LoneWolf71 02-19-2008 11:00 PM

mine says cannot find file :(

Im sure its all done right...

rinkrat 02-19-2008 11:48 PM

Easy install, works great.

Buddabing Buddaboom!

Thanks !

omgwf 02-20-2008 09:11 AM

we still use 3.6.8 VB
so where can i find the download "flash player" for 3.6.8 ?

Thanks you

are u updating it for 3.7.0 v 5 ?

majordork82 02-20-2008 06:52 PM

It will work for any version.

elmati 02-20-2008 09:10 PM

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...

majordork82 02-21-2008 07:06 PM

Yes. If you want more than one in a post you have to give each one its own unique ID. :)

elmati 02-21-2008 11:47 PM

yeah, im using option

ty m8!

majordork82 02-22-2008 06:31 PM

No problem. I am working on more now :)

Brew 02-26-2008 01:28 PM

Can you include instructions on where to upload the tag button .gif?

Thanks!

Brew 02-26-2008 01:57 PM

I changed the bbcode graphic so it has a transparent background.

It may help some people.

nerofix 02-26-2008 08:57 PM

Thx :)

Works fine but I get an error message saying: illegal character GIF89a

Edit: and one error message more:

ap_stopAll is not defined
null
javascript:ap_sto... (line 1)

majordork82 03-01-2008 09:56 AM

That's the first report of errors... where are you seeing those errors and or can you take a screenshot?

yotsume 03-13-2008 03:44 AM

I like this way to have a MP3 player much better. Automatically makes attached MP3s into flash player and you can have multiple players. Can be uploaded or linked.

https://vborg.vbsupport.ru/showthread.php?t=161567

7lanet 03-13-2008 04:27 AM

thanks

Fatsobob 03-13-2008 05:59 PM

Very simple install, got it working first try with no fuss. Thanks for the great how-to!

DarkSorrowz 03-13-2008 11:12 PM

What do I use as the button?

rolfw1 03-17-2008 11:43 AM

Thanks very much, have installed on 3.67PL1 and works great, a nice neat solution. :)

leylandfor 03-20-2008 05:04 AM

i have tried to implement this but the mp3 player doesnt appear in the post, i no its there tho becuase IE says press spacebar to use enable when you hover it, my replace code is

Code:

<script language="JavaScript" src="http://www.leylandforum.co.uk/audio/audio-player.js"></script>
<object type="application/x-shockwave-flash" data="http://www.leylandforum.co.uk/audio/player.swf" id="audioplayer4" height="24" width="290">
<param name="movie" value="http://www.leylandforum.co.uk/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>

and the path to the player is www.leylandforum.co.uk/audio

the path to the mp3 song is www.leylandforum.co.uk/rocketman.mp3 and i have insert the tags as follows

Code:

[mp3]http://www.leylandforum.co.uk/rocketman.mp3[/mp3]

Sworm 03-20-2008 04:00 PM

Hi, this mod can be used with a music files on the pc? (with a upload)

KURTZ 03-20-2008 04:14 PM

just wondering: where i should put the audio player? into my forum root?


All times are GMT. The time now is 06:05 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.01325 seconds
  • Memory Usage 1,808KB
  • 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
  • (6)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
  • (40)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