Author Topic: How To Have Monthly Records Start At Curent Month  (Read 1901 times)

Offline Andy9164

  • Full Member
  • ***
  • Posts: 87
    • Midlifedad
How To Have Monthly Records Start At Curent Month
« 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


Offline Mr.Meteo

  • Administrator
  • Hero Member
  • *****
  • Posts: 1120
    • http://www.meteostours.ca
Re: How To Have Monthly Records Start At Curent Month
« Reply #1 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
« Last Edit: December 16, 2014, 07:01:39 PM by Mr.Meteo »
Please, consider supporting this site 

Offline Andy9164

  • Full Member
  • ***
  • Posts: 87
    • Midlifedad
Re: How To Have Monthly Records Start At Curent Month
« Reply #2 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

Offline Clin

  • New member
  • *
  • Posts: 8
    • Test, just a test
How To Have Monthly Records Start At Curent Month
« Reply #3 on: March 28, 2015, 03:06:16 PM »
Be mistaken.
Payday Loans South Carolina http://paydayloansusadl.com/sc/