Sig problem

Ask questions, request features, or just complement us about our software and services.
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Sig problem

Post by PCRadio »

I'm trying to get my sig working. I uploaded everything, but I seem to be getting errors. See for yourself by going to:

http://www.freepgs.com/patcook/catcher.php

What scripts do I change, and where do i change them at? I'm new to php and need a little help. Where do I enter my server and port info?
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

you need to install Radio Toolbox and set up the username and password in the general tab then enter the url above in the script service window.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I did that as soon as I installed it. I'm using the same usernaname and password I use for the forums. Do I have to set up anything different and how do I do that?

Pat
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

all that needs to be identical is the username and password you setup in Radio Toolbox and the Username and password configuration in the catcher.php's configuration file.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

Ok, so hopefully my problem is sloved once I can figure out where to put that info in at. I can't find anything that says something like Enter username and password here. Where in the script do I type that in?
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

you should have a file called config.php, this is where you do all configuration for catcher.php
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

I'm looking in the config.php and there's nothing in there that says something like "enter ip, username or password here".

Pat
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

read the following http://www.radiotoolbox.com/docs/index. ... 1&doc_id=2

also peruse the Frequently Asked Questions. This will help you understand how Radio Toolbox relates to the catcher.php
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

Perhaps I'm not being clear enough, so Im including an examle from the current script I have running on my site and my shoutast forum sig. Inside the cript, the only thing I had to change was:

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

// Fill in your own server information here:
$host = "pcradionetwork.no-ip.com"; // without http://
$port = "8000";
$listenlink = 'http://pcradionetwork.no-ip.com:8000/listen.pls'; //make link to stream

So, where in the catcher script is that?
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

you must have our script confused with someone elses. Our script does not need the address of your shoutcast server. All of this information comes from the Radio Toolbox application.

This is all that needs to be configured on your config.php file

$rtb_user
$rtb_pass

these values must match those entered in the General Screen of the options dialog in Radio Toolbox.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

Everything is set right and reuploaded to the web host. All I'm getting when I go to view catcher,php is exactly the same thing as before when you click on that link:

Copyright RadioToolBox.com another great application from Jay Krivanek
well if you see this then php is installed and catcher can at least be parsed, maybe try debugging me by adding ?debug=USERNAME in the url field
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

yea catcher.php is meant for Radio Toolbox only, the included example scripts are meant for your users to view the stats that come in through catcher.php from Radio Toolbox. This script is not a stand alone script, it requires Radio Toolbox to interface with it. When you go to catcher.php in your browser you are basically seeing the backend. The front end would be the output of that script, includes.php which allows any php parsed document to transfer customize those variables into your pages. View the example.php scripts for implementation ideas.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

So, what do I have to do then to get that green box to come up like you have at the bottom of the post? When I use the <img src tag and point to songband1.png, all i get is the box. There's nothing in it?
User avatar
Jay
Will work for food (Administrator)
Posts: 3025
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Post by Jay »

http://www.radiotoolbox.com/docs/faq/index.php?p_id=1#6

please read the following entry

You will need to setup the whatimplayin.php script on your server and configure it to pull stats from your includes.php file.
- Jay
PCRadio
Posts: 29
Joined: Mon Jun 23, 2003 12:17 pm
Location: Mechanicsburg, PA
Contact:

Post by PCRadio »

All i get when I go to that php page, all I get is this code:

php include(includes.php); header(Content-Type imagepng); $im = imagecreatefrompng(songband1.png); if ($im) { ImageString($im, 1, 17, 4, Playing .$current_song, 2); ImageString($im, 1, 17, 17, There are .$listeners, 2); ImagePNG($im); }
Post Reply