Results 1 to 2 of 2

Thread: [How To] - Display Shoutcast status on your website

  1. #1
    Join Date
    Apr 2012
    Posts
    320

    Default [How To] - Display Shoutcast status on your website

    In this article, we will show you a few different ways to display the status of your shoutcast server on yoru website. This includes current song, listeners, listener peak and other useful information.

    The first, would be to download and install the script that WHMSonic have already created or your use. It can be found at the following link: THE NEW SONICRADIO PLAYER SCRIPT ! v2.0.5 | Sonic Development.

    You can then edit the HTML code from it and place what you want on your website.

    The second, would be to use the included PHP Shoutcast Status script found in Softaculous.

    Using the Shoutcast Status script found in Softaculous:

    Step 1:
    Navigate to the Softaculous icon in your cPanel.

    Step 2:
    Click on Classes at the top left.

    Step 3:
    Find the Audio section on the left hand side, then go to page 2 of that section.

    Step 4:
    Hover over PHP Shoutcast Info and Click Install. Follow the install wizard through.

    After this, you will find 3 files in the location you specified in Step 4. They are as follows:
    1. ShoutcastInfo.class.php > The file needed to connect and get the info
    2. example1.php > This example shows how to collect the data in an array
    3. example2.php > This example shows how to present the data in a table

    Click to see example 1
    Click to see example 2

    To configure the script, you need to find the line in both example 1 and 2 as follows:
    PHP Code:
    $scs = &new ShoutcastInfo('yourdomain:yourport'); 
    Where yourdomain is your domain name and yourport is your radio port number. It will not look like the above, it will have a pre-filled example. The end result should look similar to this:
    PHP Code:
    $scs = &new ShoutcastInfo('gendns6.com:9988'); 
    The rest is simple HTML editing. You can then use these examples on your own pages to create your own look and feel to the display.

  2. #2
    garysherwood is offline Newbie
    Join Date
    Dec 2013
    Posts
    1

    Default

    thoose line u say to find i cant find

Similar Threads

  1. Simple and Elegant image display trick
    By Christopher in forum Web Design
    Replies: 1
    Last Post: 02-23-2011, 01:02 PM
  2. GH page display
    By rlhanson in forum General Chit-Chat
    Replies: 1
    Last Post: 05-05-2010, 12:25 PM
  3. [Shoutcast] Setup a Shoutcast server
    By sergey in forum Knowledge Base
    Replies: 0
    Last Post: 04-17-2008, 07:54 PM
  4. Server Status
    By rlhanson in forum WHM, Resellers, VPS and Dedicated Hosting Topics
    Replies: 6
    Last Post: 10-08-2007, 02:42 AM
  5. Haylee status
    By Matt in forum Outages and Scheduled Maintenance
    Replies: 3
    Last Post: 08-23-2006, 02:24 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16