Templates and Projects support > Php templates

weather blues 2 front page help

(1/1)

fastbysuzuki:
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?

Andy9164:
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

fastbysuzuki:
Andy, sorry about the late reply thanks ever so much

Navigation

[0] Message Index

Go to full version