Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

Legacy Cumulus 1 release 1.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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

converting custom templates to html5

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

duke

Re: converting custom templates to html5

Post by duke »

On a positive note, I have looked at your progress this morning and note that you only have 3 errors left, well done.
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

Slowly getting there...
Have Webuilder now, but having some issues with some things.
1. I have a script to output last day/hours/min it rained that runs on the actual line, the validator doesn't like at all
2. my email link has issues even if Webuilder created the linking???

http://www.users.on.net/~ace2/index3.htm



1.

Code: Select all

Since it last Rained&nbsp:<script type="text/javascript">
(function(){
  var days = Math.floor(937/24/60);
  var hrs = Math.floor(937/60%24);
  var mins = Math.floor(937%60);
  function plur(x){return x === 1 ? '' : 's'};
  document.write(days + ' Day' + plur(days) + ' : ' + hrs + ' Hr' + plur(hrs) + ' : ' + mins + ' Min' + plur(mins));
}());
</script>
2.

Code: Select all

<span style="color: #1ACC32">I can also be contacted by EMAIL:
<a href="mailto:ace2.cb@gmail.com?subject=Weather station enquiries" title="ACE2 WEATHER"> ACE2 WEATHER</a></span></p>
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

duke wrote:On a positive note, I have looked at your progress this morning and note that you only have 3 errors left, well done.
I wish that were true, but all error after that third one are ignored!!!!!

only a total of 6.....

see above post for the ones i'm stuck on
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: converting custom templates to html5

Post by steve »

For the first code, you have "&nbsp:" instead of "&nbsp;". You also have that text directly inside a table; you either need to put it in a <tr>...</tr> or whatever, or move it out of the table. You can't just put text inside a table without telling it what you want to do with it.

For the second one, you need to encode those spaces in the subject as "%20".
Steve
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

steve wrote:For the first code, you have "&nbsp:" instead of "&nbsp;". You also have that text directly inside a table; you either need to put it in a <tr>...</tr> or whatever, or move it out of the table. You can't just put text inside a table without telling it what you want to do with it.

For the second one, you need to encode those spaces in the subject as "%20".
Aaaaaaahhhhhhhh. I was staring at that for ages!!!!!

Tx Steve
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: converting custom templates to html5

Post by mcrossley »

steve wrote:You also have that text directly inside a table; you either need to put it in a <tr>...</tr> or whatever, or move it out of the table. You can't just put text inside a table without telling it what you want to do with it.
That text looks like a candidate for putting in table header? ie between <th></th> tags.
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

I just took it out of the table area which resolved that.

So now I only have 2 errors, which have no solution.
One is my PayPal link that requires the address exact.
The other is my blink text which I use CSS for, but it doesn't like the tags.

I think they'll have to remain....
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
SpaceWalker
Posts: 67
Joined: Sun 04 Mar 2012 2:54 am
Weather Station: Davis Vantage
Operating System: Windows XP
Location: Eastern-Canada
Contact:

Re: converting custom templates to html5

Post by SpaceWalker »

With HTML5 when you use JavaScript, you do not need to the following:

Code: Select all

<script type="text/javascript">{the JavaScript code}</script>
You only need to use:

Code: Select all

<script>{the JavaScript code}</script>
For the PayPal account link, you need to replace the '&' character with '&' and not leave any spaces between commands. Also the <a> target attribute should contain one of 4 values: '_blank', '_self', '_parent', or '_top' - have a look at the HTML <a> target Attribute page on the W3Schools site. So your PayPal corrected link should look like this:

Code: Select all

<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=3K9E72FVNDNCU" target="_blank">
Now, for the blinking text - very annoying - blinking text was 'in style' years ago and should seldom be used (if never). Most likely, the '<blink>{some text}</blink>' (obsolete) HTML tag and/or the '<span style="text-decoration: blink;">{some text}</span>' CSS code are causing the error/warning message as neither is accepted nor recognized under HTML5.
R_o_B
There are no Time and Movement if there is no Space.
There are no Movement and Space without Time.
There are no Space and Time without Movement.
But if one of the three exists also the other two exist.
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

Anyone have any idea on this one

Code: Select all

	<!-- Start of Time Lapse setup -->
