Viewing 15 replies - 31 through 45 (of 207 total)
  • TechGnome

    (@techgnome)

    ugh…. well, see now, by removing it, there’s no way to add it back in, that’s whay I was just saying to leave it alone. Because now, I don’t think it will validate XHTML (HTML maybe).
    hehehehehe!
    It’s easier to take it out using CSS than it is to put it back.
    TG

    Thread Starter jeremiah

    (@jeremiah)

    TG, I’m not sure what you mean?
    check this out: Sonicpling Validation
    I thought about giving the weather icon a “class” so that you could add the border back if you want it, but I don’t understand how removing the border=”0″ will keep it from validating..

    TechGnome

    (@techgnome)

    OOOOOOOOOOOOOOOH.
    Never mind, I misunderstood…. I thought you ADDED the border=”0″ and I was saying not to…. hehehehe…. I feel sheepish.
    I need a drink! lol…. yes, remove the border=0 attribute, and yes, it will then use what ever the CSS tells it to….
    You may smack me on the head with a stick if you like. ??
    TG

    Thread Starter jeremiah

    (@jeremiah)

    TG,
    Ah! Glad we’re on the same page then. I was begining to think I was losing my marbles.. lol
    –Jeremiah

    Ross

    (@ross)

    Hi, firs I just want to say that this is a great WP hack and is exactly what I’ve been looking for. Second, I’m having some problems. I downloaded the zip file from Jeremiah’s post on the 20th and followed the instructions at the beginning of the weather.php file. Everything shows up on my site just fine as it should, however I can’t access my admin pages at all. I get 5 “Cannot add header information – headers already sent” error messages before it even lets me log in.
    Thanks,
    Ross

    TechGnome

    (@techgnome)

    Jeremiah – no, it wasn’t you losing your mabels, it was me…. whoopse, there they go again across the floor!
    Ross – check the files, and make sure that there isn’t any space or extra line following the ending ?> 99% of the time, this is the cause of the problem you describe.
    TG

    Ross

    (@ross)

    TG – Thanks for the advice, I checked my weather.php file, my my-hacks.php file and my index.php and found no spaces or extra lines and still am getting the same errors.
    -Ross

    smarshall

    (@smarshall)

    I’ve just finished playing around with the Weather hack and I had very little problems setting it up.
    I am courious to why there is a toggle for “wind chill” and “heat index”, while there is no output code for them? If it has something to do with the calculations in the code, would parsing the new “Feels like” info work?

    Ross

    (@ross)

    I just wanted to say thanks for the help. After going over my my-hacks.php file I found an error I had overlooked previously and everything is working wonderfully now.

    Thread Starter jeremiah

    (@jeremiah)

    Oh, you will also want to be aware, that the heat index will only display if the temp is above 79F and the wind chill will only display if the temp is below 51F
    –Jeremiah

    TechGnome

    (@techgnome)

    Thanks! I didn’t even notice that was missing. Now, I get to wait untill later to see if it works.
    TG

    davidchait

    (@davidchait)

    Must say, pretty cool little hack.
    However, I had to do some modifications.. driving me nutty.
    First, I broke the main block out as a div, not a li.
    Then, all the individual lines going into the output I added linefeeds at the end, so it is readable in source-viewing a page (for debugging…).
    I made it so that the title can be turned off (as my title is written already in the caller).
    There were other misc changes, but that was the start.
    Another improvement would be to export all the prefs through named elements in a global array, so that you include the header, then set the display modes on/off as desired. This also lets you change the display on the fly. I just dislike having to modify the main php file for a new ‘block’. I like it to be a black box — I include it, set some variables, and call a function (poss with params). No modification of the core php needed to use the lib. ??
    But that’s all me being, well, anal. ??
    -d
    https://www.chait.net

    davidchait

    (@davidchait)

    I should add, IE6 doesn’t render transparent pngs properly. makes it look like crap. oh well. I’ll leave it in for tonight, figure out if it’s worth keeping tomorrow…
    -d

    Anonymous

    I absolutely love that script! ?? Thank you so very much for sharing it! It′s my favourite weather report now, and I have tried a lot of different thingies. It′s brilliant! ??

    Thread Starter jeremiah

    (@jeremiah)

    David,
    I’m far too lazy to do all that! ;-P
    if you’ll send me a modified version I’ll update the zip file.
    I don’t think I’ll make it a div instead of the LI because I was emulating the wordpress defaults there, but the other changes sound good. (if you want to do that)
    How do you insert a linefeed in PHP?
    crlf? I’ll look it up later I guess.
    –Jeremiah

Viewing 15 replies - 31 through 45 (of 207 total)
  • The topic ‘Weather Hack’ is closed to new replies.