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

Widen the template slightly

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
Mapantz
Posts: 1778
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Widen the template slightly

Post by Mapantz »

Hi Ken

Firstly, I'd like to say well done on your template! After looking at it for years and years but never getting around to it, i've finally set it up to run alongside the other templates I have running. It has all been straightforward too!

I plan on keeping it the same colour and width- blue/narrow. I wondered if it was an easy thing to widen it by another 100px or so? Is it just one thing I need to change in the css? Or is it more? I didn't want to start fiddling (which I usually do) and find that I'd need to change many things to match it.

Once again, great work!

Best regards.
Image
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: Widen the template slightly

Post by saratogaWX »

Thanks for the kind words.. :)

Yes, widening the overall width is just a simple CSS tweak. The page width for the weather-screen-blue-narrow.css is set by

Code: Select all

#page {
        margin: 20px auto;
        color: black;
        background-color: white;
        padding: 0;
        width: 800px;
        border: 1px solid #959596;
}
Tweaking the left sidebar is quite a bit more complicated when using the flyout-menu as the css is dynamically generated.
Mapantz
Posts: 1778
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Widen the template slightly

Post by Mapantz »

Brilliant! Thank you Ken.

While I'm here, I don't suppose I can request my station to be included on your network/station links? :)

Details are:

Software: Cumulus
Location: Wareham, Dorset - United Kingdom.

Best regards.
Image
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: Widen the template slightly

Post by saratogaWX »

Done... thanks for asking :)
User avatar
ConligWX
Posts: 1573
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 LTS
Location: Bangor, NI
Contact:

Re: Widen the template slightly

Post by ConligWX »

saratogaWX wrote:Done... thanks for asking :)
Ken, Could you add my Site too?

Software: Cumulus
Location: Conlig, Co. Down - United Kingdom. - www.conligwx.org
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • PurpleAir •

Image
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: Widen the template slightly

Post by saratogaWX »

Sure.. all done :)
Mapantz
Posts: 1778
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Widen the template slightly

Post by Mapantz »

Hi Ken

I didn't want to start a new thread really..

I just wondered if you've had an reports of problems with the buoy data script?
I just uploaded the necessary files, and I suddenly got locked out of my hosting. I did some digging, and buoy-data.php is causing the issues. It says there is malicious code inside file. My hosting cuts my access, and then deletes the file :(

It's a shame, as that script would be very useful to me.
Image
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: Widen the template slightly

Post by saratogaWX »

I saw that issue with another site. Their 'malware detector' was choking on a couple of PHP comments in the code

Code: Select all

//  in the <head></head> portion of your page insert
//    <?php include("http://your.website/buoy-data.php?inc=CSS"); 
//   and in the <body> portion where you'd like the map/table to appear
//    <?php include("http://your.website/buoy-data.php?inc=Y");
//  Note: you must include the CSS in your <head> part otherwise the
//    mesomap will not be formatted correctly. 
Their scanner was looking for 'include("http://' likely and didn't note it was a comment (not executed).

Just delete those lines and upload the script.. it will likely 'stick' and not be flagged by the over-zealous and not-too-smart 'malware detector' script they use.
Mapantz
Posts: 1778
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Widen the template slightly

Post by Mapantz »

saratogaWX wrote:I saw that issue with another site. Their 'malware detector' was choking on a couple of PHP comments in the code

Code: Select all

//  in the <head></head> portion of your page insert
//    <?php include("http://your.website/buoy-data.php?inc=CSS"); 
//   and in the <body> portion where you'd like the map/table to appear
//    <?php include("http://your.website/buoy-data.php?inc=Y");
//  Note: you must include the CSS in your <head> part otherwise the
//    mesomap will not be formatted correctly. 
Their scanner was looking for 'include("http://' likely and didn't note it was a comment (not executed).

Just delete those lines and upload the script.. it will likely 'stick' and not be flagged by the over-zealous and not-too-smart 'malware detector' script they use.
Thanks Ken - appreciate that, all working! :)
Image
Post Reply