Jump to content

ProAvia

Administrators
  • Posts

    1640
  • Joined

  • Last visited

  • Days Won

    70

Everything posted by ProAvia

  1. Deleting ActivityData.class.php isn't going to alleviate the error. RanksData.class.php appears to be calling "ActivityData". So you have 2 options. Either download a new RanksData.class.php for version 2.1.x that doesn't have the call - or - comment out the entire section in your current RanksData.class.php file referencing that call. Maybe grab the complete file contents from here: https://github.com/nabeelio/phpVMS/blob/master/core/common/RanksData.class.php If you decide on the second option, post lines 230-260 so someone here can help make sure you are commenting out all of the suspect lines. In either case, make a backup of the original file. Then replace the file or contents and test it out.
  2. My old 2.1.936 - installed 4/2014 - doesn't have an ActivityData.class.php. My new 5.5.2 install does have that file. I didn't think 2.1.936 came with that file - but I've been wrong before. Maybe someone can verify if the ActivityData.class.php file was in version 2. I believe the error you posted is saying that the ActivityData.class.php file is not present - or maybe not in the correct path. In any case, you may want to consider upgrading the the new version 3 once it's released. That should rectify the issue.
  3. What version of phpVMS are you using? In /core/common - do you have an ActivityData.class.php file?
  4. kACARS version must match. Your version of kACARS is 1.0.1.0 Your VA requires version 1.0.1.1 Go to fs-products, download and install kACARS version 1.0.1.1
  5. Thank you! Yup, had read through a few posts about it - including that one. Guess I'll add it a little at a time and see if it breaks anything.
  6. My conversion from 2.1.x to 5.5.2 is mostly complete - I'm just trying to clean up a few items. What is the purpose of following statement? - <?php if(!defined('IN_PHPVMS') && IN_PHPVMS !== true) { die(); } ?> I see it in all the 5.5.2 default template folder php files and those of some updated Modules template files. I think it has something to do with security and/or theft of file content. Am I close? If I'm using any modules or custom template file from my 2.1.x install, should I add the statement to the top of all of those template files? Including those in my skins folder? Including those in 'admin/templates'? Should it be in any other files elsewhere in the install? Are there any downsides to including it in the older modules? (I guess worst case is the 'blank page' issue I read about??) Anything else I should know about this? Thanks! Really appreciated all the help I've gotten here and for you all putting up with my (mostly) newbie questions! I've really learned quite a bit through the conversion '"experience".
  7. Restricted rank - yup, that'll do it! You can use the same DB with all the original records in it. I did this - after tweaking my new 5.5.2 install to my needs. I probably made it harder on myself than necessary in the process of all this, but I took my 5.5.2 install live last night and everything appears to work as it should. Using the original DB allowed me to keep all data from the 2.1.x install. Of course, I installed 5.5.2 on the side and tweaked/tested it with all the modules I use first. Then I converted over on my live site, so the pilots weren't waiting for me to finish. Took me several weeks in my spare time. Was a pain, but very do-able with the outstanding help I received from members here.
  8. I think there is a URL issue. In each notice or warning it shows on the --- First line: /home/yand/public....... Second line: /home/coreyand/public..... What's the base URL set to in local.config.php? As Servetas stated, a url to your site may be useful.
  9. 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.
  10. 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.
  11. 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.
  12. Yes, the active addon shows at the bottom of the list. But on mine, the list is not alphabetical for the other addons.
  13. 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.
  14. That's what I get for trying to read through the post at 1 AM this morning - totally missed that.
  15. 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"); }
  16. 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.
  17. 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.
  18. Great question - I'd like to know if this is possible too!
  19. Was the missing 1869 hours equal to his transfer hours?
  20. 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.
  21. 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!
  22. Oh yes, please do share! Is it a separate module? Might be best to post outside of any version 3 discussion though.
  23. See my reply to your post 'Expense Error' here:
  24. If something like this were possibly put in place, I'd like to see the percentage penalties be easily adjustable.
×
×
  • Create New...