Jump to content

mattia

Members
  • Posts

    267
  • Joined

  • Last visited

Posts posted by mattia

  1. Hi

    I wrote this code to get the hours of a pilot on a single airplane in profile_stasts.tpl but don't work

    <?php
    $query = 'SELECT flighttime FROM '.TABLE_PREFIX.'pireps
    WHERE aircraft = 6
    AND pilotid = '.Auth::$userinfo->pilotid';  --------------->I believe that the error is here
    $result=DB::get_row($query);
    echo $result->distance;
    {
    }
    ?>
    

    Can you help? many thanks

    Regards

  2. hi kyle, thanks for the module but i have this error

    Fatal error: Call to undefined method VAStatsData::monthly_promotions() in /var/www/virtual/xxxxxxmodules/vStatsCenter/vStatsCenter.php on line 47

  3. many thanks kyle :D

    i have add this <?php MainController::Run('vAwards', 'showPilotIssuedAwards', $userinfo->pilotid); ?>

    in my profile_main.tpl, i have added the award, but in pilot center dont'view the award

×
×
  • Create New...