Jump to content

Jacques

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Jacques

  1. Hi,

    great module +5!

    but when i upload more than 8 screenshots you will get more pages... when i press page 2 ill get this message:

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'Screenshots' does not have a method 'screenshots' in /volume1/web/phpvms/core/classes/MainController.class.php on line 218

    i've tryed reinstalling the module but without any help..

    thanx,

    Jacques

    Edit: Strange when i rebooted my pc the bugg was gone :-) great app!!

  2. Yes, but somewhere there is a code that calculate the aircraft useage. With this installation there is a table added named "cond" for aircraft condition. And after installation, and all the aircraft are brought, the conditions are not all 100%. Some of my aircraft are 95% even. So where is that condition calculated?

    Hi Jakes,

    I think the landing rate needs to come from the pirep sending. and than change the cond. line in the aircraft sql. i think thats the way but i dont know the code for it....

    so after receiving a pirep (and accept it?) than it should alter the cond line witch come with this pakkage..

    Greets

  3. Hello,

    also works fine for me verry nice app!

    but i dont see any aircraft typs in the pull down menu.. any id?

    thanks

    edit: never mind found the problem in FuelCalculatorData.class.php, the link was not correct for my sql database..

  4. Hello,

    I'm trying to create a code that alter the condition of the aircraft when a pirep is been submitted.

    it looks to the landing rate, so when the landing rate is below 200 than 0.5% off the condition.

    when a landing rate is higher than 200 than 2% of condition. when a landing rate is higher than 500 than 50% off condition.

    so far i have:

    $pos = find_in_fsacars_log('TouchDown:Rate', $log);

    $landingrate = str_replace('TouchDown:Rate', '', $log[$pos]);

    $count = preg_match('/([0-9]*:[0-9]*).*([-+]\d*).*/i', $landingrate, $matches);

    if($count > 0)

    {

    PIREPData::editPIREPFields($report->pirepid, array('landingrate' => $matches[2]));

    }

    PIREPData::AppendToLog($report->pirepid, $_GET['log']);

    if ($count < -200)

    {

    aircraftdata::editaircraftfields($report->pirepid, array('cond' => $matches[100-0,5]))

    }

    if ($count > -200)

    {

    aircraftdata::editaircraftfields($report->pirepid, array('cond' => $matches[100-2]))

    }

    if ($count > -500)

    {

    aircraftdata::editaircraftfields($report->pirepid, array('cond' => $matches[100-50]))

    }

    the most is from the fsacars config file

    could anyone help me with this?

    thanx!

    grtz, Jacques

×
×
  • Create New...