<div style="width: 100%;">
<table style="border-collapse: collapse; width: 100%;" cellpadding="0" cellspacing="0">
    <tbody>
        <tr>
            <td style="padding: 5px;" align="center">
<a href="lapse1.htm"><img src="lapse1.jpg" alt="lapse1.jpg"width=100%> </a><font size="5" color="red"><#RecentTS format=ddddd d=1></font>
            </td>
            <td style="padding: 5px;" align="center">
 <a href="lapse2.htm"><img src="lapse2.jpg" alt="lapse3.jpg"width=100%> </a><font size="5" color="red"><#RecentTS format=ddddd d=2></font>
            </td>
            <td style="padding: 5px;" align="center">
 <a href="lapse3.htm"><img src="lapse3.jpg" alt="lapse3.jpg"width=100%> </a><font size="5" color="red"><#RecentTS format=ddddd d=3></font>
            </td>
        </tr>
    </tbody>
</table>
</div>
	<!-- End of Time Lapse setup -->
I tried replacing the things that are not allowed, but i end up with 3 full size images side by side
page is http://www.users.on.net/~ace2/video2T.htm

I should also add, it needs to be automatic width so if i'm looking at it on my phone, it doesn't screw the alignment up.
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
SpaceWalker
Posts: 67
Joined: Sun 04 Mar 2012 2:54 am
Weather Station: Davis Vantage
Operating System: Windows XP
Location: Eastern-Canada
Contact:

Re: converting custom templates to html5

Post by SpaceWalker »

First, if you are going to make some efforts into updating your pages to HTML5 than you should read about the new standards - as I wrote previously, the W3Schools is a good start.

For example, both the 'HTML <table> cellpadding' and the 'HTML <table> cellspacing' attributes are not supported in HTML5 - using CSS is recommended.

Code: Select all

<img src="lapse1.jpg" alt="lapse1.jpg"width=100%>
Looking at this code, it is not surprising that you do not get the results you are expecting... The proper way to include an image onto a page is

Code: Select all

<img src="{image source}" alt="{alternate text}" style="width: {some pixels}; height: {some pixels}; border: none;">
It is my understanding that 'percentage' cannot/should not be used for images. A good way to control the size of an image would be to include that image within some <div> tags, such as:

Code: Select all

<div style="width: {some pixels or percentage};">
  <img src="{image source}" alt="{alternate text}" style="border: none;">
</div>
R_o_B
There are no Time and Movement if there is no Space.
There are no Movement and Space without Time.
There are no Space and Time without Movement.
But if one of the three exists also the other two exist.
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

Big issue as soon as you have pixels instead of ℅ and open the page on a mobile device, it looks wrong for some reason. The images goes off the page/out of whack.
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
duke

Re: converting custom templates to html5

Post by duke »

You could use media queries to control the size but try this first:

Code: Select all

img {
	max-width: 100%;
	height: auto;
}
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

duke wrote:You could use media queries to control the size but try this first:

Code: Select all

img {
	max-width: 100%;
	height: auto;
}

No luck on that, might have to leave it as is with some small changes
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

I think I got it.
I put a little code into the CSS.(stolen and edited to suit)

Code: Select all

#myDiv 
{ 
height:auto; 
width:100%;
 } 
#myDiv img 
{ 
max-width:100%; 
max-height:auto; 
margin:auto; 
display:block;
 }
Then called the div with id mydiv, performs the same as before on my mobile. only tested on my mobile, as it was my editing tool while at work..

validator finds no errors. :clap:
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
User avatar
ace2
Posts: 679
Joined: Tue 14 Jan 2014 12:38 pm
Weather Station: maxkon ws-1081pc
Operating System: windows 7 & 8
Location: Adelaide, south Australia, Australia
Contact:

Re: converting custom templates to html5

Post by ace2 »

:x i spoke to soon.....................

doesn't work on IE or Firefox, ok in chrome.......


Now what.................
CHRIS
Image
web site
http://www.ace2weather.com
Follow me on Twitter
http://tinyurl.com/kwlr9re
YouTube channel
http://tinyurl.com/lehwpgp
Facebook page
http://tinyurl.com/k3sap4s
Tiny URL links used
Post Reply