TinyPortal

Development => Block Codes => Topic started by: borgBOB on September 24, 2005, 07:24:53 PM

Title: JukeBox
Post by: borgBOB on September 24, 2005, 07:24:53 PM
I have a Jukebox on my sight, and Here is the link to download it.

1)  In your browser, go to this address http://osplayer.counteractdesign.com (http://osplayer.counteractdesign.com)
Select 'DOWNLOAD" from the menu on the left.

Click on " osPlayer Stand alone"  then "osplayer_standalone_v2.0b" to start the download.  Save it to your hard drive, I suggest a new folder named
'osPlayer' in My Documents, or as a new folder  with the same name in your SMF Folder to keep things together.

After downloading, select open folder option. then Right click on the osplayer .zip file and extract it to a file with the same name. Open that folder and go to 'files'

Now open your Cpanel, File Manager; or FTP program and create a new folder in the same folder you installed SMF in.  If that's 'forum' go there. Name the new folder "osPlayer". This must be exact, or the links/paths set in the file modifications will not work.
Upload all the files you unzipped from osPlayer Stand alone > 'files' to this folder.

2)  Now go to http://www.bloczone.net/button-generator/helios.php (http://www.bloczone.net/button-generator/helios.php) and make a button for your jukebox.

right click and save the file to your hard drive in the 'osPlayer' folder you created above.

FTP that image into your /Themes/default/images/english folder, and the /images/english folders of and other themes it fits in. If you only use helios, then it's /Themes/helios/images/english.

If you use other themes, you can use bloc's button generator to make different styles, just add them to the matching /images/english folders.


3)  In index.template.php; located in the /Themes/default/ folder; Make these modifications. Open it in ConTEXT.

Down load the file from the install package, or unzip it to your hard drive in a folder called SMF or something like that. Or take it via FTP right off your web server.

Find this

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $txt;


Insert this right after that line, on a new line.

$playerurl = 'javascript:window.open(\'http://www.site url/FORUM FOLDER NAME/osPlayer/osplayer.html\', \'osplayer\', \'width=193,height=265\');history.go();';

Before this code:

// Show the [home] and [help] buttons.

So it looks like this:

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
        global $context, $settings, $options, $scripturl, $txt;

  $playerurl = 'javascript:window.open(\'http://www.forum url/FORUM FOLDER NAME//osPlayer/osplayer.html\', \'osplayer\', \'width=193,height=265\');history.go();';

  // Show the [home] and [help] buttons.



Decide where you want the button to appear.  I added mine after the help button

Find this:

  // Show the [home] and [help] buttons.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';
.

And insert this after:

echo '<td><a href="', $playerurl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/jukebox.gif" alt="Jukebox" style="margin: 0px 0;" border="0" />' : Jukebox), '</a></td>';



So it looks like this:
  // Show the [home] and [help] buttons.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';
        echo '<td><a href="', $playerurl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/jukebox.gif" alt="Jukebox" style="margin: 0px 0;" border="0" />' : Jukebox), '</a></td>';

        // How about the [search] button?


Note: Replace ' FORUM FOLDER NAME ' in the above code boxes to match your path.  If 'forum' is the file you
installed SMF in, then replace with"forum".

Note: Also keep the www in your path

Save this file in ConTEXT, and Upload. via FTP, your modified index.template.php file.

NOTES:

A)  You may have to check if your server supports the .swf mime type. Do this from cpanel.

Look for " application/x-shockwave-flash swf  "

B)  This coding will open the player in a new , non-re-sizable window.

C)  Upload your .mp3 music files to the "osPlayer" folder on your web server.

D) You can save an unmodified copy of 'index.template.php in your osPlayer Stand alone folder to easily uninstall this mod.
Title: Re: JukeBox
Post by: borgBOB on September 24, 2005, 07:51:33 PM
Just a side note, I would like to add a $txt value for "JUKEBOX" in the button link. But I am Not sure which file to add it to.

This is how it's done for "Home" > home.gif" alt="' . $txt[103]

Anyone have an answer, I attempted to search SMF's site, but don't know what this is called. and a search for " $txt " did nothing.

:uglystupid2:EDIT  I found it in index.english.php

