Welcome Guest [Log In] [Register]
This board has been archived and is no longer accepting new questions. If you have a support question for your ZetaBoard, please visit us at the new support board. Registration is free and easy.


Visit the NEW ZetaBoards Support forum!

Username:   Password:
Add Reply
[Solved]Hidden from forum list; Chessnut's Jukebox/Radio player
Topic Started: May 17 2008, 09:17 AM (1,794 Views)
Ambrosia
Member
[ *  * ]
Hi,

I'm trying to get this code to work and I know it works as i've seen another forum on ZB use it.
The problem i'm facing is I can't seem to find this ''1. In the Admin CP, Click Create new Category. Name the Category depending on whether you want a Jukebox or a Radio Player. In this case I will call it a Radio Player. Next change the drop down menu from "Visible" to "Hidden from forum list - can access via URL if known". Click Create this category.''

I'm aware that the script was written for IF, though when I add the first part of the code to Website Maker it gave me the drop down menu.
Even though there was nothing to choose from.

Here's the link to full script:
Chessnut's Jukebox/Radio Player

ZB forum using it:
Radio Player in action
Offline Profile Quote Post Goto Top
 
.DeleTeD.
Member Avatar
Member
[ *  *  * ]
use the webpage maker and copy this code into the box



Code:
 


<script type='text/javascript'>
/*
This script is version 1.0 of Chessnut's Jukebox/Radio Player code. It was created by Chessnut of iFusion. Special thanks to Webworldx and the good people at iFusion for the support!

This code is free to use as long as this copyright and the "Created by Chessnut" remains intact. Feel free to change whatever else you want.
*/


//If you are after a Radio Player, leave the following value as 0. If you want a Jukebox which plays songs, change the following value to 1.

var stationsong = "0";

//To add a new station or song, copy and paste one of the sname arrays and change it as desired. Do the same for surl, sgenre and sdesc.

var sname = new Array()
sname[0] = "Kerrang Radio";
sname[1] = "You FM";
sname[2] = "1FM - High Voltage";
sname[3] = "Virgin UK";
sname[4] = "Classical FM";
sname[5] = "Energy 98";
sname[6] = "1FM - Smooth Jazz";
sname[7] = "Bassdrive";
sname[8] = "Proton Radio";
sname[9] = "Perrero Radio";
sname[10] = "KVEG FM";

//surl[x] is the URL to streaming audio or the music location.

var surl = new Array()
surl[0] = "http://www.txradica.net/emap.php?c=kerrang-70&.wvx=";
surl[1] = "http://212.211.137.133/3263youfm_rock.mp3";
surl[2] = "http://hv.1.fm/highvoltage128k";
surl[3] = "http://player.virginradio.co.uk/core/audio/wmp/live.asx?source=playerv4&service=vr";
surl[4] = "http://www.antfarm.co.za/clients/classicfm/classicfm_22.asx";
surl[5] = "http://www.202.fm/energy98/128winamp.m3u";
surl[6] = "http://jazz.1.fm/jazz128k";
surl[7] = "http://www.bassdrive.com/BassDrive.m3u";
surl[8] = "http://www.protonradio.com/proton.m3u";
surl[9] = "http://www.perreoradio.com/playlist/hi-bandwidth/perreoradio.m3u";
surl[10] = "http://www.kvegas.com/mediaplayer/stream.asx";

var sgenre = new Array()
sgenre[0] = "Rock";
sgenre[1] = "Rock";
sgenre[2] = "Rock";
sgenre[3] = "Rock";
sgenre[4] = "Classical";
sgenre[5] = "Dance";
sgenre[6] = "Jazz";
sgenre[7] = "Jungle and DnB";
sgenre[8] = "Pop";
sgenre[9] = "Reggae";
sgenre[10] = "Hip Hop";

// If you want to just play songs as opposed to online radio, you must change the description to the song artist.

var sdesc = new Array()
sdesc[0] = "Hardcore rock. Kerrang offers all the latest rock music.";
sdesc[1] = "You FM is a German station, playing both German and English rock.";
sdesc[2] = "1FM - High Voltage is a Rock station.";
sdesc[3] = "Small advertisement at the beginning, then it plays.";
sdesc[4] = "Calm and mellow classical music to chill out with.";
sdesc[5] = "Strut your stuff to the best dance classics around!";
sdesc[6] = "Relax with all the best Jazz tunes.";
sdesc[7] = "Feel the beat - Jungle and DnB classics.";
sdesc[8] = "All the latest pop music.";
sdesc[9] = "The best reggae music.";
sdesc[10] = "Hip-hop and rap music.";


</script>


