[02:21:27] Engine 2 is on
[02:22:23] Engine 1 is on
[02:24:40] Flaps set to position 3
How can I delete the time ([xx:xx:xx]) from the pirep log of pirep_viewreport.tpl ??
I’m using SmartCars… Thanks you =)
[02:21:27] Engine 2 is on
[02:22:23] Engine 1 is on
[02:24:40] Flaps set to position 3
How can I delete the time ([xx:xx:xx]) from the pirep log of pirep_viewreport.tpl ??
I’m using SmartCars… Thanks you =)
This is what is reported by the acars software and storred into your pireps table. The only way to remove times is updating your phpvms pireps database table which has to be done for each pirep. Otherwise, I would suggest getting in touch with smartCars support team.
You can exclude certain elements of data from being shown, I am not familiar with the exact php code to do so but you’re essentially creating an IF statement:
IF this format [01:02:03] Engine started,ONLY display Engine started. Its complex but you’ll be able to get it done if you truly want to.
Taking into consideration what t_bergman suggested and trying to make it more simple, can you give that a try? Open your pirep_viewreport.tpl and find this:
echo $line .'\<br /\>';
and replace it with:
echo preg\_replace('/\[[0-9]{2}:[0-9]{2}:[0-9]{2}\]/', '', $line) .'\<br /\>';
On 8/1/2017 at 3:21 PM, servetas said:
Taking into consideration what t_bergman suggested and trying to make it more simple, can you give that a try? Open your pirep_viewreport.tpl and find this:
echo $line .‘<br />’;
and replace it with:
echo preg_replace(‘/[[0-9]{2}:[0-9]{2}:[0-9]{2}]/’, ‘’, $line) .‘<br />’;
It works !! thanks