Weather by You!

Templates and Projects support => Php templates => Topic started by: fastbysuzuki on November 05, 2019, 09:57:28 AM

Title: weather blues 2 front page help
Post by: fastbysuzuki 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?
Title: Re: weather blues 2 front page help
Post by: Andy9164 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
Title: Re: weather blues 2 front page help
Post by: fastbysuzuki on November 30, 2019, 02:56:32 PM
Andy, sorry about the late reply thanks ever so much