Old 6th July 2004, 00:36   #1
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
[Developing] Shoutcast Current DJ Script

I'm working on a script that shows your station's current DJ. It's got a lot of work to do, but the basic function is finished. If there are any features that you think you'd want in the final release, please let me know and I'll incorporate them. I'm not going to be releasing it for a little while, but I will send it out later to a few people for beta testing.

Also, here is a link to my current version: http://www.ps2sector.com/currentdj/

DJ Status v1.2

Current Features
-> Grabs stats from your shoutcast server such as Current title, current song, current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the SongRequester plugin) from your MySQL database, and displays all that applies.
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.

Planned features
-> Admin panel for adding, editing, and deleting DJs.
-> Template system

Last edited by Coolnat2004; 6th July 2004 at 01:21.
Coolnat2004 is offline   Reply With Quote
Old 6th July 2004, 01:27   #2
djmastermind
Forum King
 
djmastermind's Avatar
 
Join Date: Jul 2003
Location: Houston, TX
Posts: 6,813
Very awesome! I like how you created the link to your Oddsock's Song Requester. It's brilliant. Keep us updated.

-- Michael
djmastermind is offline   Reply With Quote
Old 6th July 2004, 01:33   #3
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Glad you're interested

I just added a nifty way to add up to 3 aliases in the database. This will be in the admin panel--which I'm going to start on now.
Coolnat2004 is offline   Reply With Quote
Old 6th July 2004, 06:09   #4
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
DJ Status v1.5

Current Features
-> Grabs stats from your shoutcast server such as Current title, current song, current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the SongRequester plugin) from your MySQL database, and displays all that applies.
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.
-> [NEW!] Admin panel for adding, editing, and deleting DJs.
-> [NEW!] Simple Installation script

Planned features
-> None at this time.

Here are some screenshots of the new administration panel:
->First page, showing password field
->Main admin page
->Add DJ page
->DJ deletion select page
->DJ deletion confirmation page
->DJ edit success message

If you would like to test this version, please post here or contact me directly.

Last edited by Coolnat2004; 6th July 2004 at 06:35.
Coolnat2004 is offline   Reply With Quote
Old 6th July 2004, 21:29   #5
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
DJ Status v1.5.2

Whats New?

-> Several bugfixes

Current Features
-> Grabs stats from your shoutcast server such as Current title, current song, current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the SongRequester plugin) from your MySQL database, and displays all that applies.
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.
-> Admin panel for adding, editing, and deleting DJs.
-> Simple Installation script

Planned Features
-> None at this time. Let me know if you want anything!

If you would like to test this version, please contact me.
Coolnat2004 is offline   Reply With Quote
Old 6th July 2004, 22:28   #6
Wavestreaming
Major Dude
 
Wavestreaming's Avatar
 
Join Date: Apr 2004
Location: United Kingdom
Posts: 1,563
Send a message via AIM to Wavestreaming Send a message via Yahoo to Wavestreaming
Hello,

Looks good to me - would you be interested in offering this to my clients under the Wavepanel we offer?

If so, contact me
Wavestreaming is offline   Reply With Quote
Old 7th July 2004, 20:55   #7
DoodMonkey
Senior Member
 
Join Date: Sep 2003
Location: Boston
Posts: 106
Very nice! what would be a cool feature from my standpoint, is making some sort of time tables, so DJs can only log in and start streaming during certain time blocks. Something I've toyed with and would like to start working on.

But I am most definetly interested in what you got so far.
DoodMonkey is offline   Reply With Quote
Old 7th July 2004, 21:41   #8
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by DoodMonkey
Very nice! what would be a cool feature from my standpoint, is making some sort of time tables, so DJs can only log in and start streaming during certain time blocks. Something I've toyed with and would like to start working on.

But I am most definetly interested in what you got so far.
I've thought of this before, but the thing is DJ's don't log in to change it, the script just checks the server's title for the DJ's name. I can't control who logs in to the server and when.