But now do I have to have a unique number to all Language files, or just in this file?
Title: Re: JukeBox
Post by: bloc on September 24, 2005, 10:27:35 PM
Any extra buttons texts, help texts etc. would go in Modifications.english.php - and use strings instead of numbers to be sure its unique. Like $txt['jukebox'] = 'Jukebox';

i doubt "jukebox" is used elsewhere, but in that event add more to the name.
Title: Re: JukeBox
Post by: borgBOB on September 24, 2005, 10:58:24 PM
Quote from: Bloc on September 24, 2005, 10:27:35 PM
Any extra buttons texts, help texts etc. would go in Modifications.english.php - and use strings instead of numbers to be sure its unique. Like $txt['jukebox'] = 'Jukebox';

i doubt "jukebox" is used elsewhere, but in that event add more to the name.

Thanks for the advice.
I will attempt to mod my files, and if that works, mod my post.
Title: Re: JukeBox
Post by: WizardHawk on October 07, 2005, 06:57:20 AM
Might also want to state that people should put one of the dummy index.php files in the osPlayer folder to prevent unwanted access. Otherwise, anyone has full access to downloading the .mp3's you put on your site.

It is always good practice to add index.php to any public html folder. All you need is a blank file with that name and no one can directly access your files.

FYI, from looking at his file structure (told you that you needed index.php lol) it appears that this player shows files in the order of last modified date starting with the oldest file first. It just simply shows the file name so rename your files by artist-song if you want that info on your play list.
Title: Re: JukeBox
Post by: WizardHawk on October 15, 2005, 09:07:30 PM
How would I go about putting the code in a java/html or php block instead of creating a button for it and putting the code in the php files?

What I want to do is have more than one folder on my server with each one having a full copy of the .swf and support files. Each folder would have a different 'playlist' of Mp3's.

I would have a link box (java/html or php) with links that when clicked would open up a non-resizable window from the corresponding folder.

So the menu could read:
Music
80's
90's
Rap

And if they clicked on the 80's it would open the osplayer in the /80s folder. If they clicked 90's it would open the /90s folder etc...

Part of the reason I want to do this from a block is I am going to restrict access to only those in a specific group and I might add several different play lists which would be impracticle for buttons.

I just don't know how to code a 'a href' box to open a new non-resizable window in the fashion of the one in the above code. The exact code used here is fine if it can be adapted to a block.
Title: Re: JukeBox
Post by: borgBOB on October 16, 2005, 12:01:31 AM
When you add the  );history.go();

To the end of the link, that opens the player in a new window.

global $context, $settings, $options, $scripturl, $txt;


$playerurl = 'javascript:window.open(\'http://www.forum url/FORUM FOLDER NAME//osPlayer/osplayer.html\', \'osplayer\', \'width=193,height=265\');history.go();';

and add this:
echo '<td><a href="', $playerurl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/jukebox.gif" alt="Jukebox" style="margin: 0px 0;" border="0" />''

I would use a PHP block I think.  Add all three elements above.

To get different playlists just used different paths to each folder.

I have not tried it, but it should work .
Title: Re: JukeBox
Post by: Salamence on October 16, 2005, 10:45:38 AM
cant find this:

  // Show the [home] and [help] buttons.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';


This is the closest I com to this text

     // Show the [home] and [help] buttons.
       echo '<div id="menuarea"><a href="',

