Jump to content

flyalaska

Members
  • Posts

    1943
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by flyalaska

  1. Very Nice! Jeff always does nice work.
  2. The google api really wasn't working for me. It would load the map only when you refreshed the page, not on initial start up. I changed the google api code to this and I have no issues.
  3. no, it should have all your setting.
  4. in the skins css!
  5. I just saw a few episodes of "Worst Place to be a Pilot" looks very interesting.
  6. flyalaska

    blueIce

    Did you edit that file?
  7. https://www.crazycreatives.com/downloads/premium-miles/
  8. flyalaska

    blueIce

    Can I have your URL?
  9. https://github.com/DavidJClark/phpVMS-Timetable
  10. Look in your slider css. It is set to 100%. Your images need to be bigger. I am not 100% sure.
  11. Has that pilot been awarded an award yet?
  12. bottom of the list, click on Add your site here.
  13. <?php if(Auth::LoggedIn() == false) { ?> Your LOGIN code goes here <?php } ?>
  14. Register your domain at - https://www.google.com/recaptcha/intro/ Than in local.config.php ad these lines to the bottom. /* Keys for recaptcha, you can change these if you want to your own but it's a global key so it should just work */ Config::Set('RECAPTCHA_PUBLIC_KEY', 'Key Goes Here'); Config::Set('RECAPTCHA_PRIVATE_KEY', 'Key Goes Here'); Add your keys to the above code, where it says Key Goes Here
  15. screenshot?
  16. Can I have a link to your site?
  17. change the pilots users group in admin.
  18. I have this on my site with simpilots 5.5.2 Days Since Last Flight <?php if ($userinfo->lastpirep == '0000-00-00 00:00:00') { echo 'There are no flights!'; } else { $datebefore1 = substr($userinfo->lastpirep, 0, 10); $datetoday2 = date("Y-m-d"); $datebefore3 = strtotime($datebefore1); $datetoday4 = strtotime($datetoday2); $newdate = $datetoday4-$datebefore3; $lastpirep = floor($newdate/(60*60*24)); echo ' '; if ($lastpirep == 0) { echo 'Today'; } else if ($lastpirep == 1) { echo 'Yesterday'; } else { echo $lastpirep . ' Days ago'; } } ?> Latest Flight Number <?php if($report) { ?> <a href="<?php echo url('pireps/view/'.$report->pirepid); ?>"><?php echo $report->code . $report->flightnum; ?></a> <?php } else { echo 'No PIREPs filed yet!'; } ?> Last Flight Date <?php echo date('m/d/Y', strtotime($userinfo->lastpirep));?>
  19. Just a link to the filed PIREP. Had a few complaints that pilots who fly more than one flight at a single time,They don't know which flight the email is referring to. Easy enough to click the link IMO.
  20. When a comment is added to a PIREP. Have it display the flight number. So the pilot knows which flight the comment is regarding. Good option if the pilot flies more than one flight in a session.
  21. Yes there was an Weather Module I used several years ago. Removed it and haven't seen the error apear again. Thank you!
  22. User group 2 is active pilots. You have one pilot who is not active.
  23. I get the following error pop up randomly when I go to admin, in the head of the admin section. Warning: SimpleXMLElement::addChild(): unterminated entity reference Winter in /....../core/common/CentralData.class.php on line 198 any ideas?
  24. flyalaska

    blueIce

    Yes, 0 flights. Just do a flight, that should fix it.
  25. flyalaska

    blueIce

    Add the following code below to core/common/TouchdownStatsData.class public static function airline_average() { $stats = self::get_all_stats(); $total = 0; $count = 0; foreach ($stats as $stat) { $total = $total + $stat->landingrate; $count++; } $average = $total / $count; return $average; } public static function get_stats_by_cur_month($howmany) { $query = "SELECT pilotid, code, flightnum, depicao, arricao, aircraft, landingrate, submitdate FROM `".TABLE_PREFIX."pireps` WHERE landingrate < '0' AND MONTH(submitdate)=MONTH(now()) AND YEAR(submitdate)=YEAR(now()) ORDER BY landingrate DESC LIMIT $howmany"; return DB::get_results($query); }
×
×
  • Create New...