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?

RockForums 12-20-2006 04:39 PM

Quote:

Originally Posted by Weapon-x (Post 1141536)
Like when it playing and say someone clicks on a forum it will load the music and continue to play?

I'm presuming that's what they mean. If you could do that, I would definately use it :)

Weapon-x 12-20-2006 06:25 PM

See that's the thing. I know of an option that would be. You click a button and it will launch the "Music Player POP Up" And that would be another page. But I'll see about programming it to stop when a page is reloaded or changed and continue after reload or change.

RockForums 12-20-2006 06:56 PM

Will the music automatically start, or will the the person browsing the forum be able to turn it on and off?

Also, is it possible so there is a different song for different sections? (I have a music forum, thus meaning I could set say, Iron Maiden for "Old school rock" and Green Day for "Pop Rock".)

Mupetz 12-23-2006 12:28 PM

Quote:

Originally Posted by RockForums (Post 1142313)
I'm presuming that's what they mean. If you could do that, I would definately use it :)

Yep , me 2.
I use it already, thank you btw , but it will be better that way :)

RockForums 12-31-2006 03:10 PM

Any reply from the OP? :knockedout:

nebu 01-03-2007 09:46 PM

Hi!
I have installed the mod, works great.
bix thx!

But i want that only users who are logged in can see and play the mp3 songs.
actually its also displayed in the login screen.

raja811 01-13-2007 11:18 AM

Programs needed: Macromedia Flash Professional 8

if not flash pro8 in user computer ,can't they hear mp3?????

Cagonni 01-23-2007 01:32 AM

@raja811

i think flash need for editing the .fla file..

Dotara 06-27-2007 11:26 AM

Quote:

Originally Posted by Weapon-x (Post 1139794)
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.

Hello,

Same here. Did everything correctly but player is not working/no sound on FireFox. Here is my forum's link
Code:

http://www.dotara.net
and here is the player
Code:

http://www.dotara.net/mp3player.swf

Dotara 06-27-2007 02:42 PM

Also is it possible to change the silver BG color of the player to white to match my board's color? You can check the attachment to understand.


All times are GMT. The time now is 04:53 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.01103 seconds
  • Memory Usage 1,759KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete