Weather by You!
Templates and Projects support => Php templates => Topic started 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
-
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
-
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)
-
Be mistaken.