stuartpb Posted June 2, 2011 Report Share Posted June 2, 2011 I love the landing rate (landingstats) feature that SimPilot & Nabeel brought to phpVMS. I have always had a little niggle with it though, and that was the fact that if a pilot didn't use an ACARS program which records the land rate, or they file a PIREP manually, then the output shows 0. This can be confusing for visitors to your site. So with a slight mod to the output php, any PIREPS submitted without the landing rate present will now show "Not Recorded". You could use whatever text you want. Here's how: <?php if($pirep->landingrate == '0') {echo 'Not recorded';} else {echo "{$pirep->landingrate} ft/min"; }?> I just dropped this in a table cell on my PIREP view page: I think it makes more sense to visitors, than 0. Quote Link to comment Share on other sites More sharing options...
TAV1702 Posted June 2, 2011 Report Share Posted June 2, 2011 That's a good idea. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted June 2, 2011 Moderators Report Share Posted June 2, 2011 Good catch Quote Link to comment Share on other sites More sharing options...
flyalaska Posted June 22, 2011 Report Share Posted June 22, 2011 Where is output.php located at? Quote Link to comment Share on other sites More sharing options...
Cor Posted June 22, 2011 Report Share Posted June 22, 2011 Very good idea regards, Cor 1 Quote Link to comment Share on other sites More sharing options...
michael Kraan Posted July 13, 2012 Report Share Posted July 13, 2012 Where is output.php located at? Yes where? does anyone know that? Michael Kraan Quote Link to comment Share on other sites More sharing options...
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.