Jump to content

simpilot

Administrators
  • Posts

    2773
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by simpilot

  1. Nice work Stuart! Gonna have to look at the youtube apps myself. That makes a nice feature.
  2. It should be in your local.config file in /core.
  3. It needs to match whatever you are using for the "name", look in the db aircraft table, and it is whatever is in the name column.
  4. @lorlandi - You want to place that in your menu items, unless you have changed things greatly it should be in core_navigation.tpl. @mark1 - sorry, been sidetracked on a couple other projects, not even sure at this point if I will release a v2. I got it about 60% coded and it has sat for about a month now......
  5. Open up the schedule_results.tpl and find <?php foreach($allroutes as $route) { and insert the code directly after it so it looks like this -> <?php foreach($allroutes as $route) { if(Auth::$userinfo->rank <> 'Senior Captain' && $route->aircraft == 'B777') { continue; }
  6. Close <?php MainController::Run('News', 'ShowNewsFront', 1000); ?> Edit - I am not sure it will work at all through the add page option in the admin side.... I do not use that feature, I do know it will work in a regular template...
  7. You could use something like this inside of your foreach loop in schedule_results.tpl -> <?php if(Auth::$userinfo->rank <> 'Senior Captain' && $route->aircraft == 'B777') { continue; } ?> That will tell the loop to continue past any route that has a B777 aircraft unless the user is a Senior Captain. You would have to change "Senior Captain" and "B777" to fit your needs but it would accomplish what you are trying to do I think.
  8. simpilot

    Problem

    I think we have run into this before - try clearing out your sessions table and then try to login.....
  9. To change the month names to German, Open tp_index.tpl After the opening php tag of the file add date_default_timezone_set('Europe/Berlin'); setlocale(LC_ALL, "de_DE", "de_DE@euro", "deu", "deu_deu", "german") ; find around line 58 if(!$topflights) {$month = date( 'F', mktime(0, 0, 0, $today[mon])); echo 'No Pireps Filed For '.$month.' '.$today[year]; } else { $month_name = date( 'F', mktime(0, 0, 0, $topflights[0]->month) ); and replace with if(!$topflights) {$month = strftime( '%B', mktime(0, 0, 0, $today[mon])); echo 'No Pireps Filed For '.$month.' '.$today[year]; } else { $month_name = strftime( '%B', mktime(0, 0, 0, $topflights[0]->month) ); find around line 136 $month_name = date( 'F', mktime(0, 0, 0, $startmonth) ); and replace with $month_name = strftime( '%B', mktime(0, 0, 0, $startmonth) ); Save it and refresh For the first month being Jan 1970 tells me that there is probably a pirep in your database with a submit date of 0000 00 00, as jan 1970 is the start of php/mysql time function. Look for a pirep with 0's for a submit date and fix the date, I think you will find it will correct itself at that point.
  10. Sure is. Just do -> <?php echo $pilot->lastname[0]; ?>
  11. Thanks Guys Nice work styling the tables everyone. Don't forget to create a free account and submit news releases about your va and your Pilots of the Month at simpilotgroup.com, we are moving up in the google ranks!
  12. simpilot

    Skinning Service

    Carlos, if you want to sell skins, that is fine but set up a storefront somewhere else other than here in this forum. A link in your signature to your site and a PM with clients is all that is needed. I am locking the topic before it continues to a place it does not need to be.
  13. http://forum.phpvms.net/topic/2225-toppilot-beta-10/page__pid__14824
  14. TOPPilot beta 1.0 phpVMS module to extract monthly flight statistics for individual pilots from your phpVMS based virtual airline. Developed by: simpilot www.simpilotgroup.com Developed on: phpVMS 2.0.874 php 5.2.11 mysql 5.0.51 apache 2.2.11 Included files: readme.txt top_flight.sql TopPilot.php TpPilotData.class.php tp_index.tpl tp_previous.tpl Install: -Download the attached package. -unzip the package and place the files as structured in your root phpVMS install. -use the top_flights.sql file to create the table needed in your sql database using phpmyadmin or similar. -after the initial install point your browser to yoursite/index.php/TopPilot/refresh_pilot_stats one time. This will populate the database table with any data available. -to view the main TopPilot index create a link yoursite/index.php/TopPilot -everytime a pirep is filed the module will recalculate the pilot stats and update the database There are three main display functions within the TopPilotData class that you can configure to use in various parts of your site. Flights flown - TopPilotData::top_pilot_flights($month, $year, 5) Hours flown - TopPilotData::top_pilot_hours($month, $year, 5) Miles flown - TopPilotData::top_pilot_miles($month, $year, 5) $month should be the two digit month id of the month you want data from – ie 06 = June $year is the four digit year you are pulling – ie 2010 5 – can be changed to how many records you want returned. Excluding PIREPS that are not accepted yet. TopPilot.php line 52. Uncomment the trailing section and the module will not include unapproved PIREPS. Doing this will cause the module not to display any newly accepted PIREPS in the TopPilot data listings until after another PIREP is filed although you can refresh the stats at anytime using – yoursite/index.php/TopPilot/refresh_pilot_stats Although this script carries no limits of use a link back to www.simpilotgroup.com would be greatly appreciated! Have fun! Code hosted on Github - Link In Signature.
  15. Looks Great! I think you could make a lot of friends with the looks of that acars program...
  16. If you have removed the prieps, which it seems may be the case here, you will start to see many odd things happen. When the system updates a pilots time and hours it recalculates all the pireps, so if they are not there they will not be in the final figures.
  17. http://forum.phpvms.net/topic/1869-add-to-bid-not-working-on-v20854/page__p__12199__hl__passed__fromsearch__1entry12199
  18. Nice work styling the search form guys! Thanks for the kudos
  19. Module created and posted in the releases section. link - http://forum.phpvms.net/topic/2197-schedule-search-airline-aircraft-arrival-departure/
  20. Module creates a schedule search form that includes the ability to choose the airline, aircraft type, arrival field, and departure field. You can choose one or all of the parameters to find what you are looking for in your schedule database. To install Download and unzip Place the files in the proper paths as structured in the download No new sql tables or anything needed. Point your browser to mysite/index.php/FrontSchedules and start searching. Enjoy! Code hosted on Github - Link In Signature.
  21. Nabeel has built it to recieve xml the easiest. It also seems to be the cleanest way to do it. I think I can speak for most in saying we would love to see a dedicated ACARS system built to phpVMS standards.
  22. I have a basic start that I built into a site for a va hosted on my server, and I know bueno93 has been looking for something like this as well which I said I would work on. If you guys can send me exactly what parameters you want to be able to search I will put it together here over the next 24 hours, or at least the php part of it, you guys can skin it.
  23. In your ini template you need to change the line UnitSystem=GB to UnitSystem=IS I believe that the figures are then calculated in kgs but the label in the report will still read lbs but is ignored when the priep is filed and calculated.....
  24. I have a copy of it on my server - the link is in an old thread here -> http://forum.phpvms.net/topic/1894-reverting-back-to-2x/page__view__findpost__p__12384 The directory is no longer password protected
×
×
  • Create New...