Page 6 of 7

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Sat 05 Jan 2019 4:47 am
by BCJKiwi
records.js

I have made many changes/updates to cumulus1 and cumulusMX standard website template files I am not 100% sure which are original anymore. However I think the following describes the original setup.

In C:\cumulusMX\web folder there is a recordsT.dat file. This same file also exists in cumulus1.
This contains arrays of standard looking tags.
This gets processed and delivered to the website as records.js

In cumulusMX and cumulus1 web folders there is also a recordT.htm file which also gets processed and delivered to the website as record.htm
However I don't see where records.js is referenced in these files.

I don't use the .htm files but instead use a static php file on the webserver which is basically the same as the .htm file but references uploaded tag files for the the same data that the uploaded .htm files contain, and uses a php include() to load the .js file.

On further checking it seems the recordsT.dat file is not part of the original builds and am unable to find the original source (apologies to the originator of either of these files).

So.. have attached the recordsT.dat file and the simplest (cumulus1) version of the php file. The php file will require modification to suit the webpage and of course will require a tag file that includes the variables used in the php file.
Included in the .zip is the CUtagsMXT.txt file which is uploaded to the website including a large range of tags.
Trust these files will be of use.
records.zip

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 4:43 pm
by beteljuice
Cumulus MX version now available

See first post ...

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 5:13 pm
by mcrossley
Well done, one tiny problem with the MX version. Line 182 has a spurious ">"

Code: Select all

 var monthnames = new Array("January>",
Its a good test for an MX update I have that now allows HTML tags in the format string - global replace of xb/zb ;)

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 5:28 pm
by beteljuice
mcrossley wrote: Mon 07 Jan 2019 5:13 pmWell done, one tiny problem with the MX version. Line 182 has a spurious ">"
Sometimes I just hate you !!!
Its a good test for an MX update I have that now allows HTML tags in the format string - global replace of xb/zb ;)
Of course mine is 'fixed' for bold, the technique holds true ;) - should really have created an AKA for < and >

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 6:24 pm
by PaulMy
I think I have it now including all my collected data since January 1, 2009

http://www.komokaweather.com/cumulusmx/ ... rd_mx.html

Enjoy,
Paul

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 9:41 pm
by beteljuice
B*gg*r ....

Found one more orphan ">" in the English MX file.

Download again please - sorry .. :oops:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 Jan 2019 11:10 pm
by PaulMy
Download again please - sorry
Which link would be the most recent?

Paul

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 Jan 2019 12:44 am
by beteljuice
There is only one link per language .... all in the first post.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 Jan 2019 2:56 am
by PaulMy
But, but, I don't speak FR so have used the only other http://www.komokaweather.com/cumulusmx/ ... rd_mx.html that my poor eyes can find

Paul
flag.jpg

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 Jan 2019 3:14 am
by beteljuice
How odd .....

The file shows in 'edit' view but does not appear in published page ? :o

.. also the two that showed both had the same attachment number ! :shock:

All redone. :?

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 Jan 2019 3:41 am
by PaulMy
Now showing 3 zips and seems fine http://www.komokaweather.com/cumulusmx/ ... rd_mx.html

Enjoy,
Paul

mx Bug fix - Alternative Monthly Extremes using <#webtag>s

Posted: Fri 11 Oct 2019 2:12 pm
by beteljuice
mx versions only - bug fix ...

Whilst channel hopping on what working links are left, I discovered that in the Cu mx version the dates in the far right wet / dry <mouseover> were NOT being parsed.

All good now - download in first post ...

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Sat 07 Mar 2020 1:51 am
by beteljuice
Updates coming soon ....

Just discovered JQuery 3.1 (which of course is the lowest version you are all loading into your page aren't you ? ) has 'depreciated' one of the functions used in the tooltip mouse-overs.

I can't see any obvious harm, but just in case ....

If you want to Do It Yourself, there is only one instance to change.

Using Notepad++ or similar, in your ????T.html file

Search for .andSelf() and replace with .addBack()

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Thu 25 Mar 2021 10:18 am
by flort
@beteljuice:
I just noticed on my site that the time of extremes is coded as HH:MM which results in hours:month. If I change it to HH:mm then it displays hours:minutes as it should.
I looked at some of the other websites using this page and some show correctly but others are the same as mine.
Might be worth looking at.

Regards,
Trevor

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Thu 25 Mar 2021 10:41 am
by beteljuice
Are you using C1 page variant with CuMX ?