// strip trailing units from a measurement
// i.e. '30.01 in. Hg' becomes '30.01'
function strip_units ($data) {
preg_match('/([\d\.\+\-]+)/',$data,$t);
return $t[1];
}
Are you sure all of the required tags are in the testtags.php file?
If a tag is missing, the function strip_units that is in the function gen_difference will fail.
Hi Michael,
i have the same issue of Jack,
It should be this function
<?php echo [b]gen_difference[/b]($avtempjannow, $avtempjan, $uomTemp,
'%s'.$uomTemp.' Warmer than All-Time Average Temperature.',
'%s'.$uomTemp.' Colder than All-Time Average Temperature.'); ?>
on line 71
I know that i have an error in my ajax dashboard but i believe that it should interfere with this issue.
Many thanks,
hi
I too am getting the same error, I know nothing about coding but a thought occured to me, I am using the “Alterative ajax-Dashboard” rather than the original which one are others with the same issue using? Could it be something to do with which version your using?
Phil
<?php
############################################################################
# A Project of TNET Services, Inc. and Saratoga-Weather.org (WD-USA template set)
############################################################################
#
# Project: Sample Included Website Design
# Module: sample.php
# Purpose: Sample Page
# Authors: Kevin W. Reed <[email protected]>
# TNET Services, Inc.
#
# Copyright: (c) 1992-2007 Copyright TNET Services, Inc.
############################################################################
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
############################################################################
# This document uses Tab 4 Settings
############################################################################
require_once("Settings.php");
require_once("common.php");
############################################################################
$TITLE= $SITE['organ'] . " - Annual Departure from Average";
$showGizmo = true; // set to false to exclude the gizmo
include("top.php");
############################################################################
?>
</head>
<body>
<div id="main-copy">
<center><h3>Global Warming Trending for Axelvold, Sk