Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About Royzzzz

  • Rank
  1. Hey folks, This is the code for showing the money on your PROFILE page: <?php echo FinanceData::FormatMoney($userinfo->totalpay) ?> I was wondering what is the code for the MAIN PAGE... It is not the same code!
  2. HI, Thanks for the replay! but unfortunately is that for hours and total flight etc.... But what i wanna know is Hub:, Rank:, Current location:, etc on the front page...
  3. Hi guys, I was trying tho put pilot stats like: Hub:, Rank:, Current location:, etc on the frontpage. But it is not working! look at s screenshot for the problem! And here is the code: <li class="list-group-item"> <b>HUB:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $userinfo->hub;?></p> </li> <li class="list-group-item"> <b>Rank:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $userinfo->rank;?></p> </li> <li class="list-group-item"> <b>Hours till next rank:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo ($nextrank->minhours - $pilot_hours)?></p> </li> <li class="list-group-item"> <b>Current location:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo $report->arricao; ?></p> </li> <li class="list-group-item"> <b>Average Touchdown Rate:</b> <p class="pull-right" style="color: #3C8DBC"></p> </li> <li class="list-group-item"> <b>Days Until Inactive:</b> <p class="pull-right" style="color: #3C8DBC"><?php echo Config::Get('PILOT_INACTIVE_TIME');?></p> </li>
  4. Royzzzz


    Well, Its a sort of working... I got only 1 Flight now instate of 4 (http://prntscr.com/ditm7v) The code now: (http://prntscr.com/ditmoi)
  5. Royzzzz


    Hi, I wanna make an logbook for the profile page, but I get an error: Parse error: syntax error, unexpected '(' on line 225 This is the code : <?php $count = 6; $pireps = PIREPData::getRecentReportsByCount($userinfo->pilotid) ($count); <--LINE 225 ?> <?php if(count($pireps) > 0) { foreach ($pireps as $pirep) { $pilotinfo = PilotData::getPilotData($pirep->pilotid); $pilotid = PilotData::getPilotCode($pilotinfo->code, $pilotinfo->pilotid); echo '<tr><td><div class="label label-sm label-primary"><i class="fa fa-plane"></i></div> '.$pirep->firstname.' '.$pilotinfo->lastname.' completed '.$pirep->code.$pirep->flightnum.' from '.$pirep->depicao.' to '.$pirep->arricao.' <br></td></tr>'; } } else { echo '<tr><td>There are no recent flights!</td></tr>'; } ?> Thanks in advance!
  • Create New...