Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Centralising the links at the bottom of the page

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
richard_newberry
Posts: 500
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Centralising the links at the bottom of the page

Post by richard_newberry »

http://kirbymuxloe-weather.dyndns.org/NOAA-reports.php

How do I centralise the href links on this page I've tried everything but can't get the code right? (same as index.htm at the bottom)

Many thanks
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
water01
Posts: 3670
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10/11 64bit Synology NAS
Location: Burnham-on-Sea
Contact:

Re: Centralising the links at the bottom of the page

Post by water01 »

You have the code outside the /body and /html terminators and it is missing the opening <table> and the closing </p> for the credits.

Code: Select all

</div> <!-- END noaa_rep_container -->
</body>
</html>
<tr>
    <td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a href="record.htm">records</a>::<a href="monthlyrecord.htm">monthly&nbsp;records</a>::<a href="top10_records.php">top 10 records</a>::<a href="trends.htm">trends</a></td>
</tr>
</table>
<p class="credits"><br />
Page updated 11/01/2016 23:12:23<br>
powered by <a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a><br>
It should be like this

Code: Select all

</div> <!-- END noaa_rep_container -->
<table>
<tr>
    <td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a href="record.htm">records</a>::<a href="monthlyrecord.htm">monthly&nbsp;records</a>::<a href="top10_records.php">top 10 records</a>::<a href="trends.htm">trends</a></td>
</tr>
</table>
<p class="credits"><br />
Page updated 11/01/2016 23:12:23<br>
powered by <a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a><br>
</p>
</body>
</html>
Also the page seems to be updated at realtime if the date and time is anything to go by, which is rather pointless as it is a daily report.
David
Image
richard_newberry
Posts: 500
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Centralising the links at the bottom of the page

Post by richard_newberry »

It doesnt update on realtime it just updates when you load the page.

I will change it tomorrow night.

Many thanks.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
richard_newberry
Posts: 500
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Centralising the links at the bottom of the page

Post by richard_newberry »

if I change this it doesn't work.

// Now just end the page structure
?>
<tr>
<td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>::<a href="gauges.htm">gauges</a>::<a href="today.htm">today</a>::<a href="yesterday.htm">yesterday</a>::<a href="thismonth.htm">this&nbsp;month</a>::<a href="thisyear.htm">this&nbsp;year</a>::<a href="record.htm">records</a>::<a href="monthlyrecord.htm">monthly&nbsp;records</a>::<a href="top10_records.php">top 10 records</a>::<a href="trends.htm">trends</a></td>
</tr>
</table>
<p class="credits"><br />
Page updated <?php echo date('d/m/Y H:i:s') ?><br>
powered by <a href="http://sandaysoft.com/products/cumulus" target="_blank">Cumulus</a><br>
</p>

I would like the navigation centered on the page that's all.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Centralising the links at the bottom of the page

Post by beteljuice »

Are you talking about menu wrap ?

Just put a <space> NOT &nbsp; between the :: seperators.

Thus:

Code: Select all

<td colspan="4" class="td_navigation_bar">:<a href="index.htm">now</a>: :<a href="gauges.htm">gauges</a>: :<a href="today.htm">today</a>: :<a href="yesterday.htm">yesterday</a>: :<a href="thismonth.htm">this&nbsp;month</a>: :<a href="thisyear.htm">this&nbsp;year</a>: :<a href="record.htm">records</a>: :<a href="monthlyrecord.htm">monthly&nbsp;records</a>: :<a href="top10_records.php">top 10 records</a>: :<a href="trends.htm">trends</a></td>
This is an inherited problem from when Cumulus had far fewer pages. The current options 'break' the containing <table>.
Image
......................Imagine, what you will KNOW tomorrow !
richard_newberry
Posts: 500
Joined: Tue 12 Apr 2011 10:23 pm
Weather Station: Watson W-8186
Operating System: Raspbian Bookworm & Debian 12
Location: Leicester
Contact:

Re: Centralising the links at the bottom of the page

Post by richard_newberry »

I just want the navigation bar to be centred on the page underneath the table please.
Desford Weather (at parents)
https://desford-weather.co.uk

Countesthorpe Weather (at mine)
https://countesthorpe-weather.co.uk
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Centralising the links at the bottom of the page

Post by beteljuice »

... then replace the menu <td> with the one I posted above.
Image
......................Imagine, what you will KNOW tomorrow !
Locked