Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. WestJet Virtual is a Virtual Airline that mimics the real world WestJet, while still keeping a fun laid back attitude. We offer routes, charters, contests, a dedicated TS3 Server and our own custom ACARS program (WJAcars) and even a VFR club which suits the needs of every pilot. We have freeware 737's as well as payware textures for your favorite payware 737. We even offer the retired 737-200 as a retro fleet! We are also now partnered with Virtual Toronto ARTCC as a partner virtual airline. Although our Grand Opening is scheduled for May 21st, 2010 we are accepting pilots and flights now. This promises to be an active VA, in the first week of operation we have 18 pilots onboard, over 40 flights filed , and an active forum board. If you want to get in on the ground level of a great virtual airline, come take a look at us today! Home Page - WestJet Virtual Forum - Forum Homepage You Tube
  2. Sorry, are you looking for the script, or needing help on your own? I thought you were asking if it could be done within phpVMS. Im getting old I guess.
  3. I will work on putting that together, should not be a big deal. I am working on my new VA this week but I should have something out by the weekend.
  4. 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.
  5. 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.
  6. 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.
  7. 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>'; ?>
  8. 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.
  9. It's Sunday and by the looks of your admin panel none of the flights are available on Sunday, only Mon through Sat.
  10. 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.
  11. 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.
  12. 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);}
  13. 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.
  14. 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.
  15. simpilot

    latest skin

    Try adding </div> at the very end of the file...
  16. 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/
  17. 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.
  18. 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>'; } ?>
  19. 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.
  20. 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.
  21. The beta has been out for a few days - http://forum.phpvms.net/topic/2791-realschedulelite-beta-10/
  22. 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.
  23. 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.
×
×
  • Create New...