I could add a field for schedule time, though, but it wouldn't affect what DJ shows and when.
Coolnat2004 is offline   Reply With Quote
Old 8th July 2004, 07:36   #9
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
DJ Status v1.7

What's New?

->Manual Mode--Optional mode to disable automatic DJ detection and have DJs log in and out.

Current Features
-> Grabs stats from your shoutcast server such as Current title, current song,
current # of listeners.
-> If a DJ isn't connected, a message is displayed stating so.
-> If the server isn't up, it displays a message stating so.
-> Checks the server title for the DJ's name, and assigns that DJ's ID.
-> Pulls DJ name, IM info, and link to song request page (Using the
SongRequester plugin) from your MySQL database, and displays all that applies.
-> Easy config file.
-> Up to 3 aliases per DJ to check for in the server title.
-> Administration panel for adding, editing, and deleting DJs
-> Simple installation script
-> Manual Mode--Optional mode to disable automatic DJ detection and have DJs
log in and out.

Planned Features
-> None! Let me know what you want!

If you'd like to contribute to testing this script, please let me know. Once I make sure all currently desired features are added and all bugs are resolved, I will release the script to the general public.
Coolnat2004 is offline   Reply With Quote
Old 9th July 2004, 08:37   #10
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
DJ Status will be publicly released once it is accepted at Hotscripts.com. That should be sometime on 7/9/04.
Coolnat2004 is offline   Reply With Quote
Old 9th July 2004, 20:38   #11
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
DJ Status publically released!

Rate it!

See it at Hotscripts!

Download Now!
Coolnat2004 is offline   Reply With Quote
Old 14th July 2004, 03:09   #12
Death Reaper
Major Dude
 
Death Reaper's Avatar
 
Join Date: Jan 2004
Posts: 681
Send a message via AIM to Death Reaper Send a message via Yahoo to Death Reaper
Hello there

