IMPORTANT! The server may go down soon - possibly permanently. Please read the latest post in Announcements and News

FTP is broken. I advise all users using my server for their web site to make alternative arrangements.

Please read the posts in the Announcements section about the current status of Cumulus development now that I have retired

Please read this post before posting

Latest Cumulus release v1.9.4 (build 1099) - Nov 28 2014
Latest Cumulus MX release - v3.0.0 build 3043 Jan 20 2017. See this post for download

advforecast2.php Question

Discussion of Ken True's web site templates

Moderator: saratogaWX

acatalano
Posts: 91
Joined: Tue Jun 16, 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

advforecast2.php Question

Postby acatalano » Sun Dec 17, 2017 10:03 pm

I'm finally getting around to updating to the latest version of advforecast2.php and have downloaded the php file and the 3 iconsetV2 and iconset update files.

Before proceeding with the update I have a sort of "belts and suspenders" question about the distribution of the updates into the website folders. The php file is obvious; it goes in the "root" directory.

This question refers to the icon sets. For V2 of the icons the instructions call for them to be uploaded to the "forcast/images" directory. However when I unzipped this file it created both a "forecast" and "ajax-images" directory in addition to a Dualimage.php file. If I take the instructions literally, this would mean that the resulting file structure would have a "forecast" and "ajax-images" WITHIN the "images" folder beneath the forecast folder.

My perception was that the intent was to update the contents of the forecast and ajax-images folders with the contents of the respective unzipped file, rather than a new nested structure being created.

Likewise, then where does the Dualimage.php file go..in root?

Sorry to be a dunce about this...i just want to be absolutely certain before proceeding. :bash: :bash:
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965

User avatar
saratogaWX
Posts: 895
Joined: Wed May 06, 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows XP SP3
Location: Saratoga, CA, USA
Contact:

Re: advforecast2.php Question

Postby saratogaWX » Mon Dec 18, 2017 5:30 am

Were you using the Template Update Tool to obtain your .zip file?

If so, the ajax-images directory goes in the document root (as it is in the .zip), the forecast/ directory also goes in the root (and will include a forecast/icon-templates/ and forecast/images/ updates. The DualImage.php does go in the document root.

Usually, the update .zip is placed in the document root, then unzipped from there -- that preserves the internal directory structure and results in updating all the parts in their correct places.

acatalano
Posts: 91
Joined: Tue Jun 16, 2015 2:07 pm
Weather Station: Davis VP2
Operating System: Raspian, Win7 Pro
Location: Boulder, CO
Contact:

Re: advforecast2.php Question

Postby acatalano » Mon Dec 18, 2017 6:26 pm

Yes I used the update zip file, and what you say is just what I expected. I was thrown off by the mention of sending the icon files to the forecast/images directory. unzipping it there would duplicate the folder structure above, which doesn't seem right (and isn't) Just wanted to be absolutely certain. Many thanks for confirming what I know seems obvious.
Best Regards,
Anthony Catalano
Boulder, Colorado, USA
Webcam & Weather at:
http://www.boulderwx.com, http://www.apcat.org, http://www.boulderweather.org
Blitzortung Lightning Detector Station 1965


Return to “Saratoga Templates”

Who is online

Users browsing this forum: No registered users and 2 guests