$scripturl, '">', ($settings['use_image_buttons']

? '<img src="' . $settings['images_url'] . '/' .

$context['user']['language'] . '/home.gif" alt="'

. $txt[103] . '" style="margin: 2px 0;" border="0"

/>' : $txt[103]), '</a>',



Is that the same?
Title: Re: JukeBox
Post by: borgBOB on October 16, 2005, 02:06:13 PM
Quote from: Salamence on October 16, 2005, 10:45:38 AM
cant find this:

ÂÃ,  // Show the [home] and [help] buttons.

ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
ÂÃ,  ÂÃ,  ÂÃ,  ÂÃ,  echo '<td><a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';


This is the closest I com to this text

ÂÃ,  ÂÃ,   // Show the [home] and [help] buttons.
ÂÃ,  ÂÃ,  ÂÃ,   echo '<div id="menuarea"><a href="',

$scripturl, '">', ($settings['use_image_buttons']

? '<img src="' . $settings['images_url'] . '/' .

$context['user']['language'] . '/home.gif" alt="'

. $txt[103] . '" style="margin: 2px 0;" border="0"

/>' : $txt[103]), '</a>',



Is that the same?

The code you are looking for is in the default theme index.template.php file.

For SMF v1.1 RC1, it starts at line 438 and looks like this:
// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Show the [home] and [help] buttons.
echo '
<a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 2px 0;" border="0" />' : $txt[103]), '</a>', $context['menu_separator'], '
<a href="', $scripturl, '?action=help" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 2px 0;" border="0" />' : $txt[119]), '</a>', $context['menu_separator'];


For SMF v 1.0.x look around line 420, look for:

// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// Show the [home] and [help] buttons.


These entries are nearly at the bottom of these files.  If you are moding a custom theme, your mileage may vary. 

It appears you have the correct location, but your text editor may be messing up the format of your file.  Try useing the free ConText editor. It will retain the correct formatting.  Do a search on the internet to find it.
Title: Re: JukeBox
Post by: Salamence on October 16, 2005, 02:19:01 PM
I found it. Thanks
Title: Re: JukeBox
Post by: crip on October 16, 2005, 08:55:01 PM
BTO - Good tunes you have borgBOB .. ;D

crip~
Title: Re: JukeBox
Post by: borgBOB on October 16, 2005, 09:16:43 PM
Quote from: crip on October 16, 2005, 08:55:01 PM
BTO - Good tunes you have borgBOB .. ;D

crip~

Thanks, I have to take some down, but i left the funny ones, and a few favorites.
Title: Re: JukeBox
Post by: Salamence on October 17, 2005, 01:39:33 PM
hmm. No I made to install it, but no other tings go wrong.

I cant se the "forum" button longer.

Here is a link to my index.templamate in txt format.
http://www.forten.net/index.templamate.txt (http://www.forten.net/index.templamate.txt)
Title: Re: JukeBox
Post by: IchBin on October 17, 2005, 05:55:59 PM
I'm not quite sure, but I think this:
' : Jukebox), '

Needs to be this?
' : 'Jukebox'), '
Title: Re: JukeBox
Post by: WizardHawk on October 17, 2005, 07:55:58 PM
Anyone else who wants to go with a menu block instead of button can use this format:
$playerurl = 'javascript:window.open(\'http://FORUMURL//FOLDER1/osplayer.html\', \'osplayer\', \'width=193,height=265\');history.go();';

$playerurl2 = 'javascript:window.open(\'http://FORUMURL//FOLDER2/osplayer.html\', \'osplayer\', \'width=193,height=265\');history.go();';


echo '<a href="', $playerurl, '">Test Player</a><br>';
echo '<a href="', $playerurl2, '">Test 2</a>';

Put that in a php block and change the paths to your path. Just add another $playerurl line and another echo line for it and change the text you want before the /a and you are set.

The nice thing about not using buttons is that you can easily select sub groups who are allowed to use the player (guests cannot see the player menu on my site) and you don't have to create 1,000 buttons if you have many themes like I do. This is clean and works great.

Now I get to sort through the 400+ songs I have up and put them in group folders.ÂÃ,  >:(

BTW, don't forget to put the 3 osplayer files in each folder you use or it won't work. Also add an empty index.php file to protect the folders from unwanted downloading.

Thanks for the code help guys!
Title: Re: JukeBox
Post by: Oldiesmann on October 19, 2005, 01:25:28 AM
history.go() doesn't cause the thing to open in a new window. That just sends the browser back to the last page after it opens a new window. window.open is what makes it open in a new window.
Title: Re: JukeBox
Post by: carver on October 19, 2005, 02:35:14 AM
Kind of off topic here but where is a good place to get MP3's ?
Title: Re: JukeBox
Post by: IchBin on October 19, 2005, 05:43:53 AM
http://www.apple.com/itunes/
Title: Re: JukeBox
Post by: borgBOB on October 19, 2005, 07:07:14 AM
Quote from: Oldiesmann on October 19, 2005, 01:25:28 AM
history.go() doesn't cause the thing to open in a new window. That just sends the browser back to the last page after it opens a new window. window.open is what makes it open in a new window.

My bad, that's what we did to keep the forum active in the browser,
Title: Re: JukeBox
Post by: WizardHawk on October 19, 2005, 07:57:23 AM
Question:
Can anyone here who is good at working with php scripts modify this to randomize the order of the files for the player. This parse script loads all of the file information and passes it along to the swf player. The files order is the order of the last modified date of the files themselves. This means the only way to get files in a specific order is to change that date. Since that makes adding new files such a pain, I'd rather have the program randomize the order of files so that the player is more like a radio. The users can start on the first song and move down the list and get a different order next time they open it. Since this is just loading a simple array that is being passed, I would think it wouldn't be too hard to have a randomizer routine resort them before passing them. I could do this in basic but I'm afraid I haven't learned PHP yet.

$autoplay = false ;   // autoplay ON / OFF
$gDirectory = "./" ;   // the mp3 directory







///////////////////////////////////////////////////

// Parse variables to FLASH Fonction
/////////
   function Parse($variable,$valeur) {
       echo "&" . $variable . "=" . utf8_encode(urlencode($valeur));
   }

// Browse files Fonction
/////////
function tep_browse_mp3($pDirectory, $pExtension) {
    if($handle = opendir($pDirectory))   {
         while(false !== ($file = readdir($handle)))  {
            $getExt = explode(".", $file);
            $countExt = count($getExt);
            $fExt = $countExt - 1;
            $myExt = $getExt[$fExt];
           
            if (($myExt == $pExtension) && ($file != ".") && ($file != "..")) {
$files[] = $file;
}
        }
    }
return $files;   
closedir($handle);
}
/////////////////////////////////////////////////                             





// files extension we want to list
$gExtension = "mp3";

/// Create a tab with files
$ExpExt = explode(" ", $gExtension);
sort ($ExpExt);

foreach ($ExpExt as $findExt) {
       
$getFile = @tep_browse_mp3($gDirectory, $findExt);
        $countFile = count($getFile);     
       
        if ($countFile != 0) {
foreach ($getFile as $myFile) {
$list[] = $myFile;

}           
    }

//////////
/// create and parse the variables to the player

/// the number of tracks
$trcknbr = $countFile ;
Parse ("trcknbr" , $trcknbr ) ;

/// the tracks files names
for($i=0;$i<$countFile;$i++) {
$trck[$i] = "$list[$i]";
Parse ("trck$i" , $trck[$i] ) ;

}

/// the path where the files are located
$path = $gDirectory ;
Parse ("path" , $path ) ;

/// the path where the files are located
Parse ("autoplay" , $autoplay ) ;
Title: Re: JukeBox
Post by: WizardHawk on October 20, 2005, 07:09:51 PM
Anyone know enough java to either randomize the above array or put it in alpabetic order?

I'm pretty sure the work would be done in, or before the third from last section (/// the tracks files names)

This loads the $trck() array with the names of the files to play.

I don't know how logic works in java but in other languages you would need a declaired temp array ($temp()) and create a for(#of files) loop that creates a random whole number between 1 and # of files and checks the $temp() array at that number to see if a file name already exists. If name already exists, pick a new number, if not, store the file name at the current step in (for) at the current random number. Once complete a simple for loop that moves the contents of $temp() back over to the $trck() before it is sent out to the player is all that is needed.

Alpha sorts aren't much harder either.

The ideal would be a php file with a variable we can set at the front to tell the code to leave it as is, alphabetize the list, or random sort.

This simple code addition would double the value of this addon.
Title: Re: JukeBox
Post by: WizardHawk on October 25, 2005, 07:27:59 PM
OK, no one had the time (or was willing) to help me figure out how to randomize or order the play lists so I spent some time reading up on PHP and found what I needed. Turns out to do either is only one added command.

To randomize you need to add:
shuffle($list);

To sort by name you need to add:
sort($list);

Add either one to this section:
/// the tracks files names
for($i=0;$i<$countFile;$i++) {
$trck[$i] = "$list[$i]";
Parse ("trck$i" , $trck[$i] ) ;

}


Add either one of them before the for() statement. So to randomize the music list, just make it look like this:
/// the tracks files names
shuffle($list);
for($i=0;$i<$countFile;$i++) {
$trck[$i] = "$list[$i]";
Parse ("trck$i" , $trck[$i] ) ;

}

Now each time the player is opened the music will be shuffled into a different order and play more like a random radio station.

Now, if anyone can tell me how to create a popup to ask the user if they want a sorted, raw, or random play list I've have the ultimate upgrade of this player.
Title: Music files not showing up in players song list.
Post by: houston on November 07, 2005, 02:56:22 AM
My music files are not showing up in the players song list. I beleive that I have uploaded the music files to the right folder.

This is the path to the player

'hxxp://www.xxxxx.com/forum/osPlayer/files/osplayer.html\

And this is the path to music files.

'hxxp://www.xxxxx.com/forum/osPlayer/

Any comments

Thanks
Title: Re: JukeBox
Post by: borgBOB on November 07, 2005, 04:10:18 AM
Quote from: houston on November 07, 2005, 02:56:22 AM
My music files are not showing up in the players song list. I beleive that I have uploaded the music files to the right folder.

This is the path to the player

'hxxp://www.xxxxx.com/forum/osPlayer/files/osplayer.html\

And this is the path to music files.

'hxxp://www.xxxxx.com/forum/osPlayer/

Any comments

Thanks

osplayer.html need to be in the same folder as your music files, not in a sub-folder.
Make sure the osplayer.html, osplayer_parser.php, and os_player.swf are in the
osPlayer folder, along with all of your music files.

What I meant in the first post was to take the contents of the "files" folder from the osplayer.zip and load them to your server in the 'osPlayer' folder.

Hope that clears things up.
Title: Re: JukeBox
Post by: houston on November 07, 2005, 04:58:50 AM
borgBOB

I have placed the music files in the same directory as the osplayer.html, osplayer_parser.php, and os_player.swf files It is finding something thier in the list but it does not identify it. I know that something is thier because a bar changes color and I get a message that's scrolling across saying undefined. The sound bars start moving up and down as well. I only have one mp3 file uploaded right know.
Title: Re: JukeBox
Post by: Franky500 on November 07, 2005, 06:00:26 PM
hey guys. Normally i dont have a problem fixing things myself but on this i have followed the instructions in post 1 and still have not got that button to appear.. any ideas?
Title: Re: JukeBox
Post by: borgBOB on November 07, 2005, 11:51:16 PM
Quote from: Franky500 on November 07, 2005, 06:00:26 PM
hey guys. Normally i dont have a problem fixing things myself but on this i have followed the instructions in post 1 and still have not got that button to appear.. any ideas?
Did you modify each theme you are using? And did you do a page refresh(F5) to clear any cached images?
Title: Re: JukeBox
Post by: borgBOB on November 07, 2005, 11:52:10 PM
Quote from: houston on November 07, 2005, 04:58:50 AM
borgBOB

I have placed the music files in the same directory as the osplayer.html, osplayer_parser.php, and os_player.swf files It is finding something thier in the list but it does not identify it. I know that something is thier because a bar changes color and I get a message that's scrolling across saying undefined. The sound bars start moving up and down as well. I only have one mp3 file uploaded right know.

I can only suggest you ask the Mod author for assistance, I have done all I can.
Title: Re: JukeBox
Post by: Xarcell on January 09, 2006, 01:54:35 PM
Is there a Demo that I can take a look at?
Title: Re: JukeBox
Post by: borgBOB on January 09, 2006, 07:56:15 PM
Quote from: Xarcell on January 09, 2006, 01:54:35 PM
Is there a Demo that I can take a look at?

http://www.cr-phoenix.info/CRPSMF/index.php (http://www.cr-phoenix.info/CRPSMF/index.php)
Title: Re: JukeBox
Post by: stigmartyr on January 11, 2006, 08:10:03 PM
well borg, I made the modifications to the index.template.php file and uploaded the files, and made my JukeBox button on the /english folder, and JukeBox doesnt show up..


Any ideas??


http://black-chapter.com/forums
Title: Re: JukeBox
Post by: elpvn on January 12, 2006, 06:21:34 PM
Try enter: http://www.cr-phoenix.info/CRPSMF/osPlayer/osplayer.html  ==> Don't load play list !

  :uglystupid2: < ---Mee too !
Title: Re: JukeBox
Post by: borgBOB on January 12, 2006, 06:28:32 PM
This is streaming video, and can be really slow to load for some folks. also requires a flash plug-in.

I just tested it and it worked for me and stigmartyr
Title: Re: JukeBox
Post by: elpvn on January 12, 2006, 06:51:19 PM
That's mean osPlayer do not work in my site too  :buck2:
Title: Re: JukeBox
Post by: borgBOB on January 12, 2006, 07:48:49 PM
Quote from: stigmartyr on January 11, 2006, 08:10:03 PM
well borg, I made the modifications to the index.template.php file and uploaded the files, and made my JukeBox button on the /english folder, and JukeBox doesnt show up..


Any ideas??


http://black-chapter.com/forums

I got that working for you now. :)
Title: Re: JukeBox
Post by: GM on January 14, 2006, 07:28:07 PM
Got it working.......cool snippet!
Title: Re: JukeBox
Post by: Ray on January 15, 2006, 04:44:26 AM
I to have it working and was fast to setup :laugh:
Title: Re: JukeBox
Post by: Ray on January 15, 2006, 06:13:29 AM
If you want your music files in a different sub folder you need to go to the osplayer_parser.php file and make this change

$autoplay = true ;   // autoplay ON / OFF
$gDirectory = "./mp3" ;   // the mp3 directory


where ./  just add the folder name
Title: Re: JukeBox
Post by: GM on January 15, 2006, 03:28:55 PM
I placed it in a Blue 101 side block,with Wizardhawk's tweak. I'm still a cut & paste kinda guy,the less coding the better. ;D

I just threw a player in each folder. Might get brave enough to try the random order yet.
Title: Re: JukeBox
Post by: WizardHawk on January 26, 2006, 08:56:53 AM
Here is what my player block looks like now. Not only do I have several music folders on my own site, but some of the music is actually hosted on friends sites so they have total control over the music available. We have somewhere in the neighborhood of 1000 songs available and the player works well with a few exceptions. For some reason, there are times where the list won't show in the player. Sometimes simply opening it a second time makes the list show up, other times it won't show no matter what you do, but the music will still play just fine. I've noticed that if I'm uploading using FTP to my site that the players lists will not work, but there are also times where no uploads are going on when they don't work.

It is still a good player because it doesn't require anything special for your visitors to install (as long as they have flash player which most have).

Anyway, this is part of the right bar on my site. I post a picture because you have to belong to a special group in order to see the full side bar. Visitors do not have access to music.

[attachment deleted by admin]
Title: Re: JukeBox
Post by: Xarcell on January 26, 2006, 01:00:53 PM
Not to hi-jack the thread, but here is a flash player I use.

http://www.tinyportal.net/smf/index.php?topic=1227.0

There are also different formats that can be used, and if you know flash, you can make another skin/layout using the xspf technology. It is pretty much added the same way the jukebox is. Most other CMS software have it php intergraded.
Title: Re: JukeBox
Post by: Lesmond on January 31, 2006, 09:02:44 PM
don't know if this the right place to ask but could some kind person make me a techhead_tp JUKEBOX button, I did have a go but I am cr*p at pshop :idiot2:

Oh and I got it running fine on my test site :) works really well thanks
Title: Re: JukeBox
Post by: IchBin on January 31, 2006, 09:09:32 PM
http://www.tinyportal.net/smf/index.php?topic=778.msg10930#msg10930
Title: Re: JukeBox
Post by: Lesmond on January 31, 2006, 09:15:23 PM
Thanks IchBinâââ,¬Å¾Ã,¢ just what I wanted :)
Title: Re: JukeBox
Post by: elpvn on April 09, 2006, 09:43:48 PM
Hix, my osPlayer do not show any mp3 song though I've uploaded my mp3 songs to http://www.master3d.net/portal/osPlayer/

My JukeBox link:
http://www.master3d.net/portal/osPlayer/osplayer.html
Title: Re: JukeBox
Post by: borgBOB on April 09, 2006, 11:11:32 PM
I see 3 songs there now. Do you have more?
Take the other songs out of the MP3 folder and put them in the same folder as the the 3 os player files. Or edit the path to the mp3's in the parser.php file.
Title: Re: JukeBox
Post by: elpvn on April 10, 2006, 04:50:13 AM
Quote from: borgBOB on April 09, 2006, 11:11:32 PM
I see 3 songs there now. Do you have more?
Take the other songs out of the MP3 folder and put them in the same folder as the the 3 os player files. Or edit the path to the mp3's in the parser.php file.

Hix, I see that,
but in currentlly the osPlayer does not play with any in one of three mp3 songs's exist thatÃ,  :idiot2:
How to edit my parser.php, how do it must be ?

my SMF+TP link: http://www.master3d.net/portal/
Title: Re: JukeBox
Post by: me-o-my on April 10, 2006, 04:31:43 PM
Just my two cents, but it looks like the player is loading your playlist fine, as the song titles are showing up. But you may want to open your playlist file and make sure that the url paths to the actual mp3 files are correct.

That's a nice player btw.
Title: Re: JukeBox
Post by: whoesa on June 19, 2006, 08:59:19 PM
hmm the link isn't working anymore

http://osplayer.counteractdesign.com

and i just wanted to try this out lol  :knuppel2:
Title: Re: JukeBox
Post by: G6Cad on June 19, 2006, 09:54:57 PM
You can download the osplayer from my site, itÂÃ,´s in the downloadsection there if you want to try it out :)
Title: Re: JukeBox
Post by: whoesa on June 20, 2006, 01:08:00 AM
Ok thank you G6

