Viewing 15 replies - 16 through 30 (of 207 total)
  • Um…. I think something got missed…. In the weather.php file, there is an echo $weather at the bottom, very last line….. take that out…. the echo should up in the show_wp_weather() function……
    TG

    Love this hack. ??
    One question though, the conditions are being out put like this:
    _TEMPERATURE 28°F
    _CONDITION _MIST
    Is there something I’m missing, or is this handled in the CSS or something?
    You can see it in action at my WIP page: https://www.flatlip.com/wordpress

    Yeah, Um also down load the zip for the FIRST post in this thread, it has a language.php file that was left out of the latest version. I found that out the hard way as well.
    TG

    Yeah, that probably did it… I am on crack this week. Thanks! ??

    Thanks TG, I knew PEBKAC. ??
    Hack works beautifully now.

    Oh my, this was easy to set up! Thank you for this!!

    Thread Starter jeremiah

    (@jeremiah)

    oops.. I’ll fix that, and update the zip to include TG’s modifications when I get home this evening..
    –Jeremiah

    Thanks for this hack, lots of hard work!
    I have one mod i’d like to make-
    how to remove border attribute from image?
    <img src=’wp-weather/wicons/4cloud_norain.png’ border=’0′
    Thanks again
    ??

    TG- thanks for the quick response!
    I tried both suggestions in my css but soon realized the “border” was being echoed from weather.php.
    I removed from there, and voila- validates xhtml 1.1!
    Thanks again,
    Rob

    Anon was me, forgot to log in…

    Thread Starter jeremiah

    (@jeremiah)

    I wasn’t getting a validation error on the border attribute, but I agree that it should be removed. I’ll do that this evening as well. Thanks for pointing that out Flakkito!
    –Jeremiah

    Jeremiah…. don’t force the remove in the HTML (IE, don’t se the border=”0″ in the img tag), let the CSS do that…. Some people may want it on, others may not.
    TG

    TG I was just going to remove the border attribute entirely.. then it should honor whateven you have set in the css for the other images on your blog.
    does that sound right?
    –Jeremiah

    Thread Starter jeremiah

    (@jeremiah)

    Oops, forgot to login.. That last one was me.
    –Jeremiah

    Thread Starter jeremiah

    (@jeremiah)

    ok. I think I got everything right this time.
    I removed the border attribute from the icon.
    Integrated TG’s modifications (except removing the icon from the LI. You’re going to have to do that yourself if you want it that way.)
    Put the missing “language.php” file back into the zip.
    Added instructions at the top of the “weather.php” file.
    See it here:
    https://www.sonicpling.net
    With all options enabled:
    https://www.sonicpling.net/weather/weather-full.php
    And I replaced the weather-new.zip with the latests and greatest.
    get it here:
    https://www.sonicpling.net/weather/weather-new.zip
    Let me know if you have any problems or questions.
    And if you’re feeling generous, you could let me know if you’re using it as well. I’m interested in how many people want this function..
    Thanks!
    –Jeremiah

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