<div id="jukebox">Welcome to Chessnut's Radio Player/Jukebox! To select a station/song, either use the quick select drop-down menu, or scroll down to view a description for each station. The stations may take a few seconds to load, so be patient. Try to avoid continually clicking as it will just cause you lag. For any support you may need with this player, see <a href="http://support.invisionfree.com/index.php?showtopic=275725">
HERE.</a>

<br><br><b>Quick Select:</b><br><form name="whichstation"><select name="whichstation" id="station" onchange="song()" size="1"><option selected value="none">::::::::::::: Quick Select :::::::::::::</option></select></form><input type="button" value="Stop" onclick="document.getElementById('station').value='none'
song()" /><br> <span id="music1"><embed type="application/x-oleobject" id="music1"
CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
src="" name="URL" width="0" height="0" controltype="0" showcontrols="0" showstatusbar="0" AutoStart="0"></embed></span></div></body><p align="right"><b><i>Created by Chessnut.</i></b></p>


<!-- DO NOT EDIT BELOW THIS LINE -->


<script type='text/javascript'>
function song()
{
document.getElementById('music1').innerHTML="<embed type='application/x-mplayer2' id='music2' pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='"+document.getElementById('station').value+"' name='MediaPlayer1' width='0' height='0' controltype='0' showcontrols='0' showstatusbar='0' AutoStart='true'></embed>";
}

function changesong(z)
{
document.getElementById('station').selectedIndex=z;
song();
}
var i = 0;
for(i=0;i<sname.length;i++)
{
document.forms['whichstation'].station.options[i+1] = new Option((sname[i]),(surl[i]));
var iTable = "<div class='tableborder'>";
if (stationsong==1)
{
iTable += "<div class='maintitle'><center><b>" + sdesc[i] + "</b></u> - '<i>" + sname[i] + "'</i>";
}
else
{
iTable += "<div class='maintitle'><center><b><u>" + sname[i] + "";
}
iTable += "</center></b></u></div>"
iTable += "<table width='100%' border='0' cellpadding='4' cellspacing='1' align='center'><tr><th class='titlemedium' width='8%'>Genre</th>";
if (stationsong==0)
{
iTable += "<th class='titlemedium' width='20%'>Station Name</th>";
iTable += "<th class='titlemedium' width='20%'>Description</th>";
}
else
{
iTable += "<th class='titlemedium' width='20%'>Song Title</th>";
iTable += "<th class='titlemedium' width='20%'>Artist</th>";
}
iTable += "<th class='titlemedium' width='20%'>Controls</th>";
iTable += "</tr><tr>";
iTable += "<td class='row4' style='text-align: center;'>" + sgenre[i] + "</td>";
iTable += "<td class='row4' style='text-align: center;'>" + sname[i] + "</td>";
iTable += "<td class='row4' style='text-align: center;'>" + sdesc[i] + "</td>";
iTable += "<td class='row4' style='text-align: center;'>";
i=i+1;
iTable += "<input type='button' id='" + i + "' value='Play' onclick='changesong(this.id)'>";
iTable += "<input type='button' id='none' value='Stop' onclick= 'changesong(this.id)' >";
i=i-1;
iTable += " <img src='http://img122.imageshack.us/img122/8335/blue1t5cd.png' border='0' alt='To top' onclick='javascript:window.scrollTo(0,0)' />";
iTable += "</tr></table></div>";
document.write(iTable + "<BR />");
}
</script>
<i><p align="center">For support, suggestions or comments about this Jukebox/Radio Player, see <a href="http://support.invisionfree.com/index.php?showtopic=275725">
HERE.</a></p></i>


Offline Profile Quote Post Goto Top
 
Ambrosia
Member
[ *  * ]
http://s1.zetaboards.com/ARPS/pages/radio/

There's nothing there.
Offline Profile Quote Post Goto Top
 
Chris
Member Avatar
Member
[ *  *  *  * ]
Just choose to not display the link the the submenu.
Offline Profile Quote Post Goto Top
 
Ambrosia
Member
[ *  * ]
It's not that...
Either i'm doing something wrong or there's something wrong with my board.
Certain javascripts don't seem to work, even though it's copy and paste work.
Offline Profile Quote Post Goto Top
 
Nicola
Darth Vader's Sewing Instructor
[ *  *  *  *  *  *  * ]
Contact the code creators. We are not required to give support for codes created by third-parties. Therefore if you have a problem with it or installing it, you need to either read the topic thoroughly, or contact the code creators.
Please read pinned threads in all forums before posting. Sure <- that one is labelled as 'no requests', but it's hard to choose between several possible topic titles to get people's attention.
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
DealsFor.me - The best sales, coupons, and discounts for you
« Previous Topic · Coding & Modifications · Next Topic »
Add Reply