-
Posts
107 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by CFVA
-
-
17 minutes ago, servetas said:
I feel that the file is messed up. Can you attach the file so we can preview it using a code editor?
Attached
-
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) -
1 hour ago, shakamonkey88 said:
What PHP version are you using? Who is your hoster?
PHP 5.6 tried with PHP 5.5 also, & freehostia.com
-
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');
}
} -
Anyone please?? What does this answer mean?
-
How, please. I;m no php expert
-
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 38after those messages rest of page displays OK.
Any ideas anyone??
Thanks
-
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
-
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?
-
Think I will just reinstall the skin and start again.
-
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
-
1 hour ago, flyalaska said:
You had to do something or add something. That is one thing I test for. Can I have your URL?
lakervirtual.com
-
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
-
Now have a problem that when selecting a flight when clicking on Add to Bid, I get a message
No route passed
" -
1 hour ago, flyalaska said:
What exactly are you trying to do?
Have the date show as d/m/Y not Y/m/d, i.e. UK format not US
-
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 (£)
-
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
-
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
-
Which file has the footer code, the very last part of the home screen that shows:
About SkyBlue Air
Recent Activity
Our Partners
-
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
- 1
-
If you had searched first you would have found this:
Thanks for the reply,
Not sure how you know I didn't search!!
That "fix" didn't work, so hence the new thread.
-
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
-
How about you do not type in red or Comic Sans and then people might read what you have to say.
Really!
-
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!
Advanced Fleet Manager [SOLVED]
in Support Forum
Posted
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.