Old 8th June 2009, 08:18   #121
BladeRadio
Junior Member
 
Join Date: Apr 2009
Posts: 4
np, i know how it feels to loose code that is very useful.


now where did i put my golden goose >.<
BladeRadio is offline   Reply With Quote
Old 18th June 2009, 19:10   #122
BLTYNR
Junior Member
 
Join Date: May 2009
Location: Netherlands
Posts: 6
Where can i download this script?
BLTYNR is offline   Reply With Quote
Old 18th June 2009, 19:30   #123
Nick@ss
Moderator
 
Nick@ss's Avatar
 
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,953
Here is a copy i downloaded recently,

I think its the same thing.
Attached Files
File Type: zip djstatus.zip (28.8 KB, 922 views)
Nick@ss is offline   Reply With Quote
Old 26th June 2009, 02:11   #124
Juzzy1992
Junior Member
 
Join Date: Jun 2009
Posts: 1
Nice, Able to download it? If yes, Where?
Juzzy1992 is offline   Reply With Quote
Old 26th June 2009, 06:11   #125
Nick@ss
Moderator
 
Nick@ss's Avatar
 
Join Date: Nov 2004
Location: Streamsolutions Headquarters
Posts: 11,953
lol..... look in the post above!!
Nick@ss is offline   Reply With Quote
Old 30th June 2009, 01:23   #126
raw3a
Junior Member
 
Join Date: Jun 2009
Posts: 4
raw3a is offline   Reply With Quote
Old 2nd July 2009, 21:01   #127
Eston
Junior Member
 
Join Date: Jul 2009
Posts: 5
nice
Eston is offline   Reply With Quote
Old 31st December 2009, 01:34   #128
forgiven
Junior Member
 
Join Date: Dec 2009
Posts: 1
I really needed this. Thanks
forgiven is offline   Reply With Quote
Old 25th April 2010, 20:40   #129
tycoon1980
Junior Member
 
Join Date: Apr 2010
Posts: 1
help with script please. (SLVED!)

I have solved this problem by doing the following!

i opened up config.php en on line 36 i removed the red marked &

code:
$scfp = @fsockopen("$scip", $scport, &$errno, &$errstr, 10);


That solved it!

Thanx


I know i am doing cpr on a old topic but i have a prob. with this and i realy like to get it up and running!
I have a hoster for my stream and have the script on a local webserver with a local mysql.

At the install screen i've got the following errors. klik!
But the script did his work and filled my database.

Also adding a DJ gave me 2 errors. Klik!
But script worked also fine, and dj was added to my DB.

Also Automatic mode does not work but that's not a real problem to me atm.
I keep getting the error in all the pages klik!

the line it keeps revering to is the following:
code:
$scfp = @fsockopen("$scip", $scport, &$errno, &$errstr, 10);


Can anyone help me with this pls ?

Best regards

Alex

Last edited by tycoon1980; 25th April 2010 at 20:50. Reason: solved problem!
tycoon1980 is offline   Reply With Quote
Old 25th April 2010, 22:38   #130
Brutish Sailor
Major Dude
 
Brutish Sailor's Avatar
 
Join Date: Jan 2009
Location: San Diego CA
Posts: 998
Send a message via Skype™ to Brutish Sailor
Im not a rocket scientist, BUT....

If I had to guess what the problem is, I would guess your server/Webhost server does not have Fsocket's open. This is usually done as a cheap work around for security solutions.

My money goes on this.
Brutish Sailor is offline   Reply With Quote
Old 17th July 2010, 18:39   #131
tom2k7
Junior Member
 
Join Date: Jul 2010
Posts: 8
thanks
tom2k7 is offline   Reply With Quote
Old 20th July 2010, 18:52   #132
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
Heya yah that script is a bit messy prob partially thanks to me. I'll try to work on that. I know the editing/deleting of DJs doesn't work but it will let you add. If you have php mysql admin on your server you can just use that to directly add/remove/edit your dj database.

I'd like to in the near future use some of this script and combine it with possibly SAM broadcaster's php now playing script. Something like this:
  1. Live DJ? Yes->Display DJ profile/pic from djstatus database
  2. Else:Auto DJ/Content->Display SAM Broadcaster php song info/album art
  3. Else:Server offline->OMGZ /FAIL

Example of chopped down SAM php song info

If anyone with php + javascript skills wanna help let me know.

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 21st July 2010, 03:53   #133
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
DJ Status Mod v1.8.2b



Okay after several hours this evening I cleaned up and fixed some stuff. The /admin section of the DJ Status script is now fully functional.

Here's what I did:

1. Added a little CSS to make things look a little more spiffy
2. Added a cute little logo up top
3. Fixed some lines of code so you can add/delete/edit from the /admin page
4. Onchange select DJ from dropdown (Still extra prompt when deleting)
5. Added a quick Mod_Readme.txt to explain how to embed the djinfo_include.php on your webpage using jquery div placer
6. Now shows DJ photo in "Photo URL" input line when editing
7. Using <textarea> instead of <input> for DJ Bio to give 3 rows of space

Things to do:

1. Add social networking links (FB, Twitter)
2. Integrate with SAM or create own custom album cover database for display when no live DJ
3. Make myself a martini, straight up and dirty...

The main fix on this is mainly the /admin page so if you are already using this script fine you can just upload the /admin directory and that's it (minus the /install directory). Oh and always back up your shiznet.

DOWNLOAD

Cheers

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 21st July 2010, 10:01   #134
radiojames
Junior Member
 
radiojames's Avatar
 
Join Date: Jul 2010
Location: Australia
Posts: 5
Quote:
Originally Posted by odogg View Post
Okay after several hours this evening I cleaned up and fixed some stuff. The /admin section of the DJ Status script is now fully functional.

Here's what I did:

lalalalal etc..
Nice work! Downloading now, ill do some testing of it.
Do you mind if i re-distribute this via my site?
radiojames is offline   Reply With Quote
Old 21st July 2010, 12:36   #135
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
Quote:
Do you mind if i re-distribute this via my site?
Go for it! Hope it works alright.

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 22nd July 2010, 15:50   #136
spyhergaming
Junior Member
 
Join Date: Jul 2010
Posts: 8
i will be using it thanks

*edit* did you end up adding a dj schedule?
and does it have request song? like a form sorta setup just only the dj can read it?
spyhergaming is offline   Reply With Quote
Old 23rd July 2010, 02:31   #137
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
I haven't messed with any song request features if there really is any. As far as scheduling this script doesn't work like that and I think it's good. The way it works (in auto mode) is off your server description (not the title). So if you have a DJ in the database named John you could put "John" in the alias field. Then in his shoutcast dsp plugin he'd put "Live with John." When the script refreshes it sees that keyword "John" in the server description and then displays his info.

Optionally you could have a separate profile for your auto dj, I call mine "Regular Programming." Or you could just display nothing, or "DJ Offline." I'm currently working on integrating a chopped down version of the SAM php script so that when auto dj is running you get the ablum art/song title displayed instead of just "Regular Programming" or "DJ Offline."

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 14th May 2011, 10:32   #138
JatondaRadio
Junior Member
 
Join Date: Mar 2011
Posts: 6
There is still something very wrong with your syntax. First I tried the auto install, if I don't create the db for it, it complains about it, but if I do create the db, it says it could not create the tables, phpmyadmin reports it tried to create a table that already exists.

I tried manual install by importation of the sql files, another mess. Each SQL script had a syntax error: "#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM AUTO_INCREMENT=1' at line 17"

I really want to get this working ><
JatondaRadio is offline   Reply With Quote
Old 2nd April 2012, 20:27   #139
000_000_00_00
Junior Member
 
Join Date: Feb 2012
Posts: 1
I'm glad I came across this as it's something that I'm interested in getting working for a small guild station I'm part of, however I can't get this to actually work. Just keeps saying:

The radio is currently down. Please check again later.

I go through godaddy for hosting and they say:

For reference, you can use fsockopen on all of our PHP-enabled hosting plans for TCP ports 80 and 443.

But I'm not sure what that actually means.
000_000_00_00 is offline   Reply With Quote
Old 3rd April 2012, 02:52   #140
thinktink
Forum King
 
thinktink's Avatar
 
Join Date: May 2009
Location: On the streets of Kings County, CA.
Posts: 3,008
Send a message via Skype™ to thinktink
It means they don't allow you to connect to any port other than ports 80 and 443 (the common ports for web pages.) It means that unless the server is running on one of those ports godaddy won't let the script connect to the SHOUTcast server.
thinktink is offline   Reply With Quote
Old 24th April 2012, 07:25   #141
lilukj21
Junior Member
 
Join Date: Apr 2012
Posts: 1
ok I love this script and will continue to add some cool things to the page. One thing Ican not get to work is when I attemp to edit the DJ infomation the form fields are not displaying the current data from the table. Does anyone have this issue or know how to fix it?
Here is the editDJ2.php

PHP Code:
<?php
//////////////////////////////////////////////////////////////////////////////
// DJ Status v1.8.2                                                            //
// ©2005 Nathan Bolender www.nathanbolender.com                                //
// Free to use on any website                                                //
//////////////////////////////////////////////////////////////////////////////

