Page 4 of 6 FirstFirst 123456 LastLast
Results 31 to 40 of 53
  1. #31
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    GD Would just be

    PHP Code:
    <?php
    header
    ("Content-Type: image/gif");
    include(
    'albumart.php');
    $album getAlbumArt("Artist Name - Song Name");
    $image imagecreatefromjpeg($album);
    imagegif($image);
    ?>
    Change
    header("Content-Type: image/gif");
    the GIF to whatever file format you want
    and change
    imagegif($image)
    change the gif to whatever file format you want.

  2. #32
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    So, does that help you Edzy?

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  3. #33
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Im sure all of our posts helped him

  4. #34
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Th0m4s View Post
    So, does that help you Edzy?
    Does That Help Me?

    That More Than Helps Me!

    Thanks SO Much Guyzz!
    EDTALKING


  5. #35
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Edit: this is so irritating lolz sam 2 cant display the artist seperatly and not on stats either so it cant work unless you call the file

    e.g the+ordinary+boys

    but it still has a space and a dash after it so its a bit of a bugger but anyway

    EDTALKING


  6. #36
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    Whats the link to your stats and I can help you?

    Don't worry about on sam 2 i can fix it if you post your entire stats.php or whatever you named it script

  7. #37
    Join Date
    Mar 2005
    Location
    Leeds
    Posts
    3,423
    Tokens
    0

    Latest Awards:

    Default

    How is it displayed? If its like "Songname - Artist" you could use explode()

  8. #38
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Okaiz

    config_radio.php
    PHP Code:
    <?php
    $scdef 
    "Anyhabbo"
    $scip "66.225.228.179";
    $scport "8004"
    $scpass "NOT TELLING"
    ?>
    radio_stats.php
    PHP Code:
    <?php
    // Shoutcast Server Stats
    // Parses shoutcasts xml to make an effective stats thing for any website
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk
    // Please refer to the readme file for use.
    // ©2004-2005 Coleman Hamilton http://www.dj-coleman.com
    // Coleman Hamilton added:
    // Add-On MAXLISTNERS insead of the / 10 MAXLISTENERS which was set, and the BITRATE add-on.
    // Online and Offline graphics, and add-on code.
    // Better HTML Script.
    // Do Not Try To Edit This Only Unless You Know What You're Doing!!!!!!!
    include('config_radio.php');
    $scfp fsockopen("$scip"$scport, &$errno, &$errstr30);
     if(!
    $scfp) {
      
    $scsuccs=1;
    echo
    ''.$scdef.' is Offline'
     }
    if(
    $scsuccs!=1){
     
    fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
     while(!
    feof($scfp)) {
      
    $page .= fgets($scfp1000);
     }
    ######################################################################################################################
    /////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    //define  xml elements
     
    $loop = array("STREAMSTATUS""BITRATE""SERVERTITLE""CURRENTLISTENERS""MAXLISTENERS""BITRATE");
     
    $y=0;
     while(
    $loop[$y]!=''){
      
    $pageed ereg_replace(".*<$loop[$y]>"""$page);
      
    $scphp strtolower($loop[$y]);
      $
    $scphp ereg_replace("</$loop[$y]>.*"""$pageed);
      if(
    $loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
       $
    $scphp urldecode($$scphp);
    // uncomment the next line to see all variables
    //echo'$'.$scphp.' = '.$$scphp.'<br>';
      
    $y++;
     }
    //end intro xml elements
    ######################################################################################################################
    ######################################################################################################################
    /////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    //get song info and history
     
    $pageed ereg_replace(".*<SONGHISTORY>"""$page);
     
    $pageed ereg_replace("<SONGHISTORY>.*"""$pageed);
     
    $songatime explode("<SONG>"$pageed);
     
    $r=1;
     while(
    $songatime[$r]!=""){
      
    $t=$r-1;
      
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]);
      
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]);
      
    $song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]);
      
    $song[$t] = ereg_replace("</TITLE>.*"""$song[$t]);
      
    $song[$t] = urldecode($song[$t]);
      
    $dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page);
      
    $dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed);
    $r++;
     }
    //end song info
    fclose($scfp);
    }
    //display stats
    if($streamstatus == "1"){
    //you may edit the html below, make sure to keep variable intact
    echo('
    <html>
    <head>
    <body background="images/saysbg.gif">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <link rel="stylesheet" type="text/css" href="http://www.anyhabbo.com/habbozoo/css.css">
    <title>'
    .$scdef.'</title>
    </head>
     
    <b>Current Presenter:</b> '
    .$servertitle.'<br \><b>Current Listeners:</b> '.$currentlisteners.' / '.$maxlisteners.'<br \><b>Current Song:</b> '.$song[0].'</font>&nbsp&nbsp&nbsp<br /><a href="radio_stats.php">[REFRESH]</a>
    </body>
    </html>'
    );
    }
    if(
    $streamstatus == "0")
    {
    //you may edit the html below, make sure to keep variable intact
    echo'
    <html>
    <head>
    <body background="images/saysbg.gif">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Radio Server Is Offline</title>
    </head>
    <font color="#6ABAF6">
    <center>
    <img src="images/offline.jpg"><br>
    <a href="radio_stats.php">[REFRESH]</a></center>
    </body>
    </html>'
    ;
    }
    ?>
    <style type="text/css">
    <!--
    body,td,th {
     font-family: Verdana, Arial, Helvetica, sans-serif;
     font-size: 10px;
    }
    -->
    </style>
    EDTALKING


  9. #39
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php
    // Shoutcast Server Stats
    // Parses shoutcasts xml to make an effective stats thing for any website
    // ©2004-2005 Daniel Brown http://www.gmtt.co.uk
    // Please refer to the readme file for use.
    // ©2004-2005 Coleman Hamilton http://www.dj-coleman.com
    // Coleman Hamilton added:
    // Add-On MAXLISTNERS insead of the / 10 MAXLISTENERS which was set, and the BITRATE add-on.
    // Online and Offline graphics, and add-on code.
    // Better HTML Script.
    // Do Not Try To Edit This Only Unless You Know What You're Doing!!!!!!!
    include('config_radio.php');
    $scfp fsockopen("$scip"$scport, &$errno, &$errstr30);
     if(!
    $scfp) {
      
    $scsuccs=1;
    echo
    ''.$scdef.' is Offline'
     }
    if(
    $scsuccs!=1){
     
    fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n");
     while(!
    feof($scfp)) {
      
    $page .= fgets($scfp1000);
     }
    ######################################################################################################################
    /////////////////////////part 1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    //define  xml elements
     
    $loop = array("STREAMSTATUS""BITRATE""SERVERTITLE""CURRENTLISTENERS""MAXLISTENERS""BITRATE");
     
    $y=0;
     while(
    $loop[$y]!=''){
      
    $pageed ereg_replace(".*<$loop[$y]>"""$page);
      
    $scphp strtolower($loop[$y]);
      $
    $scphp ereg_replace("</$loop[$y]>.*"""$pageed);
      if(
    $loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE)
       $
    $scphp urldecode($$scphp);
    // uncomment the next line to see all variables
    //echo'$'.$scphp.' = '.$$scphp.'<br>';
      
    $y++;
     }
    //end intro xml elements
    ######################################################################################################################
    ######################################################################################################################
    /////////////////////////part 2\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    //get song info and history
     
    $pageed ereg_replace(".*<SONGHISTORY>"""$page);
     
    $pageed ereg_replace("<SONGHISTORY>.*"""$pageed);
     
    $songatime explode("<SONG>"$pageed);
     
    $r=1;
     while(
    $songatime[$r]!=""){
      
    $t=$r-1;
      
    $playedat[$t] = ereg_replace(".*<PLAYEDAT>"""$songatime[$r]);
      
    $playedat[$t] = ereg_replace("</PLAYEDAT>.*"""$playedat[$t]);
      
    $song[$t] = ereg_replace(".*<TITLE>"""$songatime[$r]);
      
    $song[$t] = ereg_replace("</TITLE>.*"""$song[$t]);
      
    $song[$t] = urldecode($song[$t]);
      
    $dj[$t] = ereg_replace(".*<SERVERTITLE>"""$page);
      
    $dj[$t] = ereg_replace("</SERVERTITLE>.*"""$pageed);
    $r++;
     }
    //end song info
    fclose($scfp);
    }
    //display stats
    if($streamstatus == "1"){
    //you may edit the html below, make sure to keep variable intact
    $name explode(" - "$song[0]);
    $artist $name[0];
    $url "http://www.ffwbmarion.com/album.php?artist=$artist";
    $url eregi_replace(" ""+"$url);
    $thing file_get_contents($url);
    echo(
    "
    <html>
    <head>
    <body background=\"images/saysbg.gif\">
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
    <link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.anyhabbo.com/habbozoo/css.css\">
    <title>'.
    $scdef.'</title>
    </head>
    <img src=
    $thing>
    <b>Current Presenter:</b> '.
    $servertitle.'<br \><b>Current Listeners:</b> '.$currentlisteners.' / '.$maxlisteners.'<br \><b>Current Song:</b> '.$song[0].'</font>&nbsp&nbsp&nbsp<br /><a href=\"radio_stats.php\">[REFRESH]</a>
    </body>
    </html>"
    );
    }
    if(
    $streamstatus == "0")
    {
    //you may edit the html below, make sure to keep variable intact
    echo'
    <html>
    <head>
    <body background="images/saysbg.gif">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Radio Server Is Offline</title>
    </head>
    <font color="#6ABAF6">
    <center>
    <img src="images/offline.jpg"><br>
    <a href="radio_stats.php">[REFRESH]</a></center>
    </body>
    </html>'
    ;
    }
    ?>
    <style type="text/css">
    <!--
    body,td,th {
     font-family: Verdana, Arial, Helvetica, sans-serif;
     font-size: 10px;
    }
    -->
    </style>

  10. #40
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Thanks sooooooo much

    would u also be able to post your album.php
    EDTALKING


Page 4 of 6 FirstFirst 123456 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •