-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
Hi Lloyd, My guess is that the file is corrupted, try uploading them all again and make sure there is a folder inside of your templates or skin folder named realschedulelite and that has all the tpl files in it. The structure should be root/core/templates/realschedulelite/(all the tpl files) or root/lib/skins/(your skin)/realschedulelite/(all the tpl files) Let us know how you make out. -
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
I can look at some type of configuration option to only track where the aircraft are and not the next destination. Maybe an option for the next version. -
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
The fix is here - http://forum.phpvms.net/topic/2791-realschedulelite-beta-10/page__p__18405#entry18405 and will be updated in the next version. -
Give this a shot, works for me to get the flights after the midnight hour. <?php $query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC"; $list = DB::get_results($query); echo '<h3>Upcoming Arrivals - Current Time is '.date('G:i').'</h3>'; echo '<table width="100%" border="1">'; echo '<tr><td>Flight Number</td><td>Departure</td><td>Arrival</td><td>Arrival Time</td><td>Aircraft</td><td>Status</td></tr>'; $count = 0; foreach($list as $flight) { if(date('G:i') >= '23') {$time = '0';} else {$time = date('G:i');} if(($flight->arrtime + 0) > $time) { if($count < 5) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tr><td>'.$flight->flightnum.'</td><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>'; echo '<td>'; if(($flight->arrtime - $time) <= 1) { echo 'Arriving Soon'; } else { echo 'In Flight'; } echo '</td></tr>'; $count++; } } } echo '</table>'; ?>
-
If this is what you guys are looking for I will have to mess with it a little. Right now it is just looking for upcoming flights between the current time and midnight, it does not look "around the corner" until after midnight.
-
It's Sunday and by the looks of your admin panel none of the flights are available on Sunday, only Mon through Sat.
- 1 reply
-
- 1
-
Remember that this is php coding - it needs to be enclosed in php tags - ie <?php and ?> I have changed the original post to include them - sorry.
-
Schedule Search (Airline, Aircraft, Arrival, Departure)
simpilot replied to simpilot's topic in Simpilot Group Addons
I re-attached it to the original post in this thread. -
Is there any output at all? Do you have any schedules or aircraft? It works for me here on ver 934. If there is any error please post it.
-
I think what you could do to reduce the load on the server and from recreating the siggy so many times would be to use the individual pilot signature regenerate function already available but hook it to the acars map. Basically build a function into the acars map that regnerates the pilot badge when the pilots flight status, ie - departing, in flight, decending, etc, changes on the flight board. That way you are not regenerating everyones siggy, and you are only regenerating the active pilots siggy when his status changes not every time the map reloads. something like if($status->old <> $status->new) { pilotdata::regeneratesiggy($pilot->id);}
-
This is a pretty dirty way to do it (the sql query's really need to be in a data class, not in the page) but you could build a module around it <?php $query = "SELECT * FROM phpvms_schedules ORDER BY arrtime + 0 ASC"; $list = DB::get_results($query); echo '<h3>Upcoming Arrivals - Current Time is '.date('G:i').'</h3>'; echo '<table width="100%" border="1">'; echo '<tr><td>Departure</td><td>Arrival</td><td>Arrival Time</td><td>Aircraft</td><td>Status</td></tr>'; $count = 0; foreach($list as $flight) { if(($flight->arrtime + 0) > date('G:i')) { if($count < 5) { $aircraft = OperationsData::getAircraftInfo($flight->aircraft); echo '<tr><td>'.$flight->depicao.'</td><td>'.$flight->arricao.'</td><td>'.$flight->arrtime.'</td><td>'.$aircraft->fullname.'</td>'; echo '<td>'; if(($flight->arrtime - date('G:i')) <= 1) { echo 'Arriving Soon'; } else { echo 'In Flight'; } echo '</td></tr>'; $count++; } } } echo '</table>'; ?> This will show the next 5 flights scheduled to arrive and is written to work with 24 hour date format, so if you are using 12 hour date format with am/pm in your schedules you will have to modify the date function. It should look something like Pretty plain but you can build it up how you would like and skin it.
-
I have tried what you have here on my local server running 934 and I cannot duplicate the issue, I attached a screenshot of what I get. I would make sure you have not modified that template, and go ahead and update to the latest.
-
Try adding </div> at the very end of the file...
-
I use Great Circle Mapper for static map displays, it is easy to use and easy to get the variables you need from phpvms to create the map. I use it on my forntpage and also in the pilot profiles. http://www.newenglandvirtual.com/index.php/profile/view/1 is an example - the great circle mapper site is http://www.gcmap.com/
-
It can be done fairly easily if you don't want anything fancy, you can see what I built on my site. On the frontpage lower left here - http://www.newenglandvirtual.com/ - is a box showing the newest screenshot uploaded by a pilot. And then the gallery is here http://www.newenglandvirtual.com/index.php/Screenshots where you can see all the screenshots and logged in pilots can upload and rate shots. I also built an approval section in for the admin to approve a shot before being displayed in the gallery to make sure nothing that you do not need to have posted shows up on the site.
-
Not sure if this is what you are thinking but give it a try... <?php $country_info = DB::get_results('SELECT COUNT(pilotid) as total, location FROM '.TABLE_PREFIX.'pilots GROUP BY LOCATION'); $country_count = DB::get_row('SELECT COUNT(DISTINCT location) AS tot FROM '.TABLE_PREFIX.'pilots'); $column = '0'; if($country_count->tot >= 2) { $column = '1'; } if($column == '1') { echo '<table cellspacing="1" cellpadding="1" border="1">'; echo '<tr><th width="150px"><div align="left">Country Location</div></th>'; echo '<th width="100px"><div align="center">Pilots</div></th>'; echo '<th width="150px"><div align="left">Country Location</div></th>'; echo '<th width="100px"><div align="center">Pilots</div></th></tr>'; foreach($country_info as $country) { if ($column % 2) { echo '<tr>'; } echo '<td align= "left">'; echo '<img src="'.Countries::getCountryImage($country->location).'" /> '; echo Countries::getCountryName($country->location); echo '</td>'; echo '<td align="center">'; echo ' ('.$country->total.')'; echo '</td>'; if (!$column % 2) { echo '</tr>'; } $column++; } if (!$column % 2) { echo '<td>Â </td><td>Â </td></tr>'; } echo '</table>'; } else { echo '<table cellspacing="1" cellpadding="1" border="1">'; echo '<th width="150px"><div align="left">Country Location</div></th>'; echo '<th width="100px"><div align="center">Pilots</div></th>'; foreach($country_info as $country) { echo '<tr>'; echo '<td align= "left">'; echo '<img src="'.Countries::getCountryImage($country->location).'" /> '; echo Countries::getCountryName($country->location); echo '</td>'; echo '<td align="center">'; echo ' ('.$country->total.')'; echo '</td>'; echo '</tr>'; } echo '</table>'; } ?>
-
You can run ALTER TABLE `airmail` CHANGE `subject` `subject` VARCHAR( 40 ) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL in your airmail table using phpmyadmin or similar. Change the 40 to however big of a field you would like.
-
It is basically the same minus the route builder and maping scripts. Although it does no assign flights it puts the ac at it's last arrival point and also will only allow a pilot to bid on flights available to him from the airfield he is at, or buy a jumpseat ticket to another airfield if the y desire. I am thinking of adding the option to actually assign a flight to a pilot, although I don't think i would stay at a va that told me where I had to fly I guess it may be desireable to some that sre trying ti imitate real world in every detail.
-
The beta has been out for a few days - http://forum.phpvms.net/topic/2791-realschedulelite-beta-10/
-
You should have that functionality already here - http://www.omega-air.org/index.php/routemap - but for some reason it does not display, maybe the tpl got changed or something or it is not available on the version you are running. I am running 879 and still have it here - http://www.newenglandvirtual.com/index.php/routemap I only have it set to show 6 routes but you can set it for more.
-
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
The main screen is realschedule_index.tpl -
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
Hi Alex, Each flight is bid on individually so the answer is yes, but.... the next leg can not be bid on until the aircraft "arrives" at the airport. so, the KATL - KDEN leg will not become available until a pilot flies the KBOS - KATL leg and gets the aircraft to KATL. -
2.0 coming along
-
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
Nabeel has set up a project in the bug tracker for REALScheduleLite You can find it here -> http://bugs.phpvms.net/browse/RSL Please report any future bugs through the bug tracking system. THANKS! -
REALScheduleLite beta 1.0 [DEPRECATED]
simpilot replied to simpilot's topic in Simpilot Group Addons
Found the issue Open realschedulelite_airport_details.tpl and find line 92 $location = PIREPData::getLastReports(Auth::$userinfo->pilotid, 1, ''); replace with $location = RealScheduleLiteData::get_pilot_location(Auth::$userinfo->pilotid); Save file. Should fix the error, the fix will be included in 1.1