Jump to content

Txmmy83

Members
  • Posts

    493
  • Joined

  • Last visited

Posts posted by Txmmy83

  1. rather strange error

    Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'vAwards' does not have a method 'index' in /home/flyeurop/public_html/core/classes/MainController.class.php on line 218

    vAward.php in modules look like this:

    <?php
    /**
    Module Created By Vansers
    This module is only use for phpVMS (www.phpvms.net) - (A Virtual Airline Admin Software)
    @Created By Vansers
    @Copyrighted @ 2011
    @Under CC 3.0
    @http://creativecommons.org/licenses/by-nc-sa/3.0/
    **/
    // Version 1.0 (May.32.12) - Module Created
    class vAwards extends CodonModule
    {
    public function showPilotIssuedAwards($pilotid)
    {
    $this->set('pilotid', $pilotid);
    $this->set('allawardtpes', vAwardsData::GetAllAwardTypes());
    $this->render('vAwards/profile_issued_awards.tpl');
    }
    }
    

    using Version 2.1.v2.1.935 the (latest stable)

    I know I had Running sucessfully with one of the Beta versions of phpvms

  2. hello all,

    just for additional info...I'm working on supplementary module for CHARTER FLIGHT SYSTEM ,so the pilots must buy the aircraft to fly as charter :rolleyes:

    so I just need your idea about this!? B)

    yeah sounds good but I think this is more Interesting for small Airlines which simulates (Private Pilot or Executive/VIP) Flight Operations with smaller aircrafts

  3. ok ;)

    <title>Gol Virtual -  Aqui nós damos-lhe asas para você voar!</title>
    <link rel="stylesheet" type="text/css" href="<?php echo SITE_URL; ?>/lib/skins/GOL2012/style.css" media="screen" />
    <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/skins/GOL2012/js/jquery.core.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/skins/GOL2012/js/jquery.superfish.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/skins/GOL2012/js/jquery.jcarousel.pack.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/skins/GOL2012/js/jquery.easing.js"></script>
    <script type="text/javascript" src="<?php echo SITE_URL; ?>/lib/skins/GOL2012/js/jquery.scripts.js"></script>
    <style type="text/css">
    

    should be an easy search and replace command in dreamweaver GOL2012 to GLO2012 right?

  4. I had the same error when testing the template after download solution is simple if you look at your server if you have just extract like me it extracts in a folder called GLO2012

    where the template referenced GOL2012 just rename to that and you will see the images ;)

    hope that helps!

  5. tweak to get only fleet aircrafts that are enabled and ordered by tail registration :)

    class vFleetTrackData extends CodonData
    {
    public static function getAllAircraft()
    {
    return DB::get_results("SELECT * FROM ".TABLE_PREFIX."aircraft WHERE enabled=1 ORDER BY registration");
    }
    

  6. found out another thing it now differences between Cargo and Passengers ok but writes out Cargo Carried to the Passenger and Passenger Carried to the Cargo Loads ;)

    seems easy to fix ;)

    <?php if(count(vFleetTrackData::CargoAircraft($aircraft->id)) > 0)
    {
    ?>
    <strong>Total Passengers Carried: </strong><?php echo vFleetTrackData::countPassengers($aircraft->id);?>
    <br />
    <?php
    }
    else
    {
    ?>
    <strong>Total Cargo Carried: </strong><?php echo vFleetTrackData::countPassengers($aircraft->id);?>
    <br />
    <?php
    }
    ?>
    

    think it is only replacing the text between the strong tag

  7. hey kyle,

    thanks a lot for this great module ;)

    i have a small problem with the flights count.... it shows on all aircraft either 0 or 1. Everything else works great.

    kind regards

    Manuel

    kyle,

    I have that query on my front page

    <tt>Total Cargo Carried: </tt><?php
    $query="SELECT SUM(`load`) as totalfreight FROM `phpvms_pireps` WHERE `flighttype`='C'";
    $result=DB::get_results($query);
    echo $result[0]->totalfreight; ?> <?php echo Kgs; ?>
    

    maybe we can modify that to show only Cargo of a specific Plane?

    can confirm Manuels problem as i have the same with the flight count

    best regards,

    Thomas

  8. HI,

    My problem, i'm download and install add on, i'm not option maintenance, not prices and not possible change prices in /phpvms/admin/templates/ops_buysellaircraft.tpl because writing chinese . Before flight the % damage is no change (i'm land to -460fpm).

    Thanks for your reponse

    sorry my bad english

    Bruno

    The % damage do Not change because this Feature is Not implemented yet

×
×
  • Create New...