
Script: php Yahoo! Weather Widget loopScroller
Version: 1.1
Rights: © Revived Wire Media - revivedwire.com
[Installation - loopScroller]
****Note: File paths within the loopScroller are critical. Please keep the directory structure intact to avoid issues.
- Everything you need for the loopScroller is contained within the loopScroller folder
- demo.php and the folder demo_files are not required. They are included to demonstrate how to integrate the loopScroller
- Once you have chosen the location in which the loopScroller will reside, begin by inserting the following into that section of code
<iframe class="loopScroller" frameborder="0" marginheight="0" marginwidth="0" scrolling="No" src="loopScroller.php" width="140" height="100"></iframe>
- Open loopScroller.php and add or remove the divs for each location/city (further instruction is located in this file just above the divs)
- Open any demo*.php and make the necessary configuration changes (for cities that do not have a zip code, you must enter a location ID. To find your location ID, browse or search for your city from the Yahoo! Weather home page. The weather ID is in the RSS URL for the forecast page for that city. For example, if you search for Zurich, Switzerland on the Yahoo! Weather home page and click the orange RSS button, the forecast page for that city is http://weather.yahooapis.com/forecastrss?p=SZXX0033&u=f. The location ID is SZXX0033.
****Note: define('IMAGES', in the config section must have an absolute path from your web root (or the full web address - e.g. http://www.yourdomain.com/loopScroller/locations/weather/icons/ ). Also, in these location .php files, the stylesheet code can be modified and the meta tags can be modified or removed to suit your needs. You should, however, retain the doctype, html, head and body tags.
- Upload files and folders!
If the weather data isn't being displayed or the xml file is not generated and placed in your server directory — please don't get all crazy and remove us from your Christmas lists! :) Try replacing line two in your "display" file so that it references the alternative version — entitled weather.class.alt.php (or weather.class.5day.alt.php) — which uses different php functions. If this doesn't resolve the issue, try changing the chmod of the folder in which all of the weather files reside — as well as the folder entitled icons — to 777. If this doesn't work, try chmoding everything to 777 (it's highly unlikely that this last option would be a necessity).
|