Weather by You!

Templates and Projects support => Php templates => Topic started by: Andy9164 on December 15, 2014, 03:06:34 PM

Title: How To Have Monthly Records Start At Curent Month
Post by: Andy9164 on December 15, 2014, 03:06:34 PM
Hi Jacques,
I am trying to work out how to have my monthly records start at the current month and not January. I am using the records.php and multirecords_txt.php files from WB2 but havent advanced far enough to work out how all this bit works.

Can you help me please.

Thanks
Andy

Title: Re: How To Have Monthly Records Start At Curent Month
Post by: Mr.Meteo on December 16, 2014, 06:58:01 PM
Hi Andy,

I've worked on that on latest Template update, but you could
do that on file monthlyrecord.php:

At end of file, just before the tag </body>, insert javascript lines:

   cur_month = <?php echo date('n'); ?> - 1;
   changeData(cur_month, "mon"+cur_month);

Bravo! Your site is pretty attractive!  8)

Best regards,
Jacques
Title: Re: How To Have Monthly Records Start At Curent Month
Post by: Andy9164 on December 17, 2014, 04:44:56 PM
Brilliant Jacques. That was easy. Thank You. ^-^

I keep making small changes to the site. I now have some carousel menus using JS (FredHQ Roundabout) which I found and also today it has started snowing on my website (but not in southern UK yet). I also created 204 Moon icons to show every percentage of the visible moon. It took a long time but worth it.

Still learning, still enjoying.

Merci.

Andy

http://www.midlifedad.me.uk (http://www.midlifedad.me.uk)
Title: How To Have Monthly Records Start At Curent Month
Post by: Clin on March 28, 2015, 03:06:16 PM
Be mistaken.