Jump to content

shadyowl2

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by shadyowl2

  1. Great software, Have a bug for you. When flying VFR flights under 10000 ft you can not add your flight level. Software says inpu correct flight level. Will not record fuel usage in LBS only KG can this be changed? I would be interested in a custom version.

    • Like 1
  2. You need the tpl version of the module. Sorry about that. Install the tpl version. I will pm you with my email. You can email me frontpage_main.tpl and I will put it on for you.

    Thanks for all your help. Sent the info you requested to you.

  3. Install Touchdown stats by Simpilot - https://github.com/D...-TouchdownStats

    Than add the code below where you want it to display.

    <?php
    $lstats = TouchdownStatsData::get_landingstats_currentmonth(10);
    if(!$lstats)
    {
    echo 'No Greased Landings Recorded ';
    echo 'For '.date('F Y');
    }
    else
    {
    echo '<center>';
    echo '<table width="750px" border="0" cellspacing="0" cellpadding="0" class="aka_table">';
    echo '<thead><tr><th>Callsign</th><th>Pilot</th><th>Aircraft</th><th>Departure</th><th>Arrival</th><th>Landing</th></tr></thead>';
    foreach ($lstats as $row)
    {
    $pilot2 = PilotData::GetPilotData($row->pilotid);
    echo '<tr><td>';
    echo PilotData::GetPilotCode($row->code, $row->pilotid).'</td><td>'.$pilot2->firstname.' '.$pilot2->lastname.'</td><td>';
    $aircraft = OperationsData::getAircraftInfo($row->aircraft);
    echo $aircraft->icao.'</td><td>';
    echo $row->depicao.'</td><td>';
    echo $row->arricao.'</td><td>';
    echo $row->landingrate;
    echo ' ft/min';
    echo '</td></tr>';
    }
    echo '</table>';
    echo '</center>';
    }
    ?>

    My php knowledge is just about absolute zip lol. I would like to install it under the latest flights on the main page to keep the style of the website but when i do i get this error. l

    Fatal error: Call to undefined method TouchdownStatsData::get_landingstats_currentmonth() in /home/shadyowl2/public_html/phpvms/lib/skins/ocean_blue/frontpage_main.tpl on line290

    Could i need the tpl version of the touchdownstats? I can change it to tpl and get a page from the site http://ecxva.com/phpvms/index.php/TouchdownStats/top_landings/10

×
×
  • Create New...