cloudy

Author Topic: Records addon page for WD-AJAX-PHP template  (Read 3810 times)

0 Members and 2 Guests are viewing this topic.

Offline clappy9

  • Posts: 205
  • Masonville, NY
    • East Masonville Weather
Records addon page for WD-AJAX-PHP template
« on: January 24, 2010, 10:35:54 PM »
This is an update from the previously released records pages.
This is a packaged set displaying Monthly, Yearly, and All Time records on separate pages.

Upgrades:
  • Each page is able to work with the Multilingual Templates (Just need some help getting correct translations)
  • Customizable date style
  • Change which records are shown easily

To use just add the tags from the "addition_to_testtags.txt" to your testtags.txt (in webfiles in Weather Display).  Then place the pages on your website.

See it in action

Updates
  • Version 2.00 - 22-Jan-2012 - More uniform date display, smaller problems, fixed bug with seperation of warmest/coldest day/night.
  • Version 1.13 - 24-May-2011 - Added option to have rain rate displayed as units/min. or units/hr.
  • Version 1.12 - 24-Oct-2010 - Updated all pages, changed format of day/night records. Also added all necessary testtags to addition_to_testtags.txt.
  • Version 1.11 - 09-Aug-2010 - Updated Monthly Records page, date in header now will update with record dates.
  • Version 1.10 - 04-Jul-2010 - Updated date format, this making it work with the template versions and standalone versions.
  • Version 1.00 - 24-Jan-2010 - Initial Release

Translations - Norwegian courtesy of Magnar at http://www.mavahome.com/

In the future I would like to add correct translations to these pages. If you are willing to help translate send me an email at the bottom of my page.

Download this package here

Check for Updates here
« Last Edit: January 23, 2012, 01:12:31 AM by clappy9 »
East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline KB5BFA

  • Posts: 55
  • Kerstan
  • Cleveland, Texas
Re: Records addon page for WD-AJAX-PHP template
« Reply #1 on: January 25, 2010, 01:31:35 AM »
Very nice, installed and working.

Thanks
Kerstan

Offline CNYWeather

  • Professional Trophymaker!
  • Posts: 1,440
  • Rome, New York
    • CNYWeather.com
Re: Records addon page for WD-AJAX-PHP template
« Reply #2 on: January 25, 2010, 11:53:01 AM »
Piece of cake. Thank you!  8)
Tony

CNYWeather.com
CWOP: CW2352
WeatherUnderground: KNYWESTM1


http://www.CNYWeather.com

I Make Trophies Too!
http://www.speedyawards.com

Offline Dalriadan

  • Posts: 136
  • Climbing the cliffs of Moher in my sleep
    • The Sanctuary Weather Station
Re: Records addon page for WD-AJAX-PHP template
« Reply #3 on: July 04, 2010, 05:45:22 PM »
For some reason I'm having a slight problem with this. The older version of the script showed what dates the Warmest Days/Nights, Coldest Days/Nights fell on. The current script isn't doing this for me. Any suggestions?
"Déantar fanaí gan ainm gan lorg díom."

Offline clappy9

  • Posts: 205
  • Masonville, NY
    • East Masonville Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #4 on: July 04, 2010, 10:31:40 PM »
Updated to fix dates on Warmest/Coldest Day/Night.

Get the updated version at the beginning of the tread.

Thanks,
-Dennis

East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline Dalriadan

  • Posts: 136
  • Climbing the cliffs of Moher in my sleep
    • The Sanctuary Weather Station
Re: Records addon page for WD-AJAX-PHP template
« Reply #5 on: July 04, 2010, 10:45:12 PM »
Very many thanks to you, Dennis.
"Déantar fanaí gan ainm gan lorg díom."

Offline Snowbie

  • Posts: 147
  • Killucan, Co.Westmeath, Ireland
    • Killucan Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #6 on: August 08, 2010, 10:15:17 AM »
Thanks for the script, it's a great addition. :thumbright:

Just have a cosmetic problem atm (work in progress). For some reason I can't get the record alert to fit into the page properly. It's showing at the head of my page.

http://www.irlweather.com/recordsmonthly.php

I'd like to have it like CNYweather
http://www.cnyweather.com/wxrecordsmonthly.php

Any help greatly appreciated.
« Last Edit: August 08, 2010, 10:42:47 AM by Snowbie »

