Author Topic: Script wants JPGs, but I have GIFs  (Read 451 times)

0 Members and 1 Guest are viewing this topic.

Offline SteveJ

  • Senior Member
  • **
  • Posts: 95
    • My Blog
Script wants JPGs, but I have GIFs
« on: January 31, 2015, 05:14:05 PM »
I just finished a totally "vanilla" install of the Saratoga scripts following the instructions here:

http://saratoga-weather.org/wxtemplates/install.php

  • Downloaded the USA Base Template
  • Downloaded the Meteobridge WX software plugin
  • Downloaded the Meteoreviglio animated forecast icons

Uploaded everything to my web server, and everything seems OK (I didn't do may settings changes yet), except that all the forecast icons are "broken" because it's looking for JPEGs (like few.jpg) instead of the animated GIFs.

I did a quick grep in the web server root, and found that the image filenames are all hard-coded:

Code: [Select]
# grep few.jpg *
ajax-dashboard.php:     "few.jpg",          //  9 imagemainlyfine.visible
ajaxMHwx.js:    "few.jpg",          //  9 imagemainlyfine.visible
ajaxWDwx.js:    "few.jpg",          //  9 imagemainlyfine.visible
get-metar-conditions-inc.php:   "few.jpg",          //  9 imagemainlyfine.visible
include-metar-display.php:      "few.jpg",          //  9 imagemainlyfine.visible

So do I REALLY need to go through all the code to manually change those to GIFs in order to use the animated icons? Or is there a simpler way?

EDIT: FOUND IT!

Line 167 of the Settings.php file. :)
« Last Edit: January 31, 2015, 06:05:08 PM by SteveJ »
My LinkedIn

Weather.LakeWebster.com

WU: KMAPLE47 | PWS: JNKNS | CWOP: EW6690 | WXBug: p22113


 

anything