include ("../config.php");    
include (
"header.inc");
if (!empty(
$_GET['pass'])) {
    
$pass $_GET['pass'];
} else {
    
$pass $_POST['pass'];
}
if (
$pass != $adminpass) {
echo 
"<strong>Incorrect password</strong>";
} else {

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


$query="SELECT * FROM currentdj WHERE dj = '$edj'";
$result=mysql_query($query);
    while(
$row mysql_fetch_array($result)) {
        
$edj $row[dj];
        
$eactive $row[active];
        
$ename $row[name];
        
$eaddress $row[address];
        
$efacebook $row[facebook];
        
$etwitter $row[twitter];
        
$etwitter2 $row[twitter2];
        
$eemail $row[email];
        
$eemail2 $row[email2];
        
$eals1 $row[alias1];
        
$eals2 $row[alias2];
        
$eals3 $row[alias3];
        
$eavatar $row[avatar];
    }
?>
<SCRIPT LANGUAGE="JavaScript">
function checkrequired(which) {
var pass=true;
if (document.images) {
for (i=0;i<which.length;i++) {
var tempobj=which.elements[i];
if (tempobj.name.substring(0,8)=="required") {
if (((tempobj.type=="text"||tempobj.type=="textarea")&&
tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else
return true;
}
</script>
<style type="text/css">
<!--
.style2 {color: #FF0000}
.style4 {color: #000033}
-->
</style>
    <p><strong>DJ Management > Edit DJ</strong></p>
    <form name="editDJ2" method="post" action="editDJ3.php" onSubmit="return checkrequired(this)"><span class="style2">*</span> Required<br><table width="333" border="2" cellpadding="2" cellspacing="0" bordercolor="#666666">
      <tr>
        <td width="207"><strong>DJ Name<span class="style2">*</span></strong></td>
        <td width="144">
         <input name="requireddjname" type="text" id="requireddjname" value="<?php echo $ename?>"></td>
      </tr>
      <tr>
        <td><strong>Request Line Address </strong></td>
        <td><input name="newaddress" type="text" id="newaddress" value="<?php echo $eaddress?>"></td>
      </tr>
      <tr>
        <td><strong>Facebook </strong></td>
        <td><input name="newfacebook" type="text" id="newfacebook" value="<?php echo $efacebook?>"></td>
      </tr>
      <tr>
        <td><strong>Twitter </strong></td>
        <td><input name="newtwitter" type="text" id="newtwitter" value="<?php echo $etwitte?>"></td>
      </tr>
      <tr>
        <td><strong>Twitter2 </strong></td>
        <td><input name="newtwitter2" type="text" id="newtwitter2" value="<?php echo $etwitter2?>"></td>
      </tr>
      <tr>
        <td><strong>Email</strong></td>
        <td><input name="newemail" type="text" id="newemail" value="<?php echo $eemail?>"></td>
      </tr>
      <tr>
        <td><strong>Email2</strong></td>
        <td><input name="newemail2" type="text" id="newemail2" value="<?php echo $eemail2?>"></td>
      </tr>
      <tr>
        <td><strong>Alias 1<span class="style2">*</span> </strong></td>
        <td><input name="requiredalias1" type="text" id="requiredalias1" value="<?php echo $eals1?>"></td>
      </tr>
      <tr>
        <td><strong>Alias 2<span class="style2">*</span></strong></td>
        <td><input name="requiredalias2" type="text" id="requiredalias2" value="<?php echo $eals2?>"></td>
      </tr>
      <tr>
        <td><strong>Alias 3<span class="style2">*</span> </strong></td>
        <td><input name="requiredalias3" type="text" id="requiredalias3" value="<?php echo $eals3?>"></td>
      </tr>
      <tr>
        <td><strong>Avatar File Name<span class="style2">*</span> </strong></td>
        <td><input name="newavatar" type="text" id="newavatar" value="<?php echo $eavatar?>"></td>
      </tr>
    </table>
    <?php
    
if ("$dj== "$edj") {
    echo 
"<br><b>Note: This DJ is currently signed on as an active DJ.</b>";
    } 
?>
    <input type="hidden" name="pass" value="<?php echo "$pass"?>">
    <input type="hidden" name="edj" value="<?php echo "$edj"?>"><br>
    <input type="submit" name="Submit" value="Submit">
    <?php echo "ename"?>
      <p><strong><u><span class="style4">Explainations</span></u><br>
        <u>SongRequester Address</u> - DJ's specific address to their Song Request page. For use with <a href="http://www.oddsock.org/tools/gen_songrequester/" target="_blank">Oddsock Song Requester Winamp plugin.</a> Static address required.<br>
      <u>Aliases</u> - Names to search server title for. Three are required, but there can be duplicates or be all the same if needed. </strong></p>
      
    </form>
<br><br><a href="main.php?pass=<?php echo "$pass"?>">Main</a>
    <?php
}
include (
"footer.inc");
 
?>
lilukj21 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Discussions

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump