Jump to content

CFVA

Members
  • Posts

    107
  • Joined

  • Last visited

Posts posted by CFVA

  1. 22 minutes ago, servetas said:

    Open your core/common/FleetData.class.php file and replace where:

    
    public function

    with:

    
    public static function

     

    there is only 'public static' not 'public function'

    Part of FleetData.class.php:

    <?php

        // -- Class Name : FleetData
        // -- Purpose : Gathers Detailed Information on VA Aircrafts
        // -- Created On : 10/27/2013
        // -- Last Revised On : 10/27/2013
        // -- Version : 1.0
        class FleetData extends CodonData
        {
            public static

            // -- Function Name : GetAllAircrafts
            // -- Params : 
            // -- Purpose : 
            function GetAllAircrafts()
            {
                $sql = 'SELECT * FROM '.TABLE_PREFIX.'aircraft WHERE `enabled` = 1';
                return DB::get_results($sql);
            }

            public static

            // -- Function Name : getBasicInfo
            // -- Params : $id
            // -- Purpose : 
            function getBasicInfo($id)

  2. I've done that and still got same error messages. Here is fleet.php

    <?php
    /**
     * phpVMS - Virtual Airline Administration Software
     * Copyright (c) 2008 Nabeel Shahzad
     * For more information, visit www.phpvms.net
     *    Forums: http://www.phpvms.net/forum
     *    Documentation: http://www.phpvms.net/docs
     *
     * phpVMS is licenced under the following license:
     *   Creative Commons Attribution Non-commercial Share Alike (by-nc-sa)
     *   View license.txt in the root, or visit http://creativecommons.org/licenses/by-nc-sa/3.0/
     *
     * @author Nabeel Shahzad
     * @copyright Copyright (c) 2008, Nabeel Shahzad
     * @link http://www.phpvms.net
     * @license http://creativecommons.org/licenses/by-nc-sa/3.0/
     */
     
    class Fleet extends CodonModule
    {

        public function index()
        {
            $this->set('aircrafts', FleetData::GetAllAircrafts());
            $this->show('fleet/fleet_list');
            
        }
        
            public function view($aircraftid)
        {
            
            $this->set('basicinfo', FleetData::getBasicInfo($aircraftid));
            $this->set('purchasedate', FleetData::getDateOfPurchase($aircraftid));
            $this->set('firstflight', FleetData::getFirstFlight($aircraftid));
            $this->set('lastflight', FleetData::getLastFlight($aircraftid));
            $this->set('detailedinfo', FleetData::getAircraftTotals($aircraftid));
            $this->set('recentflights', FleetData::get5MostRecentFlights($aircraftid));
            $this->set('scheduledflights', FleetData::getAllScheduledFlights($aircraftid));
            $this->show('fleet/fleet_view');
            
        }
    }

     

  3. Install this module (php verion for PHPVMS 5.5.2) and get this error when selecting an aircraft, and the following screen http://....../fleet/view/(any aircraft)

    gives this error:

    Deprecated: Non-static method FleetData::getAircraftTotals() should not be called statically, assuming $this from incompatible context in /home/www/lakervirtual.com/core/modules/Fleet/Fleet.php on line 36

    Deprecated: Non-static method FleetData::get5MostRecentFlights() should not be called statically, assuming $this from incompatible context in /home/www/lakervirtual.com/core/modules/Fleet/Fleet.php on line 37

    Deprecated: Non-static method FleetData::getAllScheduledFlights() should not be called statically, assuming $this from incompatible context in /home/www/lakervirtual.com/core/modules/Fleet/Fleet.php on line 38

    after those messages rest of page displays OK.

    Any ideas anyone??

    Thanks

  4. On 1/2/2018 at 5:57 PM, LakerVirtual said:

    Importing flight schedules from a CSV file and although in the CSV file the daysofweek is 0123456, when imported schedule shows flights with no SATURDAY scheduled? 

     

    Any ideas anyone? 

    Turns out the CSV editor (Ron's Editor) had added a blank space at the start of the string, so " 0123456" was being imported as " 012345", 7 characters with the space, the 8th being the 6

     

     

  5. 18 minutes ago, flyalaska said:

    You don't have a closing tag on your googlemap  key

    
    <script async defer src="https://maps.googleapis.com/maps/api/js?key=your key&callback=initMap"

    see if that helps. First thing that I saw.

    Added > at end. Still same error

  6. 33 minutes ago, flyalaska said:

    What did you change? Add any new MODs that added new jquery? I need your URL.

    Nope. Add bid works with default skin & ocean blue, just not skyblue 

  7. SOLVED ALSO!!

    LAYOUT.PHP change My Earnings(<?php setlocale(LC_MONETARY.....

    to

    My Earnings(<?php setlocale(LC_MONETARY,"en_GB.UTF-8"); ?><?php echo money_format("%n", Auth::$userinfo->totalpay); ?> )

    New question:

    Where do you change the currency, from $ to UKP (£)

     

  8. SOLVED: LAYOUT.TPL is the file

    Which file has the footer code, the very last part of the home screen that shows:

     About SkyBlue Air

     Recent Activity 

    Our Partners

  9. Clicking VIEW DETAILS of a flight, on the resulting page under Schedule Frequency I get this error:

    Open Flash Chart

    JSON Parse Error [syntax Error]

    Error at character 0, line 1:

    0: {

    Any ideas anyone please?

    GW

  10. Laker Airways Virtual, based on the pioneering Sir Freddie Laker's airline of 70's, is now open for new pilots. Our

    routes are a mixture of real Laker Airways routes, in Europe and Central America and the pioneering SKYTRAIN services

    from the UK to the USA, along with some fictional routes that we are sure Sir Freddie would have flown. To fly with

    us you must become a registered pilot with us. The application form to join can be found on the Home Page which we

    ask you to read carefully. You need to download our flight tracking and reporting software CAVacars which is more

    than just an automated PIREP (pilot report) system. It features: Automated Flight Tracking and Pilot Flight Reports

    (pireps), Pilot Rosters and Ranks, Moving Flight Map, Pilot "Virtual Salary". Come join us at

    http://www.lakervirtual.co.uk. GET VIRTUAL PAY FOR FLYING!

×
×
  • Create New...