Im on my way to your site  :)
Title: Re: JukeBox
Post by: G6Cad on June 20, 2006, 09:46:41 AM
You are welcome  :)
Title: Re: JukeBox
Post by: redone on June 28, 2006, 04:49:45 PM
Does not seem that the osplayer is available any more?
Title: Re: JukeBox
Post by: G6Cad on June 28, 2006, 04:56:54 PM
On my site? 
Just checked, itÂÃ,´s there in the Download section  :o
Title: Re: JukeBox
Post by: HaxXxoR on September 25, 2006, 04:45:15 AM
Hey G6. I have add this player to my site and cant seem to get the link working. I can access it through html but have no luck hard coding it to my theme. I am using Mirage and was just wondering if i could add it to a drop down menu. I have already coded it to my site but the link is just to an html document. Is there a way to just add it directly to the link??
Title: Re: JukeBox
Post by: G6Cad on September 25, 2006, 08:11:41 AM
Regarding the integration to the theme i will have to send you to Storm and let him explain how to add it in the dropdown menu.

And for the link in other themes, you have to add the same code in ll themes in use, not just the default theme :)
Title: Re: JukeBox
Post by: HaxXxoR on September 25, 2006, 03:29:20 PM
I just dont know how to code java. When i try to add the line

javascript:window.open('http://www.tasty-fragism.com/forum/tunij/osplayer.html',%20'osplayer',%20'width=193,height=265');history.go();"

