Old 12th March 2004, 18:31   #81
GeJohnO
Senior Member
 
Join Date: Jan 2004
Posts: 186
I am not completely familiar with them but please check out mid-way down the first page on this topic:
http://forums.winamp.com/showthread....t=gd+libraries. That explains what they are and such. Sorry for the lack of understanding .
GeJohnO is offline   Reply With Quote
Old 12th March 2004, 20:12   #82
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
None of those words were in my code. I am going to email freepgs, and make sure that they have GD libraries installed. They should though, because DJ Rampages script worked fine.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 12th March 2004, 23:19   #83
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
protege, we both have the same host, so it should work. What is it that you are having troubles with?

Also, DJ too, try this:

PHP Code:
// strings can of course be replaced with your own idea's 
$string1"$song[0] - $song[1]"
$string2"$currentlisteners/$maxlisteners"


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 13th March 2004, 00:20   #84
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Quote:
Originally posted by ruffdawg
protege, we both have the same host, so it should work. What is it that you are having troubles with?

Also, DJ too, try this:

PHP Code:
// strings can of course be replaced with your own idea's 
$string1"$song[0] - $song[1]"
$string2"$currentlisteners/$maxlisteners"

I am using the EXACT code you gave in the first post of this thread.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 13th March 2004, 00:26   #85
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Well there is a little bit of editing that has to be done. Do you have a .png that you wish to use as a background?


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 13th March 2004, 01:27   #86
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
yes. it is at www.freepgs.com/unsignedonline/images/sicpic.png

Quote:
The GD library should be installed as others are using it

Thank you,
FreePgs.com Admin
PHP Code:
<?php 
// This Script was created by Ruff Dawg, in conjunction, and many thanks to, 
// DJ Rampage's script. Your Welcome in advance :) 

// This image you can call immediately from an html file in the image tag 
// (i.e. <image src="black.php">)    easy huh? 

    
Header("Content-type: image/png"); 
    
$im imagecreatefrompng("images/sigpic.png"); //change sigpic.png to your picture file 

// Fill in your own server information here:     
    
$host "66.55.236.196"// without [url]http://[/url] 
    
$port "8000"
    
$listenlink 'http://66.55.236.196:8000/listen.pls';  //make link to stream 
     
    
$fp fsockopen("$host"$port, &$errno, &$errstr30); //open connection 
    
