View Full Version : [Developing] Shoutcast Current DJ Script
Coolnat2004
6th July 2004, 00:36
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
djmastermind
6th July 2004, 01:27
Very awesome! I like how you created the link to your Oddsock's Song Requester. It's brilliant. Keep us updated.
Coolnat2004
6th July 2004, 01:33
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
6th July 2004, 06:09
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 (http://img40.exs.cx/img40/6904/Screenshot0004.jpg)
->Main admin page (http://img40.exs.cx/img40/558/Screenshot0005.jpg)
->Add DJ page (http://img40.exs.cx/img40/4075/Screenshot0006.jpg)
->DJ deletion select page (http://img40.exs.cx/img40/4172/Screenshot0007.jpg)
->DJ deletion confirmation page (http://img40.exs.cx/img40/7849/Screenshot0008.jpg)
->DJ edit success message (http://img40.exs.cx/img40/2926/Screenshot0009.jpg)
If you would like to test this version, please post here or contact me directly.
Coolnat2004
6th July 2004, 21:29
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.
Wavestreaming
6th July 2004, 22:28
Hello,
Looks good to me - would you be interested in offering this to my clients under the Wavepanel (http://wavestreaming.com/?i=wp) we offer?
If so, contact me :)
DoodMonkey
7th July 2004, 20:55
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.
Coolnat2004
7th July 2004, 21:41
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
8th July 2004, 07:36
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
9th July 2004, 08:37
DJ Status will be publicly released once it is accepted at Hotscripts.com. That should be sometime on 7/9/04.
Coolnat2004
9th July 2004, 20:38
DJ Status publically released!
Rate it! (http://www.hotscripts.com/cgi-bin/rate.cgi?ID=36575)
See it at Hotscripts! (http://www.hotscripts.com/Detailed/36575.html)
Download Now! (http://www.krinj.net/misc/djstatus.php)
Death Reaper
14th July 2004, 03:09
Hello there :D
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,
MegaRock
14th July 2004, 05:34
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.
Coolnat2004
14th July 2004, 17:54
Originally posted by Death Reaper
Hello there :D
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.
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
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.
Death Reaper
14th July 2004, 18:36
Great! I can also take a look at the code and try and help you if I can.
Regards,
MegaRock
14th July 2004, 21:56
Yes. I see the entire panel and DJ Status v1.8 Administration. Everything looks fine but it tells me Incorrect Password.
Coolnat2004
15th July 2004, 00:20
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.
MegaRock
15th July 2004, 00:43
FreeBSD/Apache
Coolnat2004
15th July 2004, 00:49
Originally posted by MegaRock
FreeBSD/Apache
Hmm..must not be the server then..Same system here.
odogg
15th July 2004, 01:53
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.
Death Reaper
15th July 2004, 03:54
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,
PC Radio Net
15th July 2004, 19:20
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.
Coolnat2004
15th July 2004, 19:50
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
Originally posted by Coolnat2004
DJ Status publically released!
Rate it! (http://www.hotscripts.com/cgi-bin/rate.cgi?ID=36575)
See it at Hotscripts! (http://www.hotscripts.com/Detailed/36575.html)
Download Now! (http://www.krinj.net/misc/djstatus.php)
Dean Saliba
16th July 2004, 00:40
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
:)
odogg
16th July 2004, 01:22
The script is capable of that with a little reconfiguration...
-Odogg
Coolnat2004
16th July 2004, 01:53
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.
Death Reaper
16th July 2004, 02:13
I can provide an addon script that will do just that.
Regards,
Coolnat2004
16th July 2004, 03:01
<?php
include ("djstatus/index.php");
?>
woohoo
Dean Saliba
16th July 2004, 10:10
Cheers for that :up:
Coolnat2004
16th July 2004, 20:11
Originally posted by Dean Saliba
Cheers for that :up:
:p
magnified_plaid
11th August 2004, 15:14
hey how do I start a forum, or topic here?
Wavestreaming
11th August 2004, 15:21
Click on "post a new topic" at the top of the forum on the right...
MelvindaWeasel
17th August 2004, 05:47
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.
frankie 2 times
17th August 2004, 21:07
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
jammer2004
30th October 2004, 05:41
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
Coolnat2004
30th October 2004, 05:49
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.
DoodMonkey
4th December 2004, 14:05
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!!:up:
Vchat20
4th December 2004, 14:26
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. :)
DoodMonkey
10th December 2004, 10:43
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
10th December 2004, 10:53
Got a little closer - problem is in the /admin/main.php
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 ::
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
SomethingRandom
1st April 2005, 13:09
I cant even download it >_<
"OOPS!
The Listing You Requested Has Been Removed From HotScripts.com
The listing you requested has been removed. Please update your links accordingly."
JE JaggedEdge
1st April 2005, 16:32
http://www.2004design.tk/
hotelboy
11th December 2005, 06:38
Quote:
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.
Odddog says that above but how am i suppose to do that and what do i need to edit and what code do i need to add i just want a avatar when a deejay connects so that the stats will display the name of the deejay the listeners rate and a avatar of the deejay deejaying hope u guys help me solve this issue. Example found are like this website
www.habz.net/djstatus
Thanks.
hernyboy
13th January 2006, 02:23
Does anybody know how to add a photo to the Dj id in the Dj status script?
I guess it needs to be added to the mysql tables.
Thanks
www.rinfm.com
hernyboy
21st January 2006, 05:22
C' mon
Nobody can help me out with a simple script?
Jeez I thought there were some smart people here
Thx anyway
H
www.rinfm.com
keith_07
12th January 2007, 14:30
Hi All, Seem to be getting the same problem as DoodMonkey
which are the following errors!!
Warning: main(dbconnect.php) [function.main]: failed to open stream: No such file or directory in /home/public_html/config.php on line 88
Warning: main(dbconnect.php) [function.main]: failed to open stream: No such file or directory in /home/public_html/config.php on line 88
I have double checked everything & all is correct so must be some sort of bug any help would be great thx.:up:
keith_07
16th January 2007, 18:45
Any one get it going ?!!
expolit
8th February 2007, 20:51
i can't see the link !!
how can i see it ? please help...
TheBen
8th February 2007, 23:00
How can someone download it if they can't see any links, they all say "URL submitted by user. " and this is on numerous threads.
collussus2
12th February 2007, 14:34
why can't i see links?
keith_07
14th February 2007, 12:42
Folks here is the guys site where you can get the link but i would say you are going to get the same errors as me.
2004design.tk
DoodMonkey
14th February 2007, 21:00
This thread is older then dirt. I haven't had that script running in a long time. I'm going to see if I have it somewhere.
djblade99
15th February 2007, 10:18
yeah ive seen this about looks the nuts with there pic rotating and whos playing..
racer590
26th February 2007, 02:00
im using yahoo as my webhsot and i ahve the mysql setup under root under myql folder then i have the dj script under another folder under root in teh updatesong folder. tehn when i run the install it says it is sorry but it cannot make teh tables. can anybody help me?
DoodMonkey
2nd March 2007, 14:38
I looked around on my computers and could not find this script. Been a long time and a lot of computers ago that I had it. Does anyone have a copy of it? I want to try and use it again and it would be nice to have.
Thanks
Niennor
14th April 2007, 04:12
Hi
I wish to test this script on my website (www.elclaustro.cl)
Where I can download it??
Thanks!
focal
14th April 2007, 05:34
Does it still work? If so, this is great :)
kanden
2nd May 2007, 14:06
thanks for the post
salatoimikud
3rd May 2007, 12:46
why admin panel says all time incorrect password? But i write correct password!
devina92
7th May 2007, 18:32
lkjpj
siemenscx
17th September 2007, 17:58
Nice but i cant download :mad:
masterstanf2k
29th November 2007, 21:50
what'st eh link to the site?
Jert
6th December 2007, 22:16
Very nice!! :)
Tethris
21st December 2007, 06:13
cool, gj :)
VooDooMaN
2nd January 2008, 14:05
i look
moosuper
10th January 2008, 14:27
thank
spak666
12th January 2008, 04:44
good
thindstudio
15th January 2008, 07:25
Where I can download this script?
Please post a link
THX
DjCotanak
17th January 2008, 06:37
thank you
satanradio
25th January 2008, 02:13
Hey i am Looking For a Shoutcast status and WPM All in one player with popup player to it needs to be pro like....
i am been on the air more then 8 to 9 years now.. i can the last time i had listens there was about 12,000 ppl that was on all in one night. but the myserver was down for a year
so i got a new system now called t5 server with wiress access point so if you ppl have any ideal where to find it let me now
pasipasi
27th January 2008, 18:54
ty for scripts
tkstka
28th January 2008, 08:25
I can't see any links where I could download.. :C
If someone could give it to me
MazZer
28th January 2008, 21:04
This is excacly what I'm looking for.
But I still don't get how to make the links visible in this forum!?!?!?
dj_dymek
29th January 2008, 20:27
Hi I have question if I add new dj what do I have to put in alies???? can you give me specific example??? and also I have problem because I put everthing right and my server is running and it's still said that the server is down what would be the probleM???
cmkyk
31st January 2008, 08:40
workinn
cmkyk
31st January 2008, 08:45
Can anyone tell how can i see the links?
tkstka
1st February 2008, 05:43
I have problem. I can't seem to get the install working..
I think it's problem with mysql and database.. I'm not sure if I did it right. But this is my first own webserver.. Could anyone help?
Jynxx
1st February 2008, 14:32
I cant see the links to download this, it just says [URL Submitted by user]
Jynxx
1st February 2008, 18:04
nevermind that last post, I see them now....
im such an idiot
rob9050
23rd February 2008, 03:21
rellly?
h4ni
23rd February 2008, 17:16
thank you :)
Adnan-Ahmed
1st March 2008, 10:35
thanks
nesis
1st March 2008, 18:30
c
geordiemax
1st March 2008, 20:34
How come i can't see links?
arthurvasey
11th March 2008, 22:30
All I see is URL submitted by user - and I can't click them!
xerrion
12th March 2008, 21:05
ice
mattoxa
13th March 2008, 07:31
thanks man ! its great ! (y)
zoto
31st March 2008, 08:39
cheers
Shadow_One27
31st March 2008, 16:06
Thanks...
Juancamilor
20th April 2008, 04:14
hhh
Juancamilor
20th April 2008, 15:14
HEEEEEEELP PLEASE!!!!!
how can i see the links???
hawkmyg
24th April 2008, 11:10
Nice would like to see this in action
hawkmyg
24th April 2008, 11:12
Cant see the links whats up with that?
Relo74
25th April 2008, 17:03
looking to use this too
PowerUseR
29th April 2008, 18:35
denemem lazım ama url görün muyor
jordanmoreira57
5th July 2008, 23:31
link?
Scarface.717
1st September 2008, 20:24
Thanks A LOST!
uanbxuoiw
21st September 2008, 23:28
Thank you man :)
Thebig429
22nd September 2008, 01:38
Originally posted by Juancamilor
HEEEEEEELP PLEASE!!!!!
how can i see the links???
Hit the QUOTE button
bette
25th September 2008, 19:42
Testing xD
guvnor
3rd October 2008, 05:41
hrm.
dannidj
3rd October 2008, 09:19
Is it possabole to get this Script?
Flippi
8th October 2008, 17:02
Thank you
jordanmoreira57
24th November 2008, 00:41
cool :D
zgabor
12th December 2008, 13:07
good script! :)
Scaryteam
16th March 2009, 16:17
I want to test your script, Thanks..
odogg
17th March 2009, 16:14
I'm posting a modified version of the DJ Status script to include a DJ Photo, DJ Photo link, DJ Bio & DJ website link.
I would suggest doing a clean install with this. Also your webhost needs to allow fsock connections.
Download here (http://www.odiggy.com/shoutcastscripts/djstatus/djstatus.zip)
You can see a demo of this on my website (see signature) under the "DJ Profile."
What I have done is created a profile for my auto DJ entitled "Regular Programming." The content delivery service streams to the shoutcast server sending the server description, "My Station Title: Regular Programming." The script recognizes the alias Regular Programming and displays the related content. Now if a DJ drops the auto DJ and starts playing live they will have "DJ John Doe" in their Server Description, the script picks up on the alias John+Doe and displays DJ John Doe's photo/bio etc..
Got it? Yay! Enjoy!
Brutish Sailor
17th March 2009, 19:54
Fantastic! Looked VERY sharp.
Your page source was very clean as well.
A Bravo Zulu from the sailor
odogg
17th March 2009, 22:02
Thanks shipmate!
Si9an
22nd March 2009, 09:48
Thanks!
Juancamilor
22nd March 2009, 19:12
Como miro los links???
Juancamilor
22nd March 2009, 19:15
Originally posted by Coolnat2004
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 gracias pues
Juancamilor
22nd March 2009, 19:16
no no sale nada
Brutish Sailor
22nd March 2009, 19:37
Como?
miquelx
31st March 2009, 21:51
how can i download this? :S
fc*uk
31st March 2009, 22:46
odogg's script: http://www.odiggy.com/shoutcastscripts/djstatus/
Original poster's script appears to be missing in action.
jkhanis
3rd April 2009, 15:43
wewttttt
BladeRadio
12th April 2009, 05:05
http://code.nathanbolender.com/PHP/djstatus/
for the Original Authors Version.
kavinesh
1st May 2009, 07:57
kewl
stopasking
16th May 2009, 14:40
thx man
BladeRadio
8th June 2009, 08:18
np, i know how it feels to loose code that is very useful.
now where did i put my golden goose >.<
BLTYNR
18th June 2009, 19:10
Where can i download this script?
Nick@ss
18th June 2009, 19:30
Here is a copy i downloaded recently,
I think its the same thing.
Juzzy1992
26th June 2009, 02:11
Nice, Able to download it? If yes, Where?
Nick@ss
26th June 2009, 06:11
lol..... look in the post above!!
raw3a
30th June 2009, 01:23
:D :D :D
Eston
2nd July 2009, 21:01
nice
forgiven
31st December 2009, 01:34
I really needed this. Thanks
tycoon1980
25th April 2010, 20:40
I have solved this problem by doing the following!
i opened up config.php en on line 36 i removed the red marked &
$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! (http://i43.tinypic.com/29eswpi.jpg)
But the script did his work and filled my database.
Also adding a DJ gave me 2 errors. Klik! (http://i40.tinypic.com/2vshx0y.jpg)
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! (http://i44.tinypic.com/16287dg.jpg)
the line it keeps revering to is the following:
$scfp = @fsockopen("$scip", $scport, &$errno, &$errstr, 10);
Can anyone help me with this pls ?
Best regards
Alex
Brutish Sailor
25th April 2010, 22:38
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.
tom2k7
17th July 2010, 18:39
thanks
odogg
20th July 2010, 18:52
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:
Live DJ? Yes->Display DJ profile/pic from djstatus database
Else:Auto DJ/Content->Display SAM Broadcaster php song info/album art
Else:Server offline->OMGZ /FAIL
http://www.dogglounge.com/djstatus/samphp.jpg
Example of chopped down SAM php song info
If anyone with php + javascript skills wanna help let me know.
odogg
21st July 2010, 03:53
http://www.odiggy.com/shoutcastscripts/djstatus/djstatus_v182b.jpg
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 (http://www.odiggy.com/shoutcastscripts/djstatus/djstatus_v.1.8.2b.zip)
Cheers
radiojames
21st July 2010, 10:01
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? :up:
odogg
21st July 2010, 12:36
Do you mind if i re-distribute this via my site?
Go for it! Hope it works alright. :)
spyhergaming
22nd July 2010, 15:50
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?
odogg
23rd July 2010, 02:31
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."
JatondaRadio
14th May 2011, 10:32
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 ><
000_000_00_00
2nd April 2012, 20:27
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.
thinktink
3rd April 2012, 02:52
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.
lilukj21
24th April 2012, 07:25
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
//////////////////////////////////////////////////////////////////////////////
// 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");
?>
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.