Old 10th January 2007, 17:05   #1
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
How do I do this?

I have a question on something I saw on another radio site.

Is there a code for me to do this here:
?

If so, where can I get the code from?

The picture above shows this:

The Dj's mini pic<---(it changes when there is a new dj)
The Station's request line<---(Stays the same since its the stations IM)
The Dj's yahoo ID/IM<---(it changes when there is a new dj)

If there is a code for this, where would I find it at and what would I put (what it is called) into search engines /hot scripts etc.

What is it called that I want for my site?

xhilaration is offline   Reply With Quote
Old 10th January 2007, 18:42   #2
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
anyone? any idea how to do this what I am asking?, sorry if it will take some time but there should be some here that could help me with it lol

xhilaration is offline   Reply With Quote
Old 10th January 2007, 22:04   #3
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
Yep. It can be done as you can clearly tell. You are probably going to need to php host...

I don't know how to do it, but this person in this thread said that they could get it done.

http://forums.winamp.com/showthread....hreadid=263246
fc*uk is offline   Reply With Quote
Old 11th January 2007, 01:18   #4
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by fc*uk
Yep. It can be done as you can clearly tell. You are probably going to need to php host...

I don't know how to do it, but this person in this thread said that they could get it done.

http://forums.winamp.com/showthread....hreadid=263246
Yuppers my host supports PHP

Fc*uk, I think you missunderstood me , what I want is this, please click on the link: www.stormsurgeradio.com

xhilaration is offline   Reply With Quote
Old 11th January 2007, 03:12   #5
jwhalen
Major Dude
 
jwhalen's Avatar
 
Join Date: Mar 2003
Location: ct
Posts: 1,203
Send a message via AIM to jwhalen
Quote:
Originally posted by fc*uk
Yep. It can be done as you can clearly tell. You are probably going to need to php host...

I don't know how to do it, but this person in this thread said that they could get it done.

http://forums.winamp.com/showthread....hreadid=263246

the person in that thread seems to have had a melt-down

jwhalen is offline   Reply With Quote
Old 11th January 2007, 12:17   #6
tuckerm
Forum Emo
 
tuckerm's Avatar
 
Join Date: Mar 2005
Posts: 8,364
Yeah:

http://forums.winamp.com/showthread....postid=2098817
tuckerm is offline   Reply With Quote
Old 11th January 2007, 12:58   #7
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
dang, he reported all 120 of his posts, he must have been one crazy LOONEY lol

xhilaration is offline   Reply With Quote
Old 11th January 2007, 14:10   #8
Greg_E
Major Dude
 
Join Date: Nov 2006
Location: USA
Posts: 1,687
Do you think some of it might be in one of the web archives? Could you then take the source of the page apart to see how he did it? Just grasping at straws...

Your mileage may vary!
Greg_E is offline   Reply With Quote
Old 11th January 2007, 14:14   #9
Greg_E
Major Dude
 
Join Date: Nov 2006
Location: USA
Posts: 1,687
Wholly crap! I just graduated

slowly escalating the penis scale
http://www.urbandictionary.com/define.php?term=e-penis

Your mileage may vary!
Greg_E is offline   Reply With Quote
Old 11th January 2007, 14:15   #10
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by Greg_E
Do you think some of it might be in one of the web archives? Could you then take the source of the page apart to see how he did it? Just grasping at straws...
If ya talking about what I asked first, I tried that, but I contacted the person that did it since it was misunderstood what I was asking .

I contacted a gentlemen and he has said that he will help me. I'll try to let ya all know if I got it to work in this thread so another one won't be started and clogging up forum space

xhilaration is offline   Reply With Quote
Old 12th January 2007, 00:00   #11
Thebig429
Senior Member
 
Thebig429's Avatar
 
Join Date: Apr 2006
Location: Right here!
Posts: 358
Heres the source, no i dont know anything about php, but i can grab the source


