Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Forecast Alignment

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Forecast Alignment

Post by William Grimsley »

Hi Ken,

Is it possible (without changing any of the icon/forecast word under icon layout) to change in my ajax-dashboard.php file?

From:
forecast.jpg
To:
forecast2.jpg
To make myself clearer, what I mean is change what I have now, to how it was but keep the same layout (if that makes any sense) :lol:

Here is my code:

Code: Select all

<tr valign="top">
<?php print "<td align=\"center\" width=\"65\">$WUforecasticons[0]<br />$WUforecasttemp[0]</td>\n"; ?>
<?php print "<td align=\"left\" valign=\"middle\"><b>" . langtransstr('Weather Underground Weather Forecast') . ":</b> " . $forecasttext[0] . "</td>\n"; ?>
Thanks,

William
You do not have the required permissions to view the files attached to this post.
User avatar
saratogaWX
Posts: 1170
Joined: Wed 06 May 2009 5:02 am
Weather Station: Davis Vantage Pro Plus
Operating System: Windows 10 Professional
Location: Saratoga, CA, USA
Contact:

Re: Forecast Alignment

Post by saratogaWX »

Short answer: Yes, it is possible.

You may not have noticed, but your 'personal coding docent' has retired .. I will not be answering trivial coding questions to do with layout/presentation. You should have learned enough PHP/HTML to figure this out yourself without assistance.

Bon chance...
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Forecast Alignment

Post by William Grimsley »

Oh, sorry. :oops:
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Forecast Alignment

Post by William Grimsley »

It doesn't look like it's possible, from where I'm sitting. :bash:
User avatar
William Grimsley
Posts: 833
Joined: Thu 22 Sep 2011 5:22 pm
Weather Station: Davis Vantage Vue
Operating System: Windows 7 Home Premium 64-bit
Location: Latitude: 50.70189285 Longitude: -3.30849957
Contact:

Re: Forecast Alignment

Post by William Grimsley »

Well, it looks like you are right, Ken! It is possible! :D

As I had nothing to do, I thought I would have a go at getting the Davis Vantage Vue Forecast to display!

I changed the code from:

Code: Select all

<tr valign="top">
<?php print "<td align=\"center\" width=\"65\">$WUforecasticons[0]<br />$WUforecasttemp[0]</td>\n"; ?>
<?php print "<td align=\"left\" valign=\"middle\"><b>" . langtransstr('Weather Underground Weather Forecast') . ":</b>" . $forecasttext[0] . "</td>\n"; ?>
To:

Code: Select all

<tr valign="top">
<?php print "<td align=\"center\" width=\"65\">$WUforecasticons[0]<br />$WUforecasttemp[0]</td>\n"; ?>
<?php print "<td align=\"left\" valign=\"middle\" class=\"data1\"><b>" . langtransstr('Weather Underground Weather Forecast') . ":</b> " . $forecasttext[1] . "<b><br/>" . langtransstr('Davis Vantage Vue Forecast') . ":</b>&nbsp;" . $vpforecasttext . "</span></td>\n"; ?>
Then, the Davis Vantage Vue Forecast showed up below the Weather Underground Weather Forecast, keeping the font the same color and size! :D

Thanks for your help,

William
Post Reply