vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   MP3 Footer / MP3 Player (https://vborg.vbsupport.ru/showthread.php?t=134113)

Weapon-x 12-15-2006 10:00 PM

MP3 Footer / MP3 Player
 
Alright I have made a Flash Driven MP3 Player for your forums.

First Off Open vba_mp3_player.fla from your .zip file
Once open, Click once on the "White Circle" to select it, Then press F9 to open the Actions Panel.
(WHITE CIRCLE IS LOCATED TO THE LEFT OF THE STAGE)


Now,
Locate this code:
Code:

/////////////////////////////////////Song List array
songList = new Array(
"Broken.mp3",
"Flowers.mp3",
"Walls.mp3",
"Shine.mp3"
);

/////////////////////////////////////Song List Description
/////////////////////////////////////////////////////Array
songDesc = new Array(
"Broken",
"Flowers and Cages",
"The Walls",
"Shine"

You need to change the .mp3 with the name of the mp3 you want to play. For example say you don't want to play "Broken.mp3" then you could upload the song "LongView.mp3" so change Broken to LongView.

Second under "Song List Description" you need to change the Title of the Song. The song titles are in the order of the .mp3 listed.

Once you have edited your song for your users to listen to then go to File > Export > Export Movie. In the file name put "mp3player" hit Save. Then check "Protect From Import" and hit OK.

Now some template changes.
Go to Admin Control Panel > Styles and Templates > Style Manager > << YOUR THEME >> > footer

At the very end of that code add:
Code:

<center>
<embed src="http://www.yoursite.com/mp3player.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="340" height="21.5"></embed>
</center>

Make sure you upload your music files into your root directory where your .swf file is located at!


Upload > mp3player.swf to main root.
Upload > music files your mp3player needs to read in the SAME directory as your mp3player.swf

Programs needed: Macromedia Flash Professional 8

If you need any support please post it:

ADDED: vba_mp3_auto_off_1.0.0.zip
Q: What is it?
A: It will not automatically load the music your user must hit "play" before it downloads the music. Thus saving bandwidth.



Dante_elitE 12-16-2006 02:16 PM

Very interesting, I go to test in my forum. It would have as you to postar some images to be able to see as will be?

yoyoyoyo 12-16-2006 02:20 PM

please put instructions in a text file and add it to the zip

basilrath 12-16-2006 02:29 PM

any screenshots?

Weapon-x 12-16-2006 02:49 PM

Please redownload the .fla file because I have updated it to version 1.0.0 due to a error in the system. Plus I had added screen shots.

TheBlackPoet 12-16-2006 03:37 PM

i did everything.. and the player plays fine when i point to it through my browser.. but wheni put it in my footer.. there is no sound.. the player shows, but no sound.. pushed play... no sound.. stopped, then pushed play.. no sound...

Weapon-x 12-16-2006 03:45 PM

Quote:

Originally Posted by TheBlackPoet (Post 1139790)
i did everything.. and the player plays fine when i point to it through my browser.. but wheni put it in my footer.. there is no sound.. the player shows, but no sound.. pushed play... no sound.. stopped, then pushed play.. no sound...

http://www.theblackpoet.com/forum/songlist/jazz.swf

Try putting your mp3player.swf in your root. Like yoursite.com/mp3player.swf

And your music in the same directory.
Once that you can either add it under your header or footer. And it should find the music and play. If not I'll look more into it.

TheBlackPoet 12-16-2006 08:59 PM

that worked perfectly... i was almost ready to give up... but.... success!!!! thanks for the great hack!!

I hate to sound unappreciative, but, is there a way to make this player global? so, as my members move from page to page, the tracks continue to play?
if this is not possible... its all good!!

Dark Riku 12-17-2006 08:38 PM

If there was a way to make it so you can continue playing while going to other pages I'd use this in a heart beat

Weapon-x 12-19-2006 11:49 AM

Quote:

Originally Posted by Dark Riku (Post 1140566)
If there was a way to make it so you can continue playing while going to other pages I'd use this in a heart beat

Like when it playing and say someone clicks on a forum it will load the music and continue to play?


All times are GMT. The time now is 08:55 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.01089 seconds
  • Memory Usage 1,739KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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