Moderators ProSkyDesign Posted January 7, 2017 Moderators Report Posted January 7, 2017 (edited) [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 =) Edited January 11, 2017 by joooseb Quote
Moderators servetas Posted January 7, 2017 Moderators Report Posted January 7, 2017 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. Quote
t_bergman Posted January 8, 2017 Report Posted January 8, 2017 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. Quote
Moderators servetas Posted January 8, 2017 Moderators Report Posted January 8, 2017 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 />'; Quote
Moderators ProSkyDesign Posted January 9, 2017 Author Moderators Report Posted January 9, 2017 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.