Plugin: Song Displayer (4 posts)

  1. pauljohns
    Posted 10 years ago #


    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!



  2. zack56
    Posted 10 years ago #

    //if (!$line || $last_update < time()-$delay)
    // {
    //$myplaylist = "Winamp is off !";
    //echo $myplaylist;
    // }
    // {
    ... 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.

  3. pauljohns
    Posted 10 years ago #

    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. :)

  4. zack56
    Posted 10 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.