<html>
<META HTTP-EQUIV="REFRESH" CONTENT="121">
<head>
<title>Storm Surge Radio Status Page</title>
<style type="text/css"> .SongTitle { color: #0000ff;} A.SongTitle { color: #0000ff; } A:hover.SongTitle { color: #0000ff; } </style></head>
<body bgcolor="#000000" text="#ffff00" link="#0000ff" vlink="#0000ff">
<table border="1" width="100%" id="table1" cellspacing="0" bgcolor="#80a8c2" bordercolor="#BBBBBB">
<td align="center" valign="top">
<p align="center">
<img border="0" src="http://www.stormsurgeradio.com/images/dj_simette.jpg" width="100" height="100" align="left">

<font size="2">
<a title="IM storm_request" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=storm_request">Request Line:</a></font><br>
<a title="IM storm_request" href="ymsgr:sendim?storm_request">
<img border="0" src="http://opi.yahoo.com/online?u=storm_request&m=g&t=1"></a></p>
<p align="center">
<font size="2">
<a title="IM dj_simette" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=dj_simette">
IM The DJ (dj_simette)</a></font><br>

<a title="IM dj_simette" href="ymsgr:sendim?dj_simette">
<img border="0" src="http://opi.yahoo.com/online?u=dj_simette&m=g&t=1"></a><br>
</p>
</tr>
</table>
</html>

Cadillac Radio
Classic rock from the 60s to the 90s


listen here

Talk Webcasting .com - The Webcaster's Second Home
Thebig429 is offline   Reply With Quote
Old 12th January 2007, 00:18   #12
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
my eyes might be fooling me, but I see no php in there either.... neat.
fc*uk is offline   Reply With Quote
Old 13th January 2007, 12:23   #13
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by Thebig429
Heres the source, no i dont know anything about php, but i can grab the source


<html>
<META HTTP-EQUIV="REFRESH" CONTENT="121">
<head>
<title>Storm Surge Radio Status Page</title>
<style type="text/css"> .SongTitle { color: #0000ff;} A.SongTitle { color: #0000ff; } A:hover.SongTitle { color: #0000ff; } </style></head>
<body bgcolor="#000000" text="#ffff00" link="#0000ff" vlink="#0000ff">
<table border="1" width="100%" id="table1" cellspacing="0" bgcolor="#80a8c2" bordercolor="#BBBBBB">
<td align="center" valign="top">
<p align="center">
<img border="0" src="http://www.stormsurgeradio.com/images/dj_simette.jpg" width="100" height="100" align="left">

<font size="2">
<a title="IM storm_request" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=storm_request">Request Line:</a></font><br>
<a title="IM storm_request" href="ymsgr:sendim?storm_request">
<img border="0" src="http://opi.yahoo.com/online?u=storm_request&m=g&t=1"></a></p>
<p align="center">
<font size="2">
<a title="IM dj_simette" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=dj_simette">
IM The DJ (dj_simette)</a></font><br>

<a title="IM dj_simette" href="ymsgr:sendim?dj_simette">
<img border="0" src="http://opi.yahoo.com/online?u=dj_simette&m=g&t=1"></a><br>
</p>
</tr>
</table>
</html>
Not like I tried that!

What you got is the source code of the page, but the item I want, its in an inframe:

http://www.stormsurgeradio.com/dj.php

So that page in question is in PHP:
PHP Code:
<html>
<
META HTTP-EQUIV="REFRESH" CONTENT="121">
<
head>
 <
title>Storm Surge Radio Status Page</title>
     <
style type="text/css">        .SongTitle    color#0000ff;}    A.SongTitle    { color: #0000ff; }    A:hover.SongTitle    { color: #0000ff; }    </style></head>
<body bgcolor="#000000" text="#ffff00" link="#0000ff" vlink="#0000ff">
<
table border="1" width="100%" id="table1" cellspacing="0" bgcolor="#80a8c2" bordercolor="#BBBBBB">
        <
td align="center" valign="top">
        <
p align="center">
        <
img border="0" src="http://www.stormsurgeradio.com/images/dj_simette.jpg" width="100" height="100" align="left">
        <
font size="2">
        <
a title="IM storm_request" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=storm_request">Request Line:</a></font><br>
        <
a title="IM storm_request" href="ymsgr:sendim?storm_request">
        <
img border="0" src="http://opi.yahoo.com/online?u=storm_request&m=g&t=1"></a></p>
        <
p align="center">
        <
font size="2">
        <
a title="IM dj_simette" target="_blank" href="http://messenger.yahoo.com/edit/send/?.target=dj_simette">
        
IM The DJ (dj_simette)</a></font><br>
        <
a title="IM dj_simette" href="ymsgr:sendim?dj_simette">
        <
img border="0" src="http://opi.yahoo.com/online?u=dj_simette&m=g&t=1"></a><br>
        </
p>
    </
tr>
</
table>
</
html
If you see the url I have given in this post, its in php. the guy I have talked to said it is in PHP. In which I haven't spoken to yet.

Also, the link I have given here on this post, the code refreshes and when there is a new dj onair, the image and their yahoo ID changes to theirs.

I haven't got any word from the guy yet. He told me to contact him the next day, I did nothing as of yet.

I'll keep updating you here.


Also, even tho the code above has the html extension, the page itself is in
PHP Code:
PHP 

xhilaration is offline   Reply With Quote
Old 13th January 2007, 15:48   #14
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
I believe that you mean iframe.... [iframe] crap crap crap code code code [/iframe] .... not necessarily php either.... iframes kinda bridge the gap.....
fc*uk is offline   Reply With Quote
Old 13th January 2007, 17:17   #15
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by fc*uk
I believe that you mean iframe.... [iframe] crap crap crap code code code [/iframe] .... not necessarily php either.... iframes kinda bridge the gap.....
I know lol

I was just saying that the source code the other poster put on here, thats the source code of the main (home page) Not the page of the item in question lol.

They used an iframe for the dj.php page. I'm still waiting on the guy to help me. He said its in php and my hosting supports php.

Hopefully he yahoo's me soon, don't want him to forget or myself forget.

Anyways, I'm waitin on the guys so, I'll keep updateing you if I hear and or get the php code

xhilaration is offline   Reply With Quote
Old 13th January 2007, 17:49   #16
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,479
I'm sure what the big deal is here:

The PHP script in question is probably totally independent of SHOUTcast for several reasons: It only outputs simple html -- how it figures out who the DJ is could come from a mySQL database or something else (like a dj profile page), or simply flat HTML pages that are displayed based upon time of day (you would need PHP for this) -- Also, notice that it contains Yahoo messenger IDs, and a DJ image -- SHOUTcast knows nothing about Yahoo, or images, so almost 100% of the info that the script outputs is external to information that could be found at a SHOUTcast DNAS.

For all you know, the script may not "do" very much at all, and most likely there's a database behind it to fill in the blanks.

If I were you, I'd look for another method to get the effect you want because this one appears to have a great deal of other automation and integration of different sources going on. It's probably simple PHP, but that's only because the admins have done a lot of information gathering from the DJs and organization ahead of time to make the script's work easy.

Just my two cents.
djSpinnerCee is offline   Reply With Quote
Old 14th January 2007, 01:45   #17
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,479
I think I have an "idea" that may work for you or anyone looking to do this.

You have to know a little PHP, and a little HTML, but it's really easy:

Just get any PHP that can get the current stream title from your DNAS -- This is your DJ's "tag," so you'll have to make sure that your DJ's comply, by always using at least their tag when they name their stream (if they want the custom DJ page anyway)...

Once you have the stream title, have the PHP scan for DJ names using a PHP CASE statement:

PHP Code:
// The PHP script has already retrieved the 
// stream title as $streamtitle
//
// I have three DJs:
//     xhilaration, djspinnercee, and fc*uk
//
// Just like all usernames, they must be unique, and not
// substrings of each other.
//
// the djnames are what I need to find within $streamtitle
// to know who is the current DJ
//
// found or not, utlimately I wll send a redirect to a 
// plain, pre created HTML that is auto-refreshing to the
// PHP script.
//

$st=strtolower($streamtitle); //the lowercase version of $streamtitle.

switch (TRUE) {
   case ((
strpos($st,'xhilaration')+1)>0):
      
header('Location: http://somehttp.com/x_hilaration.html');
      return;
      break;
   case ((
strpos($st,'fc*uk')+1)>0):
      
header('Location: http://somehttp.com/fc_uk.html');
      return;
      break;
   case ((
strpos($st,'djspinnercee')+1)>0):
      
header('Location: http://somehttp.com/dj_spinner_cee.html');
      return;
      break;
   default: 
// no match: send em to a generic station page...
      
header('Location: http://somehttp.com/stationID.html');
      return;
      break;
}

//all done. 


Each HTML file can be a copy of exactly what you have posted before, just change the names, Y!/AOL/MSN IDs and URLs for images. The META refresh code url would point to your PHP script:

<meta http-equiv="refresh" content="180; url=http://somehttp.com/php/djstatus.php">

You can add as many DJs as you like (just add a new case section and .html file), and as long as the DJ tag is found in the stream title, it will always be up-to-date (the default HTML file will be shown in case there is no match.

The iFrame target would be the PHP script which will return a redirect to the static HTML pages you have created already.

This requires very little work to be done by the PHP script, since the visitor's browser is doing all of the refreshing, and the PHP is only sending simple redirect commands to the visitors, who are calling the PHP script again to get an updated redirect if the stream title has changed.

Last edited by djSpinnerCee; 14th January 2007 at 02:14.
djSpinnerCee is offline   Reply With Quote
Old 14th January 2007, 02:39   #18
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by djSpinnerCee
I think I have an "idea" that may work for you or anyone looking to do this.

You have to know a little PHP, and a little HTML, but it's really easy:

Just get any PHP that can get the current stream title from your DNAS -- This is your DJ's "tag," so you'll have to make sure that your DJ's comply, by always using at least their tag when they name their stream (if they want the custom DJ page anyway)...

Once you have the stream title, have the PHP scan for DJ names using a PHP CASE statement:

PHP Code:
// The PHP script has already retrieved the 
// stream title as $streamtitle
//
// I have three DJs:
//     xhilaration, djspinnercee, and fc*uk
//
// Just like all usernames, they must be unique, and not
// substrings of each other.
//
// the djnames are what I need to find within $streamtitle
// to know who is the current DJ
//
// found or not, utlimately I wll send a redirect to a 
// plain, pre created HTML that is auto-refreshing to the
// PHP script.
//

$st=strtolower($streamtitle); //the lowercase version of $streamtitle.

switch (TRUE) {
   case ((
strpos($st,'xhilaration')+1)>0):
      
header('Location: [url]http://somehttp.com/x_hilaration.html[/url]');
      return;
      break;
   case ((
strpos($st,'fc*uk')+1)>0):
      
header('Location: [url]http://somehttp.com/fc_uk.html[/url]');
      return;
      break;
   case ((
strpos($st,'djspinnercee')+1)>0):
      
header('Location: [url]http://somehttp.com/dj_spinner_cee.html[/url]');
      return;
      break;
   default: 
// no match: send em to a generic station page...
      
header('Location: [url]http://somehttp.com/stationID.html[/url]');
      return;
      break;
}

//all done. 


Each HTML file can be a copy of exactly what you have posted before, just change the names, Y!/AOL/MSN IDs and URLs for images. The META refresh code url would point to your PHP script:

<meta http-equiv="refresh" content="180; url=http://somehttp.com/php/djstatus.php">

You can add as many DJs as you like (just add a new case section and .html file), and as long as the DJ tag is found in the stream title, it will always be up-to-date (the default HTML file will be shown in case there is no match.

The iFrame target would be the PHP script which will return a redirect to the static HTML pages you have created already.

This requires very little work to be done by the PHP script, since the visitor's browser is doing all of the refreshing, and the PHP is only sending simple redirect commands to the visitors, who are calling the PHP script again to get an updated redirect if the stream title has changed.
ty spinnercee, but the code, is that the djstatus page or the stationID or do I have to have a stationID?

xhilaration is offline   Reply With Quote
Old 14th January 2007, 02:58   #19
djSpinnerCee
Forum King
 
djSpinnerCee's Avatar
 
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,479
You are a site admin right?

You allow DJs to use your DNAS?

Automation is control.

You make the rules:

Your DJs have names -- make them use consistent names (DJ ID's) or assign them names that they must use in the title of their stream.

Before you can use any code, you have to have a consistency that the code enforces.

The DJ staus pages must be created by you -- if you like the example you posted, copy it to your computer. Then edit it for each DJ you have -- save a copy of each DJs file with names (ie: xhiliration.html) so you'll know who each is for. then upload all of them to your website.

Then you need to get a PHP script as I suggested and edit it to add the stuff I posted...

***

Before I go any further, realize that there is no script that will do what you want exactly for your site and your DJs in partcular out of the box -- the beauty of the scripts is that we can make them do whatever we want, but that is never what the next guy wants, and it takes a lot of time.

If you're totally unfamiliar with PHP and HTML and looking for something you can just download and run -- this is not one of them. In that case, you should look for a script that's good enough, and become familiar with it -- then take time to make changes to it as you learn more.

Many have gone through all the trouble of getting a script, having it modified with help from the forum, only to realize their hosting does not support PHP to the level required to access a DNAS server, so you have to do some homework first.

This stuff takes time.

* You can find codes you can use on your page here -- I wouldn't tackle album art yet, but try the others.
djSpinnerCee is offline   Reply With Quote
Old 23rd February 2007, 03:11   #20
DJ_Magnum
Junior Member
 
Join Date: Feb 2007
Posts: 2
Send a message via Yahoo to DJ_Magnum
Its me...

I am the author in question of the code...
Yes it is PHP....
It changes DJ Pic and yahoo ID as a new DJ comes on...
No, it does not use any kind of database....
DJ_Magnum is offline   Reply With Quote
Old 24th February 2007, 20:15   #21
fc*uk
Moderator
 
fc*uk's Avatar
 
Join Date: Dec 2005
Location: Atlantic Beach
Posts: 8,127
almost helpful bro. Care to explain how it is done for the people that wanted this?
fc*uk is offline   Reply With Quote
Old 26th February 2007, 06:39   #22
DJ_Magnum
Junior Member
 
Join Date: Feb 2007
Posts: 2
Send a message via Yahoo to DJ_Magnum
Simply have your DJ's put there yahoo (or what ever messenger you use) in the AIM ID setting of there encoder, then name all your DJ profile pics with the DJ's yahoo ID.

For example:

myyahooid.jpg

The rest is PHP magic
DJ_Magnum is offline   Reply With Quote
Old 27th February 2007, 13:15   #23
xhilaration
Senior Member
 
xhilaration's Avatar
 
Join Date: Jun 2006
Location: Last time I checked, I was on EARTH lol
Posts: 237
Send a message via Skype™ to xhilaration
Quote:
Originally posted by DJ_Magnum
Simply have your DJ's put there yahoo (or what ever messenger you use) in the AIM ID setting of there encoder, then name all your DJ profile pics with the DJ's yahoo ID.

For example:

myyahooid.jpg

The rest is PHP magic
Dj Magnum,
Thank you for coming on here and explaining it more thorough to me and everyone on this thread. 1 question, ok, where you would put your AIM ID, what do you put for yahoo, cuz I have it like this in my encoder: YAHOO:My yahoo Id is that right? or what?

xhilaration 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