Author Topic: weather blues 2 front page help  (Read 1717 times)

Offline fastbysuzuki

  • Jr. Member
  • **
  • Posts: 44
    • Welcome to nci fleetwood
weather blues 2 front page help
« on: November 05, 2019, 09:57:28 AM »
hi at the moment i have a test site for weather blue 2 here https://ncirossallpoint.co.uk/test/index.php

i am struggling with php i would like to add the text in bold text at the end of this line. The meteorological day used at this station ends at 10 am. Please ensure the time/date stamp is current

could someone please give me instructions?

Offline Andy9164

  • Full Member
  • ***
  • Posts: 87
    • Midlifedad
Re: weather blues 2 front page help
« Reply #1 on: November 20, 2019, 09:46:01 AM »
In the index.php file somewhere between line 80 and 90 there is this line.

<p><?php echo $Tr_ind_station.' '.$stationtype.', '.$Tr_ind_update.' '.$interval.' '.$Tr_minutes.'<br />'.$Tr_ind_mday.' '.$rollovertime; ?>.

Change it to this:

<p><?php echo $Tr_ind_station.' '.$stationtype.', '.$Tr_ind_update.' '.$interval.' '.$Tr_minutes.'<br />'.$Tr_ind_mday.' '.$rollovertime; ?>. <br /><b>Please ensure the time/date stamp is current</b>

This will put the additional text in bold on the next line. If you want it on the same line remove <br /> so it reads

<p><?php echo $Tr_ind_station.' '.$stationtype.', '.$Tr_ind_update.' '.$interval.' '.$Tr_minutes.'<br />'.$Tr_ind_mday.' '.$rollovertime; ?>.<b>Please ensure the time/date stamp is current</b>

This is actually outside of php and is standard html.

Andy
« Last Edit: November 20, 2019, 09:50:26 AM by Andy9164 »

Offline fastbysuzuki

  • Jr. Member
  • **
  • Posts: 44
    • Welcome to nci fleetwood
Re: weather blues 2 front page help
« Reply #2 on: November 30, 2019, 02:56:32 PM »
Andy, sorry about the late reply thanks ever so much