Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. 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.
  2. 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 } ?>
  3. 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.
  4. 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.
  5. When you replaced the local config file did you change the site path?
  6. Still have to add pdf functionality http://forum.phpvms.net/topic/3185-timetable-10/#entry21343
  7. 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
  8. 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
  9. Looks like there is no data coming back from the database. Do you have any PIREPs filed with landing rates?
  10. I think this is what you are trying to do -> http://www.pastebin.org/366807
  11. What do you want to do different than the custom field?
  12. 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
  13. 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.
  14. 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.
  15. 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.
  16. 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.
  17. Search "ranks" and/or "Manual Ranks" - there are many threads on this already with many options.
  18. 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());
  19. 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.
  20. What are you looking for? The VA's average or a pilot's average? Monthly, alltime?
  21. 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.
  22. 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.
  23. 1 - Been away for 9 days on vacation 2 - Not my full time job 3 - Do my best to respond to anything directed at me and give Nabeel a hand when I can 4 - You taking shots at Nabeel, whatever dude... your on your own.
  24. Remove the MainController::Run('News', newsfront, 5) From the template
  25. Try phpbb forum board smf forum board You can set these up and skin them the same as your phpVMS site so they look the same. There are also many other open source forum boards out there if you Google.
×
×
  • Create New...