TinyPortal

Development => Block Codes => Topic started by: akulion on April 30, 2006, 06:36:32 PM

Title: Popup Flash Jukebox
Post by: akulion on April 30, 2006, 06:36:32 PM
This MP3 player is by Jeroen Wijering (http://www.jeroenwijering.com) and source files (fla) for the flash are available from their homepage under scripts.

All I have done is made it available as a block which will give you a popup mp3player with a play list - so your visitors can browse in freedom and have music playing in the background :)

Preview: DEMO HERE (http://path-to-peace.net/forum2/index.php)
(look on the right to see 'media center' click on either quran player or nasheed player to see the mp3player in action)

First of all you will need to download this modified zip package. (http://path-to-peace.net/mp3player.zip)
(i have made it simpler so faster to use)

-----------------------------------
Installation for Tiny Portal as a block
-----------------------------------

Step 1:
Create a directory at your homepage called mp3player (u can name it anything you want but please adjust the path in the codes accordingly)

Step 2:
Prepare the two files:

pl1.xml

and

pl2.xml

with the directions given in the readme.txt file from the zip package you downloaded

Step 3:

Upload:
mp3player.swf
pl1.xml
pl2.xml
player1.html
and player2.html
files to your directory http://www.yoursite.com/mp3player/ (http://www.yoursite.com/mp3player/)

Also upload the mp3 files you will be using for the player to your directory as well.

Step 4:

Now create a new block in SCRIPT/HTML by going to MANAGE BLOCKS

Put inside it the following code:




<table>
<tr><td>
<center>
Click below to launch<br>
the players (popup)
</center>
</td></tr>
<tr><td>
<center>
<a target="_blank" onclick="popup = window.open('http://www.yoursite.com/mp3player/player1.html', 'PopupPage', 'width=310 height=405,scrollbars=no,resizable=no'); return false">Channel 1</a>
</center>
</tr></td>
<tr><td>
<center>
<a target="_blank" onclick="popup = window.open('http://www.yoursite.com/mp3player/player2.html', 'PopupPage', 'width=310 height=405,scrollbars=no,resizable=no'); return false">Channel 2</a></center>
</tr></td>
</table>



Replace the www.yoursite.com (http://www.yoursite.com) with your site name and channel1 and channel 2 with your text.

Name the block "media center" or whatever you want.
Then enable it

Thats all it will appear on your home page and you can simply click on the link to launch your floating mp3 player :D

---------------------------------------------------

Also please note the following things:

you can also put an image using the image tag which is:


<img src="http://www.yoursite.com/image.gif">



You can add as many links and buttons as you want for each genre / variety of music etc by simply adding/replicating the following code:



<center><a target="_blank" onclick="popup = window.open('http://www.yoursite.com/mp3player/player2.html', 'PopupPage', 'width=310 height=405,scrollbars=no,resizable=no'); return false">Channel 2</a></center>



Note: Each tag you add will add a new selection to your list.

Important when adding a new selection option also please priduce the corresponding playerX.html and plX.xml files for that selection by copying the original files as needed.

For a working example visit Path To Peace (http://path-to-peace.net/forum/index.php) and look on the right hand side and you will see my media center with buttons I made. Just like that you can add as many buttons as you want to have different applications for the mp3player :)
Title: Re: Popup Flash Jukebox
Post by: Xarcell on April 30, 2006, 07:09:09 PM
Very nice MP3 Player...
Title: Re: Popup Flash Jukebox
Post by: akulion on April 30, 2006, 07:17:26 PM
yea those guys did an awesome job making it....there is a newer version out but I havent used that yet...the one in my block example above is the older version...its better looking than the new one though lol :D
Title: Re: Popup Flash Jukebox
Post by: rbh on April 30, 2006, 08:29:41 PM
nice player, i may give it a whirl. the only problem i have is the scrolling is SUPER SENSISTIVE. barely move the mouse and it flies down the list to the last song.

ok, thats odd. i just tried both examples you have and only the quran popup scrolled a little too fast. the first one scrolled nice and easy.
Title: Re: Popup Flash Jukebox
Post by: Xarcell on April 30, 2006, 09:01:04 PM
It scrolled fast for me too.
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on April 30, 2006, 09:02:03 PM
The scrolling part was o.k. for me.  I'll have to try this out sometime too.   :coolsmiley:
Title: Re: Popup Flash Jukebox
Post by: akulion on April 30, 2006, 09:31:54 PM
yea it scrolls fast if you list too many files like I have in the Quran player (114 files there)

but if you have less it will be A-Ok :D
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on May 13, 2006, 08:19:39 PM
Thanks for this.  Now I just have to find some mp3s that I like.   :up:
Title: Re: Popup Flash Jukebox
Post by: akulion on May 14, 2006, 07:42:28 AM
ur always welcome :D
Title: Re: Popup Flash Jukebox
Post by: elpvn on May 14, 2006, 08:00:28 AM
@ akulion: you can using a complete integrated for Flash Chat, no need using a full link http://path-to-peace.net/forum/chat/flashchat.php to access your chat room, you can ask G6 for help moreÃ,  ;D
Title: Re: Popup Flash Jukebox
Post by: akulion on May 14, 2006, 08:28:42 AM
Thanks elpvn - yes I saw the article on SMF and I was thinking of doing that but then I didnt because I realized ill have to do it for each theme which will take ages :D

but maybe I will do it sometime :D Thanks for the sugegstion and help :D
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on July 27, 2006, 11:04:01 PM
Hey akulion or anyone who knows.

I am using this code for the popup player.  I would like to change the background to a different color other than white.  Can you please tell me what I need to add in here:

<html>
<head>

<title>AVS Jukebox</title>

</head>
<body>
<center>
<font face="Verdana" color="#282828" size="4">

<b>Mixed Music</b></font><p>

<object type="application/x-shockwave-flash" data="mp3player.swf?playlist=pl1.xml" height="280" width="280" wmode="transparent">
  <param name="movie" value="mp3player.swf?playlist=pl1.xml" />
  <param name="wmode" value="transparent" />
</object>
<br>
</p>
</center>
</body>
</html>


Thanks!   ;)
Title: Re: Popup Flash Jukebox
Post by: akulion on July 27, 2006, 11:28:15 PM
i think if i remember correctly u need to add

bgcolor=#FF0000

after the width in the tag

that should make the bgcolor red

OR

since the flash is being displayed in transparent mode, u can always put it in a table and set the table color to red
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on July 28, 2006, 12:47:13 AM
Quote from: akulion on July 27, 2006, 11:28:15 PM
i think if i remember correctly u need to add

bgcolor=#FF0000

after the width in the tag

that should make the bgcolor red

OR

since the flash is being displayed in transparent mode, u can always put it in a table and set the table color to red

I see, ok. I'll get that a try, thank you!
Title: Re: Popup Flash Jukebox
Post by: akulion on July 29, 2006, 03:41:59 AM
did it work?
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on July 29, 2006, 05:28:37 AM
Quote from: akulion on July 29, 2006, 03:41:59 AM
did it work?

Nope I figured I better leave it since I have other available themes to users.  White of course will match every theme.  Thanks for the bit of code thou.  I probably put it in the wrong place anyway.   :uglystupid2:
Title: Re: Popup Flash Jukebox
Post by: akulion on July 29, 2006, 05:30:51 AM
ur welcome

wmode="transparent"

that is included in the code so it should show no background at actually

Let me check the code on one of my pages for you and get back...it shows any background I set...


***added*****

thats strange my code is the same on my other page and it works just fine and picks up on any background color...see it in action here:

http://path-to-peace.net/kids/ (click on the songs link)
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on July 29, 2006, 05:45:42 AM
Actually, the color I wanted to change was the color around the player, inside the popbox box itself.   :D
Title: Re: Popup Flash Jukebox
Post by: akulion on July 29, 2006, 06:10:15 AM
oohhh ok then let me have a look around for you

there are some color gradient changers around...if i find one ill post it here for you..they are pretty nice and easy to use
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on July 29, 2006, 06:12:13 AM
Quote from: akulion on July 29, 2006, 06:10:15 AM
oohhh ok then let me have a look around for you

there are some color gradient changers around...if i find one ill post it here for you..they are pretty nice and easy to use

Heehee, thanks.  I'll look around too, no rush, but a nice to have.   :up:
Title: Re: Popup Flash Jukebox
Post by: akulion on July 29, 2006, 06:15:43 AM
would something like this work for you?

http://lloydhassell.com/bgcolorchanger/
Title: Re: Popup Flash Jukebox
Post by: ash on October 17, 2006, 10:02:27 PM
Awesome player!!!  Thanks for the find!!!
Title: Re: Popup Flash Jukebox
Post by: akulion on November 01, 2006, 10:58:06 PM
please be advised that a new version of the MP3 player is out available from the authors homepage mentioned on the 1st post
Title: NO MOUSE OVER EFFECT - Re: Popup Flash Jukebox
Post by: Ibexy on December 21, 2006, 07:14:20 PM
i loaded The following codes from the site. Its working great. but there is no mouseover effect on the links to load the music player. It works actually but you know the mouse needs to change the way it does when you hover over a link.
I have these codes like was given

Quote
<table>
<tr><td>
<center>
Click below to launch

the players (popup)
</center>
</td></tr>
<tr><td>
<center>
<a target="_blank" onclick="popup = window.open('http://www.yoursite.com/mp3player/player1.html', 'PopupPage', 'width=310 height=405,scrollbars=no,resizable=no'); return false">Channel 1</a>
</center>
</tr></td>
<tr><td>
<center>
<a target="_blank" onclick="popup = window.open('http://www.yoursite.com/mp3player/player2.html', 'PopupPage', 'width=310 height=405,scrollbars=no,resizable=no'); return false">Channel 2</a></center>
</tr></td>
</table>

Someone help. What should I add to make the mouse over effect work on the links?
Title: Re: Popup Flash Jukebox
Post by: akulion on December 21, 2006, 10:04:29 PM
oh im so sorry that is the new version of the media player launcher (on my page) that i forgot to release - i will put up the instructions for it soon :up: so no worries, just hang in there for maybe a day more
Title: Re: Popup Flash Jukebox
Post by: RoarinRow on December 21, 2006, 11:22:14 PM
Quote from: Aku on December 21, 2006, 10:04:29 PM
oh im so sorry that is the new version of the media player launcher (on my page) that i forgot to release - i will put up the instructions for it soon :up: so no worries, just hang in there for maybe a day more

ohhhh yeah an upgrade and I like your new Media Center.    8)
Title: Re: Popup Flash Jukebox
Post by: akulion on December 22, 2006, 02:10:45 PM
The new version can be found here:   NEW - MEDIA CENTER  (http://www.tinyportal.net/index.php?topic=11628.0)
Title: Re: Popup Flash Jukebox
Post by: Gargoyle on December 22, 2006, 11:20:56 PM
Aku this rocks!! Thanks so much for sharing it!!
Title: Re: Popup Flash Jukebox
Post by: mythbuster on February 23, 2007, 10:58:37 PM
what happend to the older player? i want it
Title: Re: Popup Flash Jukebox
Post by: akulion on February 23, 2007, 11:09:57 PM
the older player is still in the link in the 1st post

but i would recommend the new one which is a lot better looking
Title: Re: Popup Flash Jukebox
Post by: mythbuster on February 24, 2007, 03:23:41 AM
is there any way to get the old pop up mp3 player to not be in a window but just show the player itself and not the whole window?
Title: Re: Popup Flash Jukebox
Post by: akulion on February 24, 2007, 12:35:34 PM
not to my knowledge

there is a chromless windows script on dynamicdrive.com but it only works for internet explorer

so avoiding the window completely is something thats beyond my knowledge personally
Title: Re: Popup Flash Jukebox
Post by: mythbuster on February 24, 2007, 01:35:52 PM
ur saying it would work for ie?
Title: Re: Popup Flash Jukebox
Post by: akulion on February 24, 2007, 01:38:32 PM
http://dynamicdrive.com/dynamicindex8/chromeless.htm
this is the script
it only works in IE
in other browsers it shows a normal window
Title: Re: Popup Flash Jukebox
Post by: mythbuster on February 24, 2007, 02:45:35 PM
ehh its no good for any win32 past serv. pack 1
Title: Re: Popup Flash Jukebox
Post by: Jordan on July 23, 2007, 07:14:39 AM
i wanna get this, but for midis' im looking for a midi player
Title: Re: Popup Flash Jukebox
Post by: Reality12 on August 21, 2007, 02:23:44 AM
this took a while to properly set up, but i'm glad i did take that time to do so!

it works perfect! thank you!
Title: Re: Popup Flash Jukebox
Post by: mythbuster on May 11, 2008, 03:14:41 AM
Can anyone help me figure out how to auto generate a playlist from a folder? I need to make the playlist generate automatically based on the entire contents ( mp3's ) of specific folders . Something like a variation of this code below ( which wont work ).. I am wanting to make playlists for 3,000 + songs and doing them 1 by 1 is just NOT an option.

<?php

/*
* This is a sample file that reads through a directory, filters the mp3/jpg/flv
* files and builds a playlist from it. After looking through this file, you'll
* probably 'get the idea' and'll be able to setup your own directory.
*
*/

// set this to a creator name
$creator "Myself";

// search for mp3 files. set this to '.flv' or '.jpg' for the other scripts
$filter ".mp3";

// path to the directory you want to scan
// "./" = current directory
$directory "./";

// URL to files
$url "http://www.somesite.com";

/////////////////////////// no user configuration variables below this \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

// read through the directory and filter files to an array
@$d dir($directory);
if (
$d)
{
  while(
$entry $d->read())
  {
    
$ps strpos(strtolower($entry), $filter);
    if (!(
$ps === false))
    {
      
$items[$entry]['mtime'] = filemtime($entry);
    }
  }
  
$d->close();
  
arsort($items);
}


// the playlist is built in an xspf format
// first, we'll add an xml header and the opening tags...
header("content-type:text/xml;charset=utf-8");

echo 
"<?xml version='1.0' encoding='utf-8'?>
\n";
echo "<playlist version='1' xmlns='http://xspf.org/ns/0/'>\n";
echo "  <title>Sample PHP Generated Playlist</title>\n";
echo "  <info>" . $url . "</info>\n";
echo "  <trackList>\n";

// ...then we loop through the array...
foreach($items as $key => $value)
{
  $title = substr($key, 0, strlen($key) - 4);
  echo "    <track>\n";
  echo "      <creator>"  . $creator          . "</creator>\n";
  echo "      <title>"    . $title            . "</title>\n";
  echo "      <location>" . $url . '/' . $key . "</location>\n";
  echo "      <info>"     . $url              . "</info>\n";
  echo "    </track>\n";
}

// ...and last we add the closing tags
echo "  </trackList>\n";
echo "</playlist>\n";

/*
* That's it! You can feed this playlist to the SWF by setting this as it's 'file'
* parameter in your HTML page.
*/

?>


Can anyone help me get this to work please?


Title: Re: Popup Flash Jukebox
Post by: IchBin on May 11, 2008, 03:17:36 AM
what does your post have to do with this topic? Please read and folow the posting guidelines.
Title: Re: Popup Flash Jukebox
Post by: mythbuster on May 11, 2008, 03:43:55 AM
what are you talking about? im wanting to add this feature to THIS PLAYER ( from the OP ). what guidelines are you talking about?
Title: Re: Popup Flash Jukebox
Post by: mythbuster on May 12, 2008, 12:01:16 AM
anyone?
Title: Re: Popup Flash Jukebox
Post by: mythbuster on May 14, 2008, 11:46:13 PM
bump
Title: Re: Popup Flash Jukebox
Post by: Azphat12 on October 27, 2008, 08:18:19 PM
I have this block installed, and is working pretty good.
I am still in the process of adding music, but the "Metal" category has some songs.

Demo:  http://www.darkaftermath.org  (right side)

I have changed the image a little to fit my site abit better, but what I was wondering
was about the display of the Categories.  Right now I have Metal, Rock, Rap, Old School....

Is it possible to have it where you see "Metal" then when you click it it drops down or something and
shows a list of bands or lettered folders.  So any band I put in a specific folder can be pulled instead of installing 100's of metal songs into 1 playlist?

To shorten it up...

1.  Visitor sees block
2.  In category section they see numerous categories eg. Metal, Rock, Rap, Old School, 80's, 90's etc
3.  After clicking on a category it opens up or drops down into sub folders labeled by either band names, or A-Z 1-0 or something.
4.  They click on that particular sub category and it will have the popup with only those respective songs from that particular sub category...

Possible??
Title: Re: Popup Flash Jukebox
Post by: IchBin on October 27, 2008, 11:56:36 PM
For customization to the player you should seek help from the Authors site.
Title: Re: Popup Flash Jukebox
Post by: nasir on March 06, 2009, 08:55:12 PM
it says

nan%downloaded...and no music is playing,,,pls help
Title: Re: Popup Flash Jukebox
Post by: IchBin on March 06, 2009, 09:25:18 PM
Quote from: IchBinâ„¢ on October 27, 2008, 11:56:36 PM
For customization and problems with the player you should seek help from the Authors site.

Added to my quote. :)