if(!$fp) { 
        
$success=2;  //se-t if no connection 
    

    if(
$success!=2){ //if connection 
        
fputs($fp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //get 7.html 
        
while(!feof($fp)) { 
            
$page .= fgets($fp1000); 
        } 
        
fclose($fp); //close connection 
        
$page ereg_replace(".*<body>"""$page); //extract data 
        
$page ereg_replace("</body>.*"","$page); //extract data 
        
$numbers explode(",",$page); //extract data 
        
$currentlisteners=$numbers[0]; //set variable 
        
$connected=$numbers[1]; //set variable 

        
if($connected==1//if DSP is connected 
            
$wordconnected="yes"//set variable 
        
else //if no DSP connection 
            
$wordconnected="no"//set variable 
        
$peaklisteners=$numbers[2]; //set variable 
        
$maxlisteners=$numbers[3]; //set variable 
        
$reportedlisteners=$numbers[4]; //set variable 
    


     
     
// text colors also in RGB 
    
$text_color1 ImageColorAllocate($im,0,187,255); 
    
$text_color2 ImageColorAllocate($im,0,0,255); 
     
    if(
$success!=&& $connected==1){ 

// song information is splitted in artist - title: 
// This requires consistent artist & title format (no ' - ' in title/artist) 
// else you can use $numbers[6] as current song info below 
        
$song=explode(" - ",$numbers[6]); 
         
// strings can of course be replaced with your own idea's 
        
$string1$song[0]; 
        
$string2$song[1]; 
        
$string3"$currentlisteners/$maxlisteners"
    } 
    else { 
        
$string1"Ruff Dawg Radio"
        
$string2"IS"
        
$string3"Temporarily Offline"
    } 
     
// positioning below 
//             (image,font (from 1 to 5),starting x position, y position,line of text,color) 

    
$px = (imagesx($im)-5*strlen($string1))/2
    
ImageString($im,5,60,35,$string1,$text_color1); 
    
$px = (imagesx($im)-5*strlen($string2))/2
    
ImageString($im,5,50,57,$string2,$text_color1); 
    
$px = (imagesx($im)-5*strlen($string3))/2
    
ImageString($im,5,85,80,$string3,$text_color1); 
    
ImagePng($im); 

?>

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 13th March 2004, 01:38   #87
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Try this one:

PHP Code:
 <?php 
// This Script was created by Ruff Dawg, in conjunction, and many thanks to, 
// DJ Rampage's script. Your Welcome in advance

// This image you can call immediately from an html file in the image tag 
// (i.e. <image src="black.php"> )    easy huh? 

    
Header("Content-type: image/png"); 
    
$im imagecreatefrompng("images/sigpic.png"); //change sigpic.png to your picture file 

// Fill in your own server information here:      
    
$host "66.55.236.196"// without http://
    
$port "8000"
    
$listenlink 'http://66.55.236.196:8000/listen.pls';  //make link to stream 
      
    
$fp fsockopen("$host"$port, &$errno, &$errstr30); //open connection 
    
if(!$fp) { 
        
$success=2;  //se-t if no connection 
    

    if(
$success!=2){ //if connection 
        
fputs($fp,"GET /7.html HTTP/1.0\r\nUser-Agent: XML Getter (Mozilla Compatible)\r\n\r\n"); //get 7.html 
        
while(!feof($fp)) { 
            
$page .= fgets($fp1000); 
        } 
        
fclose($fp); //close connection 
        
$page ereg_replace(".*<body>"""$page); //extract data 
        
$page ereg_replace("</body>.*"","$page); //extract data 
        
$numbers explode(",",$page); //extract data 
        
$currentlisteners=$numbers[0]; //set variable 
        
$connected=$numbers[1]; //set variable 

        
if($connected==1//if DSP is connected 
            
$wordconnected="yes"//set variable 
        
else //if no DSP connection 
            
$wordconnected="no"//set variable 
        
$peaklisteners=$numbers[2]; //set variable 
        
$maxlisteners=$numbers[3]; //set variable 
        
$reportedlisteners=$numbers[4]; //set variable 
    


      
      
// text colors also in RGB 
    
$text_color1 ImageColorAllocate($im,0,187,255); 
    
$text_color2 ImageColorAllocate($im,0,0,255); 
      
    if(
$success!=&& $connected==1){ 

// song information is splitted in artist - title: 
// This requires consistent artist & title format (no ' - ' in title/artist) 
// else you can use $numbers[6] as current song info below 
        
$song=explode(" - ",$numbers[6]); 
          
// strings can of course be replaced with your own idea's 
        
$string1$song[0]; 
        
$string2$song[1]; 
        
$string3"$currentlisteners/$maxlisteners"
    } 
    else { 
        
$string1"Ruff Dawg Radio"
        
$string2"IS"
        
$string3"Temporarily Offline"
    } 
      
// positioning below 
//             (image,font (from 1 to 5),starting x position, y position,line of text,color) 

    
$px = (imagesx($im)-5*strlen($string1))/2
    
ImageString($im,3,5,5,$string1,$text_color1); 
    
$px = (imagesx($im)-5*strlen($string2))/2
    
ImageString($im,3,5,30,$string2,$text_color1); 
    
$px = (imagesx($im)-5*strlen($string3))/2
    
ImageString($im,3,5,50,$string3,$text_color1); 
    
ImagePng($im); 

?>


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 13th March 2004, 04:44   #88
DJ too
Member
 
Join Date: Aug 2003
Posts: 79
Send a message via AIM to DJ too
nope.
DJ too is offline   Reply With Quote
Old 13th March 2004, 05:11   #89
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
There is no DNAS visible at http://66.55.236.196:8000

FesterHead is offline   Reply With Quote
Old 13th March 2004, 05:15   #90
DJ too
Member
 
Join Date: Aug 2003
Posts: 79
Send a message via AIM to DJ too
what about at http://amv.x24hr.com:8000/ ?
maybe i'm broadcasting a lie.
stupid png.
DJ too is offline   Reply With Quote
Old 13th March 2004, 09:17   #91
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
hah, fester, I dont see the need to have server running, it should still say server is offline. plus imin the middle of redownloading al my music, so I dont plan to be ready to broadcast for another week.

Ruff Dawg: nope. didnt work.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 13th March 2004, 15:13   #92
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Protege, could you plz post the .php adddress, thnx.


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 13th March 2004, 21:33   #93
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
www.freepgs.com/unsignedonline/sigcode.php

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 14th March 2004, 23:02   #94
sh33zo
Junior Member
 
Join Date: Dec 2003
Location: 514
Posts: 18
Thanx for the code dude!
I'm wondering if festerhead is gonna have a problem with my pik?
Plz let me know fest!!
sh33zo is offline   Reply With Quote
Old 15th March 2004, 00:59   #95
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
sh33zo, I believe that your image is within the acceptable size limit, but yes, get word from Fester.
If anyone says anything before he responds, just take it down, until fester or someone says otherwise.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 16th March 2004, 18:45   #96
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Quote:
Originally posted by FesterHead
FYI:
A 363px X 363px signature image will get whacked on sight.
So, i reccomend shrinking the pic a little... but it is sweet lookin'!


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 18th March 2004, 14:20   #97
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Well, they said they have installed GD 1.x already, and I get this:

www.unsigned-online.com/sigcode.php

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 18th March 2004, 15:14   #98
FesterHead
Alumni
 
FesterHead's Avatar
 
Join Date: Sep 2001
Location: Maui, Hawaii
Posts: 14,108
Do a "view source" and fix the errors.

FesterHead is offline   Reply With Quote
Old 18th March 2004, 15:54   #99
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Yes, I just noticed I have the wrong picture listed, I will fix it when I get home in an hour or two, then I will post if I can't get it fixed.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 18th March 2004, 22:56   #100
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
The wrong pic listed, lol, i knew it would be something basic. BTW everyone, you can change the text color on the script. i just use #0099CC since it corresponds with my site.


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 18th March 2004, 23:46   #101
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
i fixed it, but it still says that!

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 19th March 2004, 00:44   #102
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
Where do you change the text color at. i don't see that number anywhere in the script.

The PC Radio Network: An upbeat variety of the 50s-Today!
PC Radio Net is offline   Reply With Quote
Old 19th March 2004, 00:50   #103
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
i think its in Red green blue...

get your hexadecimal color code, and convert it to RGB here, http://www.1stsitefree.com/rgb_hex.htm

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 25th March 2004, 20:27   #104
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Protege, try putting the .png in the same folder as the .php, and take out 'images/' in the .png address. Good luck.

And yes, you were right, the text color is in RGB.


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 26th March 2004, 19:09   #105
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
hah, still doesnt work!

I have no clue whats going on here now!!!! GRR.

Haha, gimme some bandwidth . I have no clue why it isnty working... we have the SAME host, with the same stuff enabled, it just doesnt make any sense at all!!

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 27th March 2004, 18:42   #106
InfernoRadio
Junior Member
 
InfernoRadio's Avatar
 
Join Date: Mar 2004
Posts: 6
Hi, just opened a radio station called the Inferno Hour. I wanted to make a signature like i see all of you have but i do not know where you are putting these files and images to? you said php? what programs do you use i am a very new at this and any help would be appreciated. Thanks
InfernoRadio is offline   Reply With Quote
Old 27th March 2004, 18:47   #107
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
You upload the files to your webhost.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 27th March 2004, 18:55   #108
InfernoRadio
Junior Member
 
InfernoRadio's Avatar
 
Join Date: Mar 2004
Posts: 6
i am running my own server on my computer what files do i upload and to where??
InfernoRadio is offline   Reply With Quote
Old 27th March 2004, 19:09   #109
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Do you mean you arte hosting your files on your computer, or you are running the server for the radio station on it?

Webhost, and server are two completely different things.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 27th March 2004, 19:14   #110
InfernoRadio
Junior Member
 
InfernoRadio's Avatar
 
Join Date: Mar 2004
Posts: 6
i did the be a server and be a dj and all those files are on my computer i do not have a website.
InfernoRadio is offline   Reply With Quote
Old 27th March 2004, 20:02   #111
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Yes, well you still need a webhost to use any of the status checkers.

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 27th March 2004, 20:19   #112
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
And by the way yall... I still havent got mine fixed...

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 27th March 2004, 20:39   #113
InfernoRadio
Junior Member
 
InfernoRadio's Avatar
 
Join Date: Mar 2004
Posts: 6
I don't want a website i want this to be put on my msn group can i do that??

Last edited by InfernoRadio; 27th March 2004 at 20:55.
InfernoRadio is offline   Reply With Quote
Old 27th March 2004, 22:56   #114
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
You need a webhost/server of somesort that supports PHP. A good free PHP host that I reccomend is www.freepgs.com You need to take the code, edit it to suit your needs, and save it as a .PHP in notepad. Upload it to your server/webhost, and point to it as <filename>.php

Hope this helps.


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 27th March 2004, 23:06   #115
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
I should point out that http://freepgs.com is no longer completely free. there is a one time fee of $3 to purchase 50mbs of space with php support and no ads. Good thing I got in before that changed.

The PC Radio Network: An upbeat variety of the 50s-Today!
PC Radio Net is offline   Reply With Quote
Old 27th March 2004, 23:13   #116
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Ruff Dawg... Just to let ya know... I finished up my site, and my playlist. and I got to working on this code. I found the problem. The Code called "sigpic.png"

I looked at the picture.... www.unsigned-online.com/sigpic.png

it says "Page cannot be found". I wonder why. I looked into it, and the picture was accidentally named "sicpic.png" I renamed it, and now it works. Thank you soooo much!



edit:

So exactly HOW do I position the thing?

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 28th March 2004, 03:01   #117
DJ too
Member
 
Join Date: Aug 2003
Posts: 79
Send a message via AIM to DJ too
damn this thread is still going?
i had to edit out some of the //comments to get this script to work right.
DJ too is offline   Reply With Quote
Old 28th March 2004, 03:10   #118
protegechris
Forum Queen
 
protegechris's Avatar
 
Join Date: Feb 2004
Posts: 6,635
Maha! I figured it out!

yeah, i'm back.
protegechris is offline   Reply With Quote
Old 28th March 2004, 06:04   #119
ruffdawg
Major Dude
 
ruffdawg's Avatar
 
Join Date: Feb 2003
Location: Mississauga, Ontario, Canada (Sauga Represent!)
Posts: 565
Heh. see, I knew it. It's always somehing very simple. I always have to tell people that lol. Good Job.


Playin' the best classic rock trax
www.ruffdawgradio.com
ruffdawg is offline   Reply With Quote
Old 30th March 2004, 20:43   #120
InfernoRadio
Junior Member
 
InfernoRadio's Avatar
 
Join Date: Mar 2004
Posts: 6
For a Webhost can you use Yahoo geocities??? They are free and you can upload files to it and it is totally free
InfernoRadio 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