Page 1 of 7

Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 10:14 pm
by beteljuice
The beteljuice has been playing as usual.

Herewith an alternative Monthly Extremes page (Template) using <#webtag>s.

Requires Cumulus V1.9.3 or above OR Cumulus MX

This example won't update and is for illustrative purposes only:

Alternative Example

SEE LOWER DOWN FOR NEW Neil Thomas template version ;)

You can set the 'default' view.
You can give the visitor the option of views (or not).

Although it's full of JavaScript, it is JS 'safe'. If a visitor has JS disabled then they see the 'normal' (list) style for EVERY month (the nav buttons should then scroll up / down to the required month).

Edit: Zip files contain BOTH v1.9.4 AND MX versions - use the right one for you !

Template file only needs to be processed / uploaded once every 24hr. - rename to suit yourself.

Edit: Mar 2021 - MX versions ONLY, incorrect hours:mins format bug fix.
ALL versions - jQuery newer ver 'called', and future js bug fix.

betel_EN_monthlyrecord.zip
betel_FR_monthlyrecord.zip
betel_NL_monthlyrecord.zip


Editing / language changes:

There are a LOT of things that require a very good knowledge of find and replace techniques.

If you change ANYTHING with a time format in it I recommend changing one at a time and testing !!!

If anyone does a non-english version could they please post it for others ?


(My eternal thanks to Steve for helping me in some nasty debugging :? - and to paulmy with the MX version )


New mx 10.3 template version ONLY

The beteljuice is slowly trying out his playthings in the 'new' Neil Thomas templates ...

This one is a rewrite to use the weatherdata.json file instead of having to be processed / uploaded by Cumulus.

Part of the README.txt file ...

zip file contents:-
alt_monthlyrecord.htm
css/alt_mon.css
js/alt_monthlyrecdata.js
this README.txt

Upload the files to your website.

Menu:
There are two ways you can handle this:

1/ (NOT recommended) back-up your existing monthlyrecord.htm and rename alt_monthlyrecord.htm to monthlyrecord.htm.

2/ (Prefered) Copy and BACK_UP YOUR EXISTING js/ menu(type).js
Edit the filename in the (new) js/ menu file

That's it ...

Easter Egg ...

(You'll have to download the file to find out ;) )

betel_alt_mon.zip

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:14 pm
by GraemeT
Well done Beteljuice

for some reason Dreamweaver's error-checker protests there is a syntax error on line 185, but I can't find it...

The page works ok, though.

http://weather.gktnet.com/cumulus/betel ... record.htm

Cheers.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:16 pm
by beteljuice
Minor bug fix (already)

Wet / dry 'from' month was one out.

:oops:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:34 pm
by GraemeT
It doesn't look as good in IE8, sorry.
Views ok in IE9 and Chrome, although sizing is slightly different.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:43 pm
by beteljuice
for some reason Dreamweaver's error-checker protests there is a syntax error on line 185, but I can't find it...
If you are checking the Template - I'm surprised that's all it's screaming about !

That is first of many Cumulus processed time formats and contains lots of single / double quotes and < >.

Should test OK once processed by Cumulus ?

That's why I had so much trouble debugging it in the first place :bash:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:44 pm
by GraemeT
beteljuice wrote: Wet / dry 'from' month was one out.
Yes, that's better...

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Mon 07 May 2012 11:49 pm
by GraemeT
beteljuice wrote:Should test OK once processed by Cumulus ?
Correct, no problems once all the quotes and tags converted.
If you are checking the Template - I'm surprised that's all it's screaming about !
Firefox validation plug-in picks up 789 warnings!

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 May 2012 12:02 am
by beteljuice
Firebug 1.9.1 plug-in is all clear.

Are you talking about the html validator which seems to have been a bit sick for nearly a year ?
Anyways - It works - until someone find out differently that is ...

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Tue 08 May 2012 12:06 am
by GraemeT
I'm using HTML Validator 0.9.5.1 and Web Developer 1.1.9
They're ok for most pages, but some with lots of javascript seem to get too complex for the validator, so I generally just leave alone.

Edit: ...after making a mental note (which I usually forget in 5 minutes)... :lol:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Wed 09 May 2012 6:07 pm
by beteljuice
Sign of the times ...

You build a better mousetrap ...... and everyones too busy playing with their mobile 'phones :lol:

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Thu 10 May 2012 4:10 pm
by Mapantz
Love this!

Just worries me about the upload every 15 minutes, as it's quite a large file.

Regards.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Thu 10 May 2012 6:34 pm
by beteljuice
Valid comment ....

It only really needs to be processed / uploaded once every 24hrs sometime after your station 'roll-over' time.

I will let someone else describe the technique of removing it from 'standard' upload and using 'toolbox' or whatever to do the business.

Any volunteers .....

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 11 May 2012 10:48 am
by Mapantz
beteljuice wrote:Valid comment ....

It only really needs to be processed / uploaded once every 24hrs sometime after your station 'roll-over' time.
That's a good shout, i use toolbox already. So i guess save the monthlyrecordT.htm somewhere else? Then open the monthlyrecordT.htm up in the default upload folder and delete the contents?

Regards.

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 11 May 2012 5:10 pm
by bnwrx
List style displays "F" but table style displays "C". Can I edit this somewhere?

link:http://woodlandweather.org/45betel.htm

I think I found it, I edited lines 632-636 and 648-352.....

Re: Alternative Monthly Extremes using <#webtag>s

Posted: Fri 11 May 2012 11:31 pm
by beteljuice
Update V1.2 - https://cumulus.hosiene.co.uk/viewtopic.p ... 563#p63563

Thought I'd changed that :oops:

distribution file updated.