Author Topic: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3  (Read 20500 times)

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« on: April 17, 2012, 04:59:05 PM »
Hi!

As Cumulus is doing a lot more with version 1.9 beta, I have "patched" Sunny Weather Template.

In archive you'll take in download section, you will find a file records.css to put in your website
at same place as other html pages. Also a new page recordT.htm page is provided, but that
"patch" is a little "twist" to Cumulus pages.

Then, firstly, rename your current CumuluswebrecordT.htm page to monthlyrecordT.htm.
Copy file recordT.htm to Cumulusweb folder... and enjoy!

By that way, no page have to be modified in your site.
The new Record page will be your place to view both months or all-time records.

Have a peaceful update !
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #1 on: July 13, 2012, 07:56:13 AM »
I'm a newcomer here, so apologies if this has already been mentioned.

After you've placed the new recordsT file in the web folder, using an html editor, you can replace <body> in line 124 with <body onload="changeData(<#month>-1);">.  This will cause the page to initially display the current month, instead of always opening with January.

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #2 on: July 13, 2012, 08:07:28 AM »
Hi Tom,

Welcome to Météo du Québec (Weather from Quebec  ;) ),
I'm happy to see thst this template pleased you!

Your suggestion is more then appreciated!  :D
I'n not a Javascript geek, help is very welcome!
Thanks to take time for some feedbacks!

Drop us a link to your site when possible!  :ugeek:

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #3 on: July 13, 2012, 08:47:38 AM »
I'll post a link shortly, thanks for asking.

Any reason the new records page (with both the select-a-month and all time buttons) looks so different than the other pages? It has a blue background and an illustration in the header instead of the photos, cloud background, etc.

Other pages all display beautifully. I'm just playing around with formatting, etc.

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #4 on: July 13, 2012, 09:45:37 AM »
Hi Tom,

Are you using Sunny Weather template, or Cumulus standard template?

This module is an extension of Sunny Weather! If you're using others you'll need to adapt it!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #5 on: July 13, 2012, 11:27:43 AM »
I've messed something up. Here is the link of the site in progress: http://krmidas.home.comcast.net/~krmida ... /index.htm. I've only started customizing some of the pages (now/today/yesterday/month/year)

I haven't gotten to all the pages yet, but the records page doesn't seem to be formatted correctly. Not sure what "Ma Page" means under my name. In addition, when I click "all-time" it just shows July's readings. I wonder if that's related to the piece of code I referenced earlier, which work fine on my previous "monthly record" site: http://krmidas.home.comcast.net/~krmida ... ordold.htm?

Any guidance would be appreciated!

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #6 on: July 13, 2012, 11:52:59 AM »
Hi Tom,

Ok! You are using Weather Blues!!! :D

As I told you before, this module is for Sunny Weather Template!
Weather Blues is in "rebuild" process for version 2.0, that is why
it don't have these pages.

But you could adapt it if you're not affraid of! ;)
Take empty page included in Weather Blues and copy only this long script
from line #15 (<script type="text/javascript">.......)
to line #120 (</script>) and copy it just before "</head>" in your new page.

Second section is the "content" section
it begin at comment "<!-- BEGIN OF CONTENT -->"
and fnish to comment "<!-- END OF CONTENT -->"

and replace this code :

<div id="content">
      <h1>Your own page</h1>
</div>

with lines from "content" from other file.

Don't forget to link "records.css" for layout purpose.

Hope this help!

Regards,
Jacques
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #7 on: July 13, 2012, 08:48:51 PM »
I've made a little progress  :roll:

Can't figure out what's going on when you click "all-time" and how to fix it.  Where do the all-time records live?

http://krmidas.home.comcast.net/~krmida ... ecord.htm#
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #8 on: July 13, 2012, 09:06:31 PM »
Hi Tom,

Things becoming real good... Good job!  :geek:

Quote from: "krmidas"
.... Where do the all-time records live?

I'm not anglos... it souds to me like where live real-time?  :oops:

... will answer tomorrow morning!

Jacques  :D
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #9 on: July 13, 2012, 09:50:13 PM »
[attachment=0:1telklk8]Capture.JPG[/attachment:1telklk8]
You have a link for "all-time" records, but it's not linking to the correct data. Should I create a new page for all-time records?
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #10 on: July 13, 2012, 10:58:27 PM »
Fixed: the all-time button now works. The only thing I couldn't figure out is what font you used for "today's data", "yesterday's data", etc., so I had to approximate...

http://krmidas.home.comcast.net/~krmida ... record.htm

These templates are amazing. Thanks for helping me dress up my weather pages

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #11 on: July 14, 2012, 06:52:37 AM »
Hi Tom,

It's real good! You're not bad in html!
Since that package is a "patch" for inserting a new page
in a template that doesn't support it, it has a "twist"

firstly, rename your current CumuluswebrecordT.htm page to monthlyrecordT.htm.
Copy file recordT.htm to Cumulusweb folder... and enjoy!

By that way, template already knows recorsT, which is now a newer page,
linking the older page, by the "All Time" button.

For the right font, comment is right before the image call, but in French, then:

Raavi 28 bold and Papyrus 84 italic bold, color 5594DE, transparent 160
(I used Paint.NET for that)

Then Bravo Tom! You're greatly online now!

Regards,
Jacques

EDIT: For your menu, highlights are done in the "main menu" section.
You just have to check the line that contain class="but but_t"
that's the trick to highlight current menu page.
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site 

Offline krmidas

  • Full Member
  • ***
  • Posts: 91
    • The Tom Keramidas Climatological Experience
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #12 on: July 14, 2012, 09:44:39 AM »
Many thanks again.

-Tom
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Tom Keramidas, Lake Zurich, IL, USA

Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: Sunny Weather Template v1.x patch for Cumulus beta 1.9.3
« Reply #13 on: July 14, 2012, 10:10:17 AM »
Hi Tom,

Your pretty welcome!
Always a pleasure to see new installations!

Best regards,
Jacques

Ps. Please fill the infos page.... I travel by them!  :D
« Last Edit: December 31, 1969, 06:00:00 PM by Guest »
Please, consider supporting this site