saapilot
-
Posts
27 -
Joined
-
Last visited
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Posts posted by saapilot
-
-
Good day,
Would just like some feedback from other users to see if I could have more effective flight schedules. Currently I use real world schedules where the same route (flight number) is flown by different aircraft over the period of a week. I have appended A,B,C,D,E,F,G to the flight number to represent the day of the week, the flight numbers thus appear as 230A, 230B, 230C, etc. The schedules don't import without a unique flight number even though the aircraft flying the route may differ.
Are there any other possibilities to having three dimesional flight schedules ie flight number, day of the week and aircarft without using the method described above?
Other ideas would also be useful.
Many thanks
Mark
-
ZIP file returns "Invalid".....
-
Many thanks for your valued input once again....
Mark
-
Hi Nabeel,
Is there a way to have a folder under the modules folder where we can store all these so called custom folders. By way of example, /core/modules/mymodules/module1/module1.php and so on. I get an error when I try and do it like this, something along the lines of module not found...
It would be helpful not to clutter the modules folder with all these custom folders.
Thanks
Mark
-
Added the code to app.config.php which solved the problem.
-
Extract from config file:
# VA Central
Config::Set('VACENTRAL_ENABLED', true);
Config::Set('VACENTRAL_API_SERVER', 'http://api.phpvms.net');
Config::Set('VACENTRAL_API_KEY', '7f6775e15d9XXXXXXXXXXc01090a0980');
Code amended.
Thanks
Mark
-
Hi Nabeel,
Thanks, but I don't have that option in the admin panel
Mark
-
Hi Nabeel,
I have registered with VA Central and inserted the code into my local.config.php file, do I need to do anything else as nothing seems to be updating. Also can't upload a logo.
Thanks
Mark
-
Hi Trev,
Add the following to local.config.php and this will free up the schedules for multiple bookings.
# If someone places a bid, whether to disable that or not
Config::Set('DISABLE_SCHED_ON_BID', false);
Config::Set('DISABLE_BIDS_ON_BID', false);
Cheers
Mark
-
Hi Alex,
Seems like you are using Cpanel hosting, if so your username should be 'swflying_alex'.
Cheers
Mark
-
Thanks Nabeel, that did it.
-
Good day,
Just added new airline but it does not show in list of airlines, already have five others there, it is however listed in the database. When trying to import flight schedules for this airline it fails. I am running v930.
Any help appreciated.
Mark
-
Hi Nabeel,
Something has changed with the "latest flights" module on the frontpage, no flights are shown.
Regards
Mark
-
Hi Jeff,
Is it possible to filter the itinery by airline? I have different airlines and would like the itinery to be generated for a selected airline only.
Thanks in advance.
Mark
-
Hi Nabeel,
I have noticed this for awhile now and see that the bug is still there in this beta. From the "Pilot Center" to "View VA Finances" on the graph the total revenue line is actually the "Net Profit" as I see it. Worth a look I may be wrong.
Cheers
Mark
-
Much obliged. All working now!!!
Many thanks for the prompt response.
Mark
-
-
The site has been going since December, and I have upgraded every so often to not fall too far behind the beta's.
I have been using the tpl's that come with the downloads and checking them with winmerge for changes.
The live acars map is fine, it seems to be with the drawing of the route thats the problem, although viewing the route from the admin section does display without problems. I assume it's the same tpl that generates the route map.
Mark
-
Good day,
When I use IE8 and view a PIREP report the Google map comes up blank, only the heading "Route Map" displays after the ACARS report. If I use FF the map displays perfectly.
I know the one simple solution "Don't use IE", I would appreciate some help please.
Using 2.1.915 and only added <div> at the top of the code to center in display area, no other changes.
Cheers
Mark
-
This is a fantastic initiative, can't wait to see this one fly
All the best with this.
Mark
-
Here's the working code, to go into frontpage_recentbids.tpl
<div id="mainbox">
<h3>Flight Departures Board</h3>
<?php
if(!$lastbids)
{
echo '<p align="center">No flights have currently been booked</p>';
return;
}
?>
<table width="100%" class="tablesorter">
<thead>
<tr bgcolor="#336699">
<th height="25" width="15%"><div align="center">Flight Number</div></th>
<th height="25" width="13%"><div align="center">Depart</div></th>
<th height="25" width="13%"><div align="center">Arrive</div></th>
<th height="25" width="20%"><div align="center">Pilot Name</div></th>
<th height="25" width="15%"><div align="center">Aircraft</th>
<th height="25" width="12%"><div align="center">Tail No.</div></th>
<th height="25" width="12%"><div align="center">Flight Time</div></th>
</tr>
</thead>
<tbody>
<?php
foreach($lastbids as $lastbid)
{
?>
<tr bgcolor="#DFF4FF">
<td height="25" width="15%" align="center"><?php echo $lastbid->code . $lastbid->flightnum; ?></a> </td>
<td height="25" width="13%" align="center"><span><?php echo $lastbid->depicao; ?></span></td>
<td height="25" width="13%" align="center"><span><?php echo $lastbid->arricao; ?></span></td>
<?php
$params = $lastbid->pilotid;
$pilot = PilotData::GetPilotData($params);
$pname = $pilot->firstname;
$psurname = $pilot->lastname;
?>
<td height="25" width="20%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td>
<td height="25" width="15%" align="center"><span><?php echo $lastbid->aircraft; ?></span></td>
<td height="25" width="12%" align="center"><?php echo $lastbid->registration?></td>
<td height="25" width="12%" align="center"><span><?php echo $lastbid->flighttime; ?> Hours</span></td>
</tr>
<?php
}
?>
</tbody>
</table>
<hr>
</div>
Add the following to frontpage_main.tpl
MainController::Run('FrontBids', 'RecentFrontPage', 5); -
Thanks Nabeel,
That worked, I also had to change the reference from "bid" to "lastbid"
Mark
-
Good day,
I'm trying to display current bids, in table format, in the main body of the front page without much luck. The problem is that no data is displayed even though there are bids, there are also no error messages displayed. Any help would be greatly appreciated.
<div id="mainbox"><h3>Flight Departures Board</h3>
<table width="100%" class="tablesorter">
<thead>
<tr bgcolor="#336699">
<th height="25" width="10%"><div align="center">Flight Number</div></th>
<th height="25" width="10%"><div align="center">Pilot ID</div></th>
<th height="25" width="30%"><div align="center">Aircraft Type</div></th>
<th height="25" width="10%"><div align="center">Tail No.</div></th>
<th height="25" width="15%"><div align="center">Depart Airport</th>
<th height="25" width="15%"><div align="center">Arrive Airport</div></th>
<th height="25" width="10%"><div align="center">Flight Time</div></th>
</tr>
</thead>
<tbody>
<?php
if(!$bids)
{
echo 'No flights have currently been booked';
return;
}
foreach($bids as $bid);
{
?>
<tr bgcolor="#DFF4FF">
<td height="25" width="10%" align="center"><?php echo $bid->code . $bid->flightnum; ?></a> </td>
<?php
$params = $bid->pilotid;
$pilot = PilotData::GetPilotData($params);
$pname = $pilot->firstname;
$psurname = $pilot->lastname;
?>
<td height="25" width="10%" align="center"><span><?php echo $pname; ?> <?php echo $psurname; ?></span></td>
<td height="25" width="30%" align="center"><span><?php echo $bid->aircraft; ?></span></td>
<td height="25" width="10%" align="center"><?php echo $bid->registration?></td>
<td height="25" width="15%" align="center"><span><?php echo $bid->depicao; ?></span></td>
<td height="25" width="15%" align="center"><span><?php echo $bid->arricao; ?></span></td>
<td height="25" width="10%" align="center"><span><?php echo $bid->flighttime; ?> Hours</span></td>
</tr>
<?php
}
?>
</tbody>
</table>
<hr>
</div>
Many thanks
Mark
-
Hi Mitchell,
Many thanks for your time, it works a treat!!!!
Mark
Why?
in Off-Topic Banter
Posted
Gentlemen,
My response to an email I received regarding the template design:
Just a few pointers to clear things up:
I honestly don't believe that I have stolen certainly haven't copied and pasted anything from anyone, everyone is using code that has been generously provided by talented programmers to display essentially similar data, with subtle differences in presentation.
Dave, please accept my humble apologies I will amend the template on my return from a business trip next week.
Mark