Jump to content

CFVA

Members
  • Posts

    107
  • Joined

  • Last visited

Everything posted by CFVA

  1. I have deleted & re-installed all the files for this module and now it seems to work!! Not sure of why, but there you go. Thanks for all your help guys.
  2. 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)
  3. PHP 5.6 tried with PHP 5.5 also, & freehostia.com
  4. 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'); } }
  5. Anyone please?? What does this answer mean?
  6. How, please. I;m no php expert
  7. 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 36Deprecated: 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 37Deprecated: 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
  8. 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
  9. 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?
  10. CFVA

    skyBlue v1

    Think I will just reinstall the skin and start again.
  11. CFVA

    skyBlue v1

    Added > at end. Still same error
  12. CFVA

    skyBlue v1

    lakervirtual.com
  13. CFVA

    skyBlue v1

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

    skyBlue v1

    Now have a problem that when selecting a flight when clicking on Add to Bid, I get a message No route passed "
  15. CFVA

    Ocean Blue v2

    Have the date show as d/m/Y not Y/m/d, i.e. UK format not US
  16. CFVA

    skyBlue v1

    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 (£)
  17. CFVA

    skyBlue v1

    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
  18. CFVA

    Ocean Blue v2

    Hi. Where do I change the date format from Y-m-d to d-m-Y. Setting in PHPVMS are set for this format but skin still show Y-m-d
  19. Which file has the footer code, the very last part of the home screen that shows: About SkyBlue Air Recent Activity Our Partners
  20. CFVA

    Date format

    Hi. Where do I change the date format from Y-m-d to d-m-Y. Setting in PHPVMS are set for this format but skin still show Y-m-d
  21. CFVA

    JSON error??

    Thanks for the reply, Not sure how you know I didn't search!! That "fix" didn't work, so hence the new thread.
  22. 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
  23. 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...