Offline clappy9

  • Posts: 205
  • Masonville, NY
    • East Masonville Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #7 on: August 08, 2010, 01:21:15 PM »
Snowbie,

To include the record alert where you want it, place it below the <div align="center">.

This is an example from my all-time records page.

Code: [Select]
//=========================================================================
// Start of table and page
?>
<div id="main-copy">
    <div align="center">
<?php include("record.php"); print $alltimerecords?>
<table width="99%" cellpadding="0" cellspacing="0" border="0">

Hope this helps,
-Dennis
East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline Snowbie

  • Posts: 147
  • Killucan, Co.Westmeath, Ireland
    • Killucan Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #8 on: August 08, 2010, 05:05:12 PM »
It did help Dennis thanks for that :)

Another Q for you....

The header also on the month where it says 'Current Month Records Data collected since 08/01/2010'
I'd prefare the DDMMYYYY. The settings don't change this value around for me.

Code: [Select]
<td colspan="3"><p><?php echo langtrans('Current Month Records'); ?></p>
   <p><?php echo langtrans('Data collected since'); ?>
<?php echo $date_month "/" "01" "/" $date_year?></p></td>

I attempted this altered it but no joy.
Code: [Select]
<td colspan="3"><p><?php echo langtrans('Current Month Records'); ?></p>
   <p><?php echo langtrans('Data collected since'); ?>

<?php echo $ "01" "/"  .$date_month "/"$date_year?></p></td>

Would the 'if($WDdateMDY)' when set to false work anywhere here if the string was placed somewhere?

Thanks,
Karl.


Offline clappy9

  • Posts: 205
  • Masonville, NY
    • East Masonville Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #9 on: August 09, 2010, 03:46:41 AM »
Hey Karl,

That is an error on my end, I need to have an option in the code for it to switch. I will fix this and release a new version tomorrow after work.

If you cannot wait til then the code you would need to place in there would be

Code: [Select]

<td colspan="3"><p><?php echo langtrans('Current Month Records'); ?></p>
<p><?php echo langtrans('Data collected since'); ?> <?php echo "01" "/" $date_month "/" $date_year?></p></td>


Thanks for pointing this out,
-Dennis
East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline Snowbie

  • Posts: 147
  • Killucan, Co.Westmeath, Ireland
    • Killucan Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #10 on: August 09, 2010, 08:34:42 AM »
No problem Dennis, will try that out when I get home myself from work today and let you know how it goes.

All the best,
Karl.

Edit: Code works :)
« Last Edit: August 09, 2010, 10:39:38 PM by Snowbie »

Offline clappy9

  • Posts: 205
  • Masonville, NY
    • East Masonville Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #11 on: August 09, 2010, 10:57:18 PM »
Updated date in monthly records header.

Get the updated version at the beginning of the tread.

Thanks,
-Dennis
East Masonville Weather
Upstate New York
http://eastmasonvilleweather.com


Offline DaculaWeather

  • Posts: 87
  • Dacula Georgia
    • DaculaWeather.com
Re: Records addon page for WD-AJAX-PHP template
« Reply #12 on: August 11, 2010, 11:52:26 AM »
Nice! I have my monthly going ( http://www.daculaweather.com/monthly_records.php ) but still importing data from VWS so current year and All-time will have to wait a little while.

Thanks!
Steve Brueck
Davis Vantage Vue VWS, v14.01p25, Weather Display, Virtual VP, StartWatch


Offline LWP

  • Posts: 44
  • Monroe, NE USA
    • Monroe, NE Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #13 on: October 16, 2010, 08:32:50 PM »
Dennis
This is a very nice addition to my site http://localweatherplus.com/wxrecordsmonthly.php

You did a Great job on this script and it was easy to install too!

Thank you very much!!  :D
Brad
WD Ver 10.37Q build 42
CWOP-CW8005  /  W.U.- KNEMONRO2

Offline Fox_Of_The_Wind

  • Anthony
  • Posts: 1,166
  • C:\DOS C:\DOS\RUN RUN\DOS\RUN
  • De Soto Wisconsin USA
    • De Soto Valley Weather
Re: Records addon page for WD-AJAX-PHP template
« Reply #14 on: October 24, 2010, 12:21:38 PM »
does this script need the Record Breaking Weather Alert script also to run right? it is showing some recoreds but not all. thanks!


 

cumulus