Jump to content

ProAvia

Administrators
  • Posts

    1738
  • Joined

  • Last visited

  • Days Won

    78

Everything posted by ProAvia

  1. Are the pilots using tbe airline code with the correct flight number? As an example - Airline Alpha has the code AL and flight number 1000, Airline Bravo has the code BR and flight number 2000. In kACARS the pilot would need to enter AL1000 for Alpha Airline or BR2000 for Bravo Airline. If they entered AL2000, they will get a flight not found.
  2. On the 'Pilot Brief', the weather is being pulled from flightaware in phpVMS 5.5.2. Look in .../core/templates/schedule_briefing.php lines 50-62 in the default file. If you want to use another WX source, you can change it there. As for charts - search the forum here for AirCharts. Integrates into the above page and allows pilot to choose which chart they want to view.
  3. Can their row be based on the name displyed? In what files are these items located? I'm on my tablet right now, so my navigation is a bit limited - will be able to look closer later when on computer.
  4. Yes, the active addon shows at the bottom of the list. But on mine, the list is not alphabetical for the other addons.
  5. Sadly, even if renamed, the link directly to the registration form WILL eventually be comprimised - IF you allow prospective members access. I believe you can re-name the registration form to one your pilots do not know - so only you or your management have access to it. You could build your own application form for new pilots to apply to - or be invited to apply to. This form could send an email to you with the new pilots information. Then, if you decide to accept them, you could enter their info into the re-named registration form. You could create a link to this re-named registration form on the main page of your admin panel.
  6. That's what I get for trying to read through the post at 1 AM this morning - totally missed that.
  7. Excellent - thanks! I had been working on that exact file - but was missing the AS totalhours part. Also added .round($all->totalhours, 2). to tp_index.php to round to two decimal places. My TopPilotData.class.php is a little different. Here's the final result - starting on line 54 public static function alltime_hours($howmany) { // return DB::get_results("SELECT pilotid, totalhours FROM " . TABLE_PREFIX . "pilots ORDER BY totalhours DESC LIMIT $howmany"); return DB::get_results("SELECT pilotid, (totalhours + transferhours) AS totalhours FROM phpvms_pilots ORDER BY totalhours DESC LIMIT $howmany"); }
  8. I wonder if the issue you are having has anything to do with the version of PHP your host is providing for you? Is it possible that the registration form in phpVMS 2.1.x is not compatible with the host provided PHP version? Or an issue with the RECAPTCHA settings in your phpVMS install? Open .../core/lib/recaptcha/recaptchalib.php and look at line 38-40 - they should look like: define("RECAPTCHA_API_SERVER", "http://api.recaptcha.net"); define("RECAPTCHA_API_SECURE_SERVER", "https://api-secure.recaptcha.net"); define("RECAPTCHA_VERIFY_SERVER", "api-verify.recaptcha.net"); Also, did you happen to change the public and/or private RECAPTCHA key(s) in .../core/local.config.php - or anywhere else? As stated above, you'd be much better served by upgrading to phpVMS 5.5.2 moving forward. In briefly looking at your site, it doesn't appear you've changed the default skin or are too far along in development.
  9. Yeah - that's the issue I had too. That column shows all time total hours (since hire or since in your phpVMS) - without adding in transfer hours. Look at my possible work-around a few posts above. Although the result isn't sorted by hours - high to low - for combined all time hours + transfer hours. And I don't know how to sort the result from high to low. Hoping someone chimes in with a better solution than I stumbled across.
  10. Great question - I'd like to know if this is possible too!
  11. Was the missing 1869 hours equal to his transfer hours?
  12. As a follow up to my post above: 1. I was able to work-around this by changing $all_hours= TopPilotData::alltime_hours(5); to $all_hours= TopPilotData::alltime_hours(8); This effectively gives the display 5 non-staff pilots in the list. 2. After looking through a few other files, I came across a possible solution. In the second to last code line, I changed echo .$all->totalhours.'</td>' to echo '<td>'.Util::AddTime($pilot->totalhours, $pilot->transferhours).'</td>'; Whether that's the correct way to do it or not, I don't know. But I did find another issue..... In #1 - the list from high to low is based on 'totalhours', not the SUM of 'totalhours' and 'transferhours'. As an example: Pilot 1 total hours is 3360 Pilot 2 total hours is 4138 Pilot 3 total hours is 655 Pilot 4 total hours is 1874 Pilot 5 total hours is 872 I'd like the order from high to low Pilot 2 - 4138 Pilot 1 - 3360 Pilot 4 - 1874 Pilot 5 - 872 Pilot 3 - 655 I attempted to place Util::AddTime($pilot->totalhours, $pilot->transferhours) - in several differing variations - in place of TopPilotData::alltime_hours including the (8); . But it always showed an error.
  13. I'm having two small issues. 1 - In order to get our Staff of 3 to be able to see pretty much everything they need to see, we have given them an hours total of 40000 (40k). I have been able to have them NOT show in the pilot roster using the following in '/pl/pilots_list.php - starting about line 24. <?php foreach($pilots as $pilot) { // following to not show Staff & Retired in Pilot Roster if($pilot->rankid == 23) { continue; } //staff if($pilot->retired == 1) { continue; } ?> While I can use the '... rankid == 23 ...' to made staff not show in Top Pilots All Time (Hours Flown), their hours are still taken into account there - hence I only see two non-staff pilots listed out of the possible five (3 staff + 2 non-staff = 5) for that area. Is it possible to not take the staff hours into account there? I'd like to display the top 5 non-staff pilots. 2. Top Pilots All Time (Hours Flown) is only showing total flight hours (I'm guessing a sum of all 'hours' from the 'top_flights' table) - but that's not including transfer hours (transfer hours is set to true in local.config.php). Is there a way to add in the transfer hours? Here's the code from that section of 'tp_index.php' - starting on about line 33. echo '<center>'; echo '<b>Top Pilots All Time </b>(Hours Flown)'; echo '<table class="profiletop">'; echo '<tr>'; echo '<th>Pilot</th>'; echo '<th>Hours Flown</th>'; echo '</tr>'; $all_hours= TopPilotData::alltime_hours(5); foreach($all_hours as $all) { $pilot = PilotData::GetPilotData($all->pilotid); echo '<tr>'; echo '<td>'.$pilot->firstname.' '.$pilot->lastname.' - '.PilotData::GetPilotCode($pilot->code, $pilot->pilotid).'</td>'; echo '<td>'.$all->totalhours.'</td>'; echo '</tr>'; I have been successful in getting totalhours and transferhours to display there together, I have NO idea on how to make the SUM of totalhours and transferhours display. Thanks in advance for any insight!
  14. Oh yes, please do share! Is it a separate module? Might be best to post outside of any version 3 discussion though.
  15. See my reply to your post 'Expense Error' here:
  16. If something like this were possibly put in place, I'd like to see the percentage penalties be easily adjustable.
  17. Look in FinanceData.class.php about line 149 for ... setExpensesforMonth ... - does that line start with public function or public static function ? Many(all??) of the same Strict Standards: Non-static method .... errors can be fixed by changing the public function to public static function in ....Data.class.php files. The word(s) after non-static method and before the :: will clue you in on which ...Data.class.php file to edit. The words after :: and before should are the function call to search for. I say this while trying to figure out why I can't see 'Pilot Pay' in any of my financial reports. Since I don't have any expenses entered anywhere, I don't know whether expenses are affected the same as my pilot pay situation. Oh well, time to search the forums - AGAIN!
  18. ProAvia

    Errors

    As web541 mentioned above, it would be best to use the database from the 5.5.2 install and then move/copy the data from each 2.1.x table over. The 5.5.2 database includes several new fields within various tables - the schedules table being but one of those with additions. If I recall, 'schedules' table added week1, week2, week3, week4. You don't necessarily NEED to enter data into the additional fields in the 'schedules' table, but you do need to have those fields so as not to get the error you show above.
  19. Not showing any errors. I'll have a look at those links at a later date. Right now, I need to finish the site update from 2.1.934 to 5.5.2 so I can change the live site over. Don't really need the charts right now - and have been doing without on the old live site too. This will give me something to do after the update. Thanks!
  20. I would think so. When a PIREP is rejected, it's still in the database. From the admin panel, select Pilot Reports, View All Reports. You can edit the PIREP from there - either to comment, edit, approve or reject again.
  21. Cool! Thank you to both you and Kyle. So, in the admin panel - am I supposed to see a chart for the last 30 days? And on the My Stats page as well? I do have the default 5.5.2 ChartsData.class.php file in place, as well as the gchart/gchart.php.
  22. See this post: After downloading/installing the updated module referenced in post #2 (the "here" link), make the edit suggested in post #3. Hope that helps!
  23. Thanks! Yeah - I thought the default 5.5.2 file did something like that. On the main admin page, I don't get a chart. Nothing at /index.php/profile/stats either. Hence my question if I need to download anything else to make ChartsData.class.php work - see my first post. I messed with it some before loading your update. And I was able to get it to load. But I took mine out and used yours instead, cause yours looked cleaner and adds a few changes not in the original files. There is one small omission/error that was in the original files - and carried over into yours. admin/templates/charts/index.php, line 41 // Originally: <a href="viewcharts?icao=<?php echo $airport->icao; ?>"><?php echo $airport->icao; ?></a> // Change to: <a href="chartsadmin/viewcharts?icao=<?php echo $airport->icao; ?>"><?php echo $airport->icao; ?></a> //This will allow viewing the charts in the admin panel without the error of: //The module "VIEWCHARTS" doesn't exist! After changing that, it works great! If you'd like, maybe send a pull request to Kyle. I'll look at the AirCharts module too and then decide which to offer - heck, maybe both. I do like the option of viewing from the schedule briefing page in AirCharts. Thanks again!
  24. In the default phpVMS 5.5.2 (Simpilot version), there is a file in 'core/common' named 'ChartsData.class.php - it's not in version 2.1.934. I see in that file a reference to - #replacement functions for OFC charts - Google Charts API - simpilot #load Google Chart Wrapper library (3rd party) require CORE_LIB_PATH . '/gChart/gChart.php'; - at the top of the file. Is there something else I need to download/install for ChartsData.class.php to function? Seems this file provides a replacement for OFC (Open Flash Chart) functionality. What exactly does this file do and is it linked to specific default modules? ______________________________ My main reason for asking about this file is that on my version 2.1.934 site, I am using Airport Charts - by Vansers. That add-on module contains the exact same file name... ChartsData.class.php. The two files are nowhere near similar in content. I'd like to use the Airport Charts module in phpVMS 5.5.2 - AND any functions of the default chart as well. I don't think renaming a default file would be a good thing - as it would break stuff that I'm not even aware of. Kyle hasn't updated Airport Charts since 10/2011. I can get the original to work in version phpVMS 5.5.2 using the normal methods found here for other modules. I saw in the Airport Charts thread that Kyle is fine with the module being modded for personal use. Maybe I need to mod the Airport Charts folders/files to 'NavCharts' from 'Charts'? I suppose the best course of action is to use the new name of 'NavCharts' throughout the module to make it easier to keep track of the mod files (and rename the DB table to 'navcharts' also).
  25. Sorry - I'm out of ideas at this point. Someone with more knowledge of how it's supposed to work can hopefully assist you further. In the mean time, can you install another phpVMS - and leave it all as default - and try the mail function there?
×
×
  • Create New...