Module v4.0.0 3rd April 2015


New version 4.0.0 now saves tide times to database on first call of day, thus speeding subsequent page loads
also implemented update server.

The parameters for the module allow selection of location using NOAA port number, text to appear before and after the table, whether to show today only or both today and tomorrow's tide times and whether to show just high water or both high and low water times.

You can also choose whether the times are GMT (UCT), local (tide station) time, or daylight saving adjusted local time, and whether heights should be shown in metres or feet.

You can specify text to display above and below the times, and optionally display the date.

The NOAA link at the bottom of the table links to the selected station page on the NOAA site.

Additional parameters allow choice of curl (default) or file_get_contents as the method to read the NOAA site - if you get NOAA not found errors it may be that your host has disabled curl - try file_get_open instead.



A default stylesheet is installed in the media folder and is referenced by a style prefix (default = 'modustides_') specified in the parameters. This can either be edited directly (it is in [siteHome]/media/mod_ustides/css/mod_ustides.css ) or overridden in the normal way.

The following classes are used with the prefix: table, td, oddrow, evenrow, pretext, date, posttext, footer.

This is the display code to show how the styling works with the default class prefix:

<div class="modustides_">
<div class="modustides_pretext">Text before table
<div class="modustides_date ">Sun 10 Aug</div>
<div style="width:150px; margin-left:auto; margin-right:auto; ">
<table style="width:150px;">
<tr class="oddrow">
<tr class="evenrow">
<tr class="oddrow">
<div class="modustides_posttext">Text after table</div>
<div class="modustides_footer">Footer text</div>

This is the default stylesheet as supplied:

.modustides_ { background: #e0e0f0; color: #ffffff; padding: 5px; }
.modustides_date { margin-left:auto; margin-right:auto; padding: 2px 5px 2px 5px;
background: #a0a0a0; font-weight:bold; width:80px; }
.modustides_tablediv { margin-left:auto; margin-right:auto; }
.modustides_ table { width:120px; background: #ffffff; color: #400000; }
.modustides_ td { padding:2px 4px 2px 4px; }
.modustides_ .oddrow { background: #f0f0ff; }
.modustides_ .evenrow { background: #d0d0e0; }
.modustides_pretext { padding: 2px 5px 2px 5px; background: #9090a0; }
.modustides_posttext { padding: 2px 5px 2px 5px; background: #606070; color: #f0f0ff; font-size: 0.9em; }
.modustides_footer { font-size:0.75em; color: #303030; text-align:center; line-height: 1em; padding-top: 4px;}


v4.0.0 3rd April 2015
    saving data in database so only one call to NOAA per day
    implemented update server
v3.4.0 29th March 2015
    added option to use wither curl or fopen to access NOAA
v3.3.1 28th March 2015
    J3 compliance fixes
    Amended footer link to be to NOAA page for selected stationID
v3.3.0 6th August 2014
    First version for Joomla 3.x as minimal simple conversion from v2.5.0