Jump to content

Total Earnings in Signature


TB1

Recommended Posts

Hey guys.

I just wanted to share with you a small bit of code that I am using. This will format your total earnings in your pilot's signatures as a monetary amount.

An example of this is in my forum signature.

Should you wish to use it, the code needs to be placed in line 977 of the PilotData.class.php file. Overwrite anything that's already there but I would advise you make a backup.

Hope someone finds this useful!

if(Config::Get('SIGNATURE_SHOW_EARNINGS') == true)
{
$output[] = 'Total Earnings: ' . FinanceData::FormatMoney($pilot->totalpay);
}

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