Jump to content

Badge text


CrashGordon

Recommended Posts

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

Link to comment
Share on other sites

  • Administrators

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...