CrashGordon Posted August 4, 2009 Report Share Posted August 4, 2009 Let me start off by saying if anyone thinks I know anything about PHP, they are mistaken. ;D What I'd like to do is eliminate the comma and hub ICAO from the line the rank is on. Then, I'd like to add "Hub: " followed by the Hub ICAO on the line below. In other words it would display OMG0001 Robin Frank <flag> <Rank> Hub: <ICAO> Total Flights: <number> Total Hours: <number> rather than what it does now. Thanks. All I need to know which document it is in and approximately where. Then, I can try to figure out how to change it. : Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 5, 2009 Administrators Report Share Posted August 5, 2009 This will likely change in the next update so it's more configurable, but right now it's in: /core/common/PilotData.class.php Towards the end, there's: <?php $output = array(); $output[] = $pilotcode.' '. $pilot->firstname.' '.$pilot->lastname; $output[] = $pilot->rank.', '.$pilot->hub; $output[] = 'Total Flights: ' . $pilot->totalflights; $output[] = 'Total Hours: ' . $pilot->totalhours; You can change that there. To add a new line, do: $output[] = 'line text'; Quote Link to comment Share on other sites More sharing options...
CrashGordon Posted August 5, 2009 Author Report Share Posted August 5, 2009 Thank you. I am now going to take a break and try not to bother anyone for a while. ;D Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 5, 2009 Administrators Report Share Posted August 5, 2009 Hehehe, no problem man!! Glad to help Quote Link to comment Share on other sites More sharing options...
CrashGordon Posted August 5, 2009 Author Report Share Posted August 5, 2009 It worked. Thanks, again. 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.