5,838
edits
m (→Installation) |
|||
It is more efficient for those using PHP on their website to have Cumulus process one single file and place all the [[webtags]] values into a file of PHP variables. You can include this file in all your PHP web files and use the variables as you would in PHP.
=Options available=
# One approach is to create an array '''$WX''' and within it have elements for all the Cumulus web tags. A file to do this is called ''CUtags.txt'' and can be downloaded from [http://saratoga-weather.org/wxtemplates/install.php Saratoga-Weather.org]. That approach includes elements for the recent history tags at 5, 10, 15, 20, 30, 45, 60, 75, 90, 105 and 120 minutes. In this case your customised pages would replace any reference to a Cumulus web tag <#xxyyzz> by a PHP array element $WX[xxyyzz] (some elements include the m=10 type selector).
# Another approach is to create a PHP variable for each Cumulus web tag. In this case your customised pages would replace any reference to a Cumulus web tag <#xxyyzz> by a PHP variable $xxyyzz. This is done by the file cumuluswebtags.tx, and this PHP file (download
# There was another project [[xml webtags|XML webtags]] but that is now obsolete.
# Yet another approach
==Installation ==▼
The installation, usage, and example sections below apply to option 2, but are similar for the other options.
▲==Installation ==
[[File:ScreenShot-PHPWebtags-ConfigSetup.png|right|'Screenshot top and bottom extracts Cumulus v1.9.4']]
# Choose a local directory (that Cumulus can read) where you store your customised templates as the destination for this download, or copy the file there after download;
|
edits