-
Posts
2773 -
Joined
-
Last visited
-
Days Won
3
Content Type
Profiles
Forums
phpVMS Resources
Downloads
Everything posted by simpilot
-
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.
-
@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......
-
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; }
-
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...
-
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.
-
I think we have run into this before - try clearing out your sessions table and then try to login.....
-
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.
-
Sure is. Just do -> <?php echo $pilot->lastname[0]; ?>
-
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!
-
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.
-
http://forum.phpvms.net/topic/2225-toppilot-beta-10/page__pid__14824
-
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.
- 264 replies
-
- 13
-
Looks Great! I think you could make a lot of friends with the looks of that acars program...
-
Hours and Flights Periodically Reset...
simpilot replied to OneWorldVirtual's topic in Support Forum
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. -
http://forum.phpvms.net/topic/1869-add-to-bid-not-working-on-v20854/page__p__12199__hl__passed__fromsearch__1entry12199
-
Schedule Search (Airline, Aircraft, Arrival, Departure)
simpilot replied to simpilot's topic in Simpilot Group Addons
Nice work styling the search form guys! Thanks for the kudos -
Module created and posted in the releases section. link - http://forum.phpvms.net/topic/2197-schedule-search-airline-aircraft-arrival-departure/
-
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.
- 151 replies
-
- 18
-
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.
-
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.
-
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.....
-
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
-
I think what you are looking for shows up in the route_map.tpl view. The data for the map is being passed to that view using one of two variables depending on where the map is displayed, ($pirep or $schedule) $pirep is being used when looking at the flight details accessed from the frontpage. You should be able to get the data off that page with $pirep->arricao and $pirep->depicao. If you are trying to get the data from the db and use it in your own page you should use $mydata = PIREPData::getReportDetails($pirepid); The $priepid id the db id # of the prirep you are trying to get data for. Once you have that you can do a print_r($mydata); to see all the fields that are available, which are a ton including the aircraft data, airfields, pilot, etc... Hope this helps.
-
New England Virtual has been re-released after almost a year of changes and additions including: AIRMail internal messaging system Screenshot gallery with uploading, approval, and rating functions Real world dispatch system with schedules only being available if that aircraft is at that airfield Charter center with over 300 aircraft and 42000 destinations for pilots to create their own charter Vatsim data feed with total online and company pilots online EXAMCenter testing and training system TOPPilot monthly pilot rating system FAA delay live feed Completely revamped pilot dashboard Thanks go out to Nabeel for the excellent system that has made building addons a pleasure. You can check us out at New England Virtual
-
What I have found is instead of intergrating phpVMS with another system, wether it be joomla, e107, a forum board, or any other system, is to do as Nabeel has said and match the templates. You can see an example on my site where I have matched the templates for both phpvms and an smf forum board. New England Virtual I am working on the template for my joomla site to match these as well.