Badge text

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

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’;

Thank you.  I am now going to take a break and try not to bother anyone for a while. ;D

Hehehe, no problem man!! Glad to help

It worked.  Thanks, again.