• pauljohns

    (@pauljohns)


    Hey.

    I got this thing working quite sweetly on my blog, but I had to set the
    $delay variable to a value of 9999999999!

    If I even took just one 9 out, it will always display, “Radio is off!”, but the way it’s set now, it will pretty much never say, “Radio is off!”, which in itself is cool, I mean it doesnt hurt anything at all, because it always displays the last song played, which I think looks better than “Radio is off!”

    Just curious if anyone happens to know why this is happening. If I didnt set the thing to that value out of frustration, it would have never worked, it was just a random thing I tried and it happened to work, but I don’t know why it worked.

    Any insight would be great!

    Thanks.

    http://www.pauljohns.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • zack56

    (@zack56)

    //if (!$line || $last_update < time()-$delay)
    // {
    //$myplaylist = “Winamp is off !”;
    //echo $myplaylist;
    // }
    //else
    // {
    … code here
    // }

    That’s all I did… I just changed the text to say: Song of the moment (http://nfo.zackdesign.biz if you want to see it in action)…
    Commenting out works wonders if you couldn’t be bothered with time stamp issues.

    Thread Starter pauljohns

    (@pauljohns)

    maybe it’s my server or something, but when I do that, it just disables the radio altogether. Thnaks anyway. This will sound dumb, but does it matter that I’m on a Linux server?

    Again, thanks anyway. 🙂

    zack56

    (@zack56)

    I’m on Linux too, so therein lies the problem I think. I wonder if Windows timestamps files while Linux doesn’t…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin: Song Displayer’ is closed to new replies.