Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Same question I would have asked. The file to create the tables is included in the download package.
  2. It depends on how your site is built, basically you need to wrap the ts script in it.
  3. Manual PIREPS do not have a landing rate included to put in the database, generally that is only going to come from an ACARS system PIREP. Check your database to see if there is actually any data in the landing rate column. If there is no data at all in the column you will get the error as there is nothing to make the foreach command work.
  4. Meta tags should go in the <head> section of your page, which is located in layout.tpl if you have not modified it. Favicon goes in the root of the site and must be a true ico file.
  5. Use an if statement to decide if you want to show the ts indicator or not -> <!--Check what module the system is currently on --> <?php $module = Config::Get('RUN_MODULE'); ?> <!--Check to see if we are on the AcarsMap and if we are do not run the ts script --> <?php if(!$module == 'acars') { ?> <!--Put your ts script here--> <?php } ?>
  6. If you are on version 2.x you do not need an api code anymore. Looking at your site it looks more like a display issue. Try removing the teamspeak status indicator from that page - I have had that script interfere with maps before.
  7. Did anything else change in the local config file - there is a setting in the beginning "SITE_URL" that needs to be the correct path to your site. It kinda looks like that may be the issue when looking at your site.
  8. When you replaced the local config file did you change the site path?
  9. Still have to add pdf functionality http://forum.phpvms.net/topic/3185-timetable-10/#entry21343
  10. Timetable 1.0 Module to create a timetable type listing of your phpVMS powered VA schedules. Developed by: simpilot www.simpilotgroup.com Developed on: phpVMS 2.1.934 php 5.2.11 mysql 5.0.51 apache 2.2.11 Install: -Download the attached package. -unzip the package and place the files as structured in your root phpVMS install. Create a link for your pilots to get to the Timetable <a href="<?php echo url('/Timetable'); ?>">Timetable</a> Thats It! Example Released under the following license: Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License Timetable_1.0.zip
  11. I added the option to show the existing time when editing a schedule but if you seperate the hours and minuites (not a big deal) you will have to change some code in the module as well to combine it back together for the db insert. new code here -> http://www.pastebin.org/366905
  12. Looks like there is no data coming back from the database. Do you have any PIREPs filed with landing rates?
  13. I think this is what you are trying to do -> http://www.pastebin.org/366807
  14. What do you want to do different than the custom field?
  15. I still have to figure out the pdf and/or page to print setup but I have gotten some of this working. http://www.westjetvirtual.net/index.php/Timetable
  16. No, clearing the cache will only clear the temporary data saved in the core/cache folder that is used to speed up the application, it will not delete anything out of the database itself.
  17. What I do to keep the modules to a minimum is create one module with multiple functions for custom pages. For example create a custom module "ContentPages.php" and within it create functions for each page you want class ContentPages extends CodonModule { public function index() { $this->show('index.tpl'); } public function pilots() { $this->show('pilots.tpl'); } public function aboutus() { $this->show('aboutus.tpl'); } } Then just create your link to the new page -> www.mysite.com/index.php/ContentPages/function you want to use. This way you will only have one module and folder and you can add as many functions (pages) to it as you need.
  18. The only thing you could do is add a column to the pilots table and change the code in, registration.php, login.php, and operations.php as well as the associated templates to use a new field for your user selected screen name. I would not suggest removing or changing the pilot id method as most functions within the application are tied to it.
  19. Can you give a little more information? Is this happening in more than one browser? Is the information actually in the database? Are you getting any errors from the browser(s) you are using? Try running the checkinstall.php and checkdb.php within the install folder and post the results. Also set debug to true and see if you get any errors. You can find info on how to do these things here -> http://forum.phpvms.net/page/index.html?record=31 Free webhosting has also been an issue in the past.
  20. Search "ranks" and/or "Manual Ranks" - there are many threads on this already with many options.
  21. Not sure exactly what you are trying to do but maybe this will work for you: <select name="code" id="code"> <option value="">Select Pilot Code</option> <?php $allpilots = PilotData::getAllPilots(); foreach($allpilots as $pilot) { echo '<option value="'.$pilot->pilotid.'">'.$pilot->firstname.' '.$pilot->lastname.' - '.PilotData::getPilotCode($pilot->code, $pilot->pilotid).'</option>'; } ?> </select> This is pretty rough, you should be setting the variable in the module, not calling it in the template, like this-> $this->set('allpilots', PilotData::getAllPilots());
  22. In schedule_boarding_pass.tpl find: <strong>Flight: </strong><?php echo $schedule->code.$schedule->flightnum?><br /> Make a new line after and add: <?php $close = explode(':', $schedule->deptime); if ($close[1] >= '20') { $close[1] = $close[1] - 20; } else { $close[1] = 20 - $close[1]; $close[1] = 60 - $close[1]; if ($close[0] == '0') { $close[0] = '23'; } else { $close[0] = $close[0] - '1'; } } ?> <strong>Gate Closes: </strong><?php echo $close[0].':'.$close[1]; ?><br /> This will give you a time 20 minutes earlier than the departure time for VA's using a 24 hour time format. You will have to adjust your template to make the airports line up with the dep and arr times.
  23. What are you looking for? The VA's average or a pilot's average? Monthly, alltime?
  24. It's a seperate aircraft for each looping schedule, very real. If an aircraft starts at KBOS and goes to KATL, KBWI, KLAX, KSEA, it has to come back to KBOS at some point to start again which creates a multi leg looping schedule. If you only have one aircraft and have multiple looping schedules, how does the aircraft fly the other loops if it is out on the first group? Also, if you only have one aircraft and you want to be "real", it can only be in one place at a time and only flown by one pilot at a time, hopefully you dont have more than a couple of pilots.
  25. Not really something I would do but if you really wanted to include it in the original registration email you could catch it and store it in session data to pass to the email template. I believe the post variable is $password.
×
×
  • Create New...