This is a nice script (haven't checked it yet :S) Would you by chance be able to detect the IP of the broadcasting DJ? I ask this because I am re-coding the SAM2 PHP output to a plugin for LDU, a CMS I use. Also, permission to port this to a plugin to LDU? I won't release it public without permission of course...

Regards,

Death Reaper
Death Reaper is offline   Reply With Quote
Old 14th July 2004, 05:34   #13
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,854
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
Recently back from playing with this I ran into two problems:

1. Script didn't want to talk to database even using the root no pass option yet installing the SQL manually worked far enough to appear installed fine. This one might be my server being a pain since it's happened before.

2. Can't seem to login to the admin even though password was set (these of course changed):

$adminname = "TheNameIUsed"; // Name to display when in manual mode
$adminpass = "passwordiused"; // Password for the administration panel

I don't see any other errors happening and the main page is displaying the data fine - I just can't get into the bugger.

Megarock Radio - St. Louis Since 1998!
Tune In Now!
Corporate Radio Sucks! No suits, all rock!

Last edited by MegaRock; 14th July 2004 at 07:53.
MegaRock is offline   Reply With Quote
Old 14th July 2004, 17:54   #14
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by Death Reaper
Hello there

This is a nice script (haven't checked it yet :S) Would you by chance be able to detect the IP of the broadcasting DJ? I ask this because I am re-coding the SAM2 PHP output to a plugin for LDU, a CMS I use. Also, permission to port this to a plugin to LDU? I won't release it public without permission of course...

Regards,
Using the method I use to get information about the server, I can't detect the IP of the broadcasting DJ, only because that is not included in the XML stats from shoutcast.

And you can port it to your CMS, but let me know if you release it.

Quote:
1. Script didn't want to talk to database even using the root no pass option yet installing the SQL manually worked far enough to appear installed fine. This one might be my server being a pain since it's happened before.
That's odd. o_O

Quote:
2. Can't seem to login to the admin even though password was set (these of course changed):
That shouldn't be happening. Do you see the version number in the admin panel, or just "DJ Status v"? If you don't see it, then the admin panel isn't finding the config file..hmm

I'm not an expert at coding.. This is my first PHP script. I'll check over the auth code in the admin panel.
Coolnat2004 is offline   Reply With Quote
Old 14th July 2004, 18:36   #15
Death Reaper
Major Dude
 
Death Reaper's Avatar
 
Join Date: Jan 2004
Posts: 681
Send a message via AIM to Death Reaper Send a message via Yahoo to Death Reaper
Great! I can also take a look at the code and try and help you if I can.

Regards,

Death Reaper
Death Reaper is offline   Reply With Quote
Old 14th July 2004, 21:56   #16
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,854
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
Yes. I see the entire panel and DJ Status v1.8 Administration. Everything looks fine but it tells me Incorrect Password.

Megarock Radio - St. Louis Since 1998!
Tune In Now!
Corporate Radio Sucks! No suits, all rock!
MegaRock is offline   Reply With Quote
Old 15th July 2004, 00:20   #17
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by MegaRock
Yes. I see the entire panel and DJ Status v1.8 Administration. Everything looks fine but it tells me Incorrect Password.
I bet you're on a windows server, eh? Another person on a windows server had the same problems.

If anyone wants to look at the code, it's fine by me. I don't see anything wrong with it, and it works fine on my server. Just download the ZIP and its all there.
Coolnat2004 is offline   Reply With Quote
Old 15th July 2004, 00:43   #18
MegaRock
Forum King
 
MegaRock's Avatar
 
Join Date: Jun 2003
Location: Inside my water bong
Posts: 6,854
Send a message via ICQ to MegaRock Send a message via Yahoo to MegaRock
FreeBSD/Apache

Megarock Radio - St. Louis Since 1998!
Tune In Now!
Corporate Radio Sucks! No suits, all rock!
MegaRock is offline   Reply With Quote
Old 15th July 2004, 00:49   #19
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by MegaRock
FreeBSD/Apache
Hmm..must not be the server then..Same system here.
Coolnat2004 is offline   Reply With Quote
Old 15th July 2004, 01:53   #20
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
I change the code around slightly so that I can specify a photo for the dj and it will pop up on my site when they are streaming live along with their dj name of course. I think a short bio would be cool to add in later.

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 15th July 2004, 03:54   #21
Death Reaper
Major Dude
 
Death Reaper's Avatar
 
Join Date: Jan 2004
Posts: 681
Send a message via AIM to Death Reaper Send a message via Yahoo to Death Reaper
Quote:
Originally posted by odogg
I change the code around slightly so that I can specify a photo for the dj and it will pop up on my site when they are streaming live along with their dj name of course. I think a short bio would be cool to add in later.
Actually, I wrote a manual plugin for LDU for my site. I *still* haven't looked at the script yet, I will tommorow, I promise. And I will integrate my features from my plugins (Bio, location, age, perferred genre, image, website) into this script. I was busy today setting up my MSN bot for my new site and tommmorow am finishing off the coding of the modules to run it.

Regards,

Death Reaper
Death Reaper is offline   Reply With Quote
Old 15th July 2004, 19:20   #22
PC Radio Net
Senior Member
 
Join Date: Feb 2003
Posts: 482
Send a message via AIM to PC Radio Net Send a message via Yahoo to PC Radio Net
Hey Coolnat, is there a link where I can download the script. Everytime I go to the link you gave, it says the station is down.

The PC Radio Network: An upbeat variety of the 50s-Today!
PC Radio Net is offline   Reply With Quote
Old 15th July 2004, 19:50   #23
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Hey Coolnat, is there a link where I can download the script. Everytime I go to the link you gave, it says the station is down.
o_O
Quote:
Originally posted by Coolnat2004
DJ Status publically released!

Rate it!

See it at Hotscripts!

Download Now!
Coolnat2004 is offline   Reply With Quote
Old 16th July 2004, 00:40   #24
Dean Saliba
Senior Member
 
Dean Saliba's Avatar
 
Join Date: May 2002
Location: London, UK
Posts: 219
Send a message via AIM to Dean Saliba Send a message via Yahoo to Dean Saliba
I have been looking for a script for a while now that I can put on the web site to let people know who is on the air right now.

Without meaning to sound stupid does this little script you have do that?

Like at the top (left) of this web site:
http://lbc.co.uk


About to launch an internet radio station after an almost 10 year break. I don't suppose much has changed in that time.
Dean Saliba is offline   Reply With Quote
Old 16th July 2004, 01:22   #25
odogg
Member
 
Join Date: Jan 2004
Location: St. Paul, MN
Posts: 77
Its capable of that...

The script is capable of that with a little reconfiguration...

-Odogg

Odogg
Dogglounge Internet Radio
Streaming Deep House Music 24/7
www.dogglounge.com
odogg is offline   Reply With Quote
Old 16th July 2004, 01:53   #26
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by Dean Saliba
I have been looking for a script for a while now that I can put on the web site to let people know who is on the air right now.

Without meaning to sound stupid does this little script you have do that?

Like at the top (left) of this web site:
http://lbc.co.uk

Easily--just take out everything but DJ name in index.php and do an include wherever you want it. It's plain text so it can be formatted around the include with HTML or CSS.
Coolnat2004 is offline   Reply With Quote
Old 16th July 2004, 02:13   #27
Death Reaper
Major Dude
 
Death Reaper's Avatar
 
Join Date: Jan 2004
Posts: 681
Send a message via AIM to Death Reaper Send a message via Yahoo to Death Reaper
I can provide an addon script that will do just that.

Regards,

Death Reaper
Death Reaper is offline   Reply With Quote
Old 16th July 2004, 03:01   #28
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
code:
<?php

include ("djstatus/index.php");

?>



woohoo
Coolnat2004 is offline   Reply With Quote
Old 16th July 2004, 10:10   #29
Dean Saliba
Senior Member
 
Dean Saliba's Avatar
 
Join Date: May 2002
Location: London, UK
Posts: 219
Send a message via AIM to Dean Saliba Send a message via Yahoo to Dean Saliba
Cheers for that

About to launch an internet radio station after an almost 10 year break. I don't suppose much has changed in that time.
Dean Saliba is offline   Reply With Quote
Old 16th July 2004, 20:11   #30
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by Dean Saliba
Cheers for that
Coolnat2004 is offline   Reply With Quote
Old 11th August 2004, 15:14   #31
magnified_plaid
Registered User
 
Join Date: Jul 2004
Location: in my home
Posts: 1
Send a message via AIM to magnified_plaid
I'm lost....

hey how do I start a forum, or topic here?
magnified_plaid is offline   Reply With Quote
Old 11th August 2004, 15:21   #32
Wavestreaming
Major Dude
 
Wavestreaming's Avatar
 
Join Date: Apr 2004
Location: United Kingdom
Posts: 1,563
Send a message via AIM to Wavestreaming Send a message via Yahoo to Wavestreaming
Click on "post a new topic" at the top of the forum on the right...
Wavestreaming is offline   Reply With Quote
Old 17th August 2004, 05:47   #33
MelvindaWeasel
Junior Member
 
Join Date: Aug 2004
Posts: 11
how do you implement this into your own website. I want to put this into the portal page of my forum. what code or script do I have to use to do this and what other info is needed to do this??


thanks in advance for any and all help.
MelvindaWeasel is offline   Reply With Quote
Old 17th August 2004, 21:07   #34
frankie 2 times
Junior Member
 
Join Date: Aug 2004
Posts: 5
Coolnat2004,

thanx for the wicked add-on.

i got a question.

i have VBadvanced CMPS, and i want to move your index page,
into a custom page with all my forum style etc.

i created a new template for page and included the index.php
file from your script, i can call the listeners online variable,
it will show that, but the other variables won't show up.

$dj and $name, most notably

can ya help me ?

thanks in advance
frankie 2 times is offline   Reply With Quote
Old 30th October 2004, 05:41   #35
jammer2004
Junior Member
 
Join Date: Oct 2004
Posts: 2
I am still having trouble with this.

The currnt dj wont show up and this is all I am getting
The currnet DJ is not working right. What did I do wrong?

Listeners: 1 Click to listen!
Current Title: Jamming Music
Current Song: 2PAC - Changes
Current DJ ID: Array
Current DJ:
ICQ: N/A

I get this error too:
Unable to connect to the database.
Check $dbhost, $dbuser, and $dbpass in config.php.

Can someone please email me and help me? Thanks
jammer2004 is offline   Reply With Quote
Old 30th October 2004, 05:49   #36
Coolnat2004
Junior Member
 
Join Date: Jun 2004
Posts: 20
Send a message via ICQ to Coolnat2004 Send a message via AIM to Coolnat2004 Send a message via Yahoo to Coolnat2004
Quote:
Originally posted by jammer2004
I am still having trouble with this.

The currnt dj wont show up and this is all I am getting
The currnet DJ is not working right. What did I do wrong?

Listeners: 1 Click to listen!
Current Title: Jamming Music
Current Song: 2PAC - Changes
Current DJ ID: Array
Current DJ:
ICQ: N/A

I get this error too:
Unable to connect to the database.
Check $dbhost, $dbuser, and $dbpass in config.php.

Can someone please email me and help me? Thanks
Again, dude. Make sure you have the config.php file configured correctly. You don't have the correct database login information in it. These should be defined in your hosting provider's control panel, or it'll be you're login for your hosting provider.
Coolnat2004 is offline   Reply With Quote
Old 4th December 2004, 14:05   #37
DoodMonkey
Senior Member
 
Join Date: Sep 2003
Location: Boston
Posts: 106
I'm about to setup this script on my server.

Anyone know if its possible to use this with multiple Shoutcast servers? I run two. Is it possible to setup and run another version of this script?

I basically need one running for each shoutcast station I run. Anyhelp on configuring this script for a second server would be super! Thanks!!
DoodMonkey is offline   Reply With Quote
Old 4th December 2004, 14:26   #38
Vchat20
Major Dude
 
Vchat20's Avatar
 
Join Date: Aug 2002
Posts: 1,273
i actally did upmy own currentlybroadcasting DJ code for my website not too long ago. was small, PITA, but it worked. very simple though. all it did was go out to the server, see what was in the genre field. depending on what was in the genre field, it would include a related php file located onsite.

but this one seems to be somewhat better considering its more configurable than mine and is getting alot more attention. good luck with it btw.
Vchat20 is offline   Reply With Quote
Old 10th December 2004, 10:43   #39
DoodMonkey
Senior Member
 
Join Date: Sep 2003
Location: Boston
Posts: 106
I had a number of errors when I ran the install script. I do see it created tables, but I'm having issues.

When I go to log in, it won't allow me - says password is not valid. I've tried changing it in the config file, no luck.

I'm running APACHE and free bsd 5.0 - > any help here would be apprecaited.

Here is one of the errors I got when I ran the install script - only got one of them, there were several.

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /usr/local/apache/htdocs/nuke/html/djlist/dbconnect.php on line 20
DoodMonkey is offline   Reply With Quote
Old 10th December 2004, 10:53   #40
DoodMonkey
Senior Member
 
Join Date: Sep 2003
Location: Boston
Posts: 106
Got a little closer - problem is in the /admin/main.php

Quote:
I changed this a little and was able to log in, but I do have some errors

was : include ("../config.php");
now : include ("/../config.php");
Not very good with MySql, but here are the errors I get now ::

Quote:
Warning: main(/../config.php): failed to open stream: No such file or directory in /usr/local/apache/htdocs/nuke/html/djlist/admin/main.php on line 8

Warning: main(): Failed opening '/../config.php' for inclusion (include_path='.:/usr/local/php/lib/php') in /usr/local/apache/htdocs/nuke/html/djlist/admin/main.php on line 8
ANy help would be appreciated
DoodMonkey 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