into the theme i get a parse error.
Title: Re: JukeBox
Post by: G6Cad on September 25, 2006, 04:54:18 PM
Read the first post in this thread and follow the steps just like for the default theme exept you do it to what ever theme you want it in to

http://www.tinyportal.net/smf/index.php?topic=839.0
Title: Re: JukeBox
Post by: confuzed on November 12, 2009, 01:33:23 PM
this hasn't been posted in for a while now, is the jukebox still available for download?


thanks
Title: Re: JukeBox
Post by: ZarPrime on November 12, 2009, 06:23:30 PM
confuzed,

Hmmm, 3 years is a long time. ;)

It appears that the url for the jukebox is no longer valid.  If you are interested in it, I suggest you go to BorgBob's site, register for the Forum and ask about it.  Link --> http://www.borgbob.com/

ZarPrime
Title: Re: JukeBox
Post by: confuzed on November 12, 2009, 09:11:03 PM
Quote from: G6 on June 28, 2006, 04:56:54 PM
On my site? 
Just checked, itÃÆ'ââ,¬Å¡Ãƒâ€šÃ,´s there in the Download section  :o


lol I read the above posts and registered at G6's site, but like you say three years is a long time
Title: Re: JukeBox
Post by: stigmartyr on January 21, 2010, 04:24:53 AM
BTW - since hosts will scan for mp3 copyright protected content its probably a bad idea to use a jukebox to play anything worth listening to anymore..

On the upside, Aeva Media or SMF Media Gallery (2 similar mods) will allow you to present music.  I find that it's just easier to get a music playlist widget from http://www.finetune.com
Title: Re: JukeBox
Post by: Zetan on January 22, 2010, 12:57:08 PM
Quote from: Ã,§tigmartyr on January 21, 2010, 04:24:53 AM
BTW - since hosts will scan for mp3 copyright protected content its probably a bad idea to use a jukebox to play anything worth listening to anymore..

I don't think my host has ever scanned my sites content for copyrighted material.