Jump to content

flyalaska

Members
  • Posts

    1941
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by flyalaska

  1. will this be available for download or purchase?
  2. bump
  3. database password is wrong
  4. Link?
  5. I know, I referring it to you. Incase you were not aware that you had to create it.
  6. He will also need to make a custom profile field in admin.
  7. Is anyone running Simpilots Tour MOD on php7? Just wondering for future update.
  8. Its working now, I forgot a step. Thank you so much,
  9. I am installing v2 on a php7 server. I am getting an error on installation. Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysqli.class.php on line 97 Fatal error: Uncaught <blockquote><font face=arial size=2 color=000099><b>Last Error --</b> [<font color=000000><b>No such file or directory (2002)</b></font>]<br />[<font color=000000><b></b></font>]</font><p> </blockquote><hr noshade color=dddddd size=1> thrown in /data/7/0/70/127/396779/user/403816/htdocs/phpvms/core/classes/ezdb/ezdb_mysqli.class.php on line 102 Any ideas?
  10. That doesn't work
  11. Each management system will have there own way the skins are named, etc. So phpvms skin (website will not work on a different system.
  12. Deleted! Tested doesn't work anymore
  13. Mark this post as solved
  14. Go to core/common folder open the file for the exams. Change all the public function to public static function
  15. Go in your local.config.php and under the VACentral, change true to false. That will stop showing the pireps needing to be sent on your admin side.
  16. That did not work
  17. I ran into a wall with the monthly hub stats. I am trying to get the hours to reset every month. Shown on the red ribbon on the picture below. It only shows total hours. Here is my code. public static function TotalHoursBetweenDates($icao, $startdate, $enddate) { //Count total hours $query = "SELECT SUM(flighttime) as hours FROM phpvms_pireps WHERE depicao = '$icao' OR arricao = '$icao' AND DATE(submitdate) >= '$startdate' AND DATE(submitdate) <= '$enddate'"; $result = DB::get_row($query); return $result->hours; } <?php echo HubStats::TotalHoursBetweenDates('PACD', date("Y-m-01"), date("Y-m-t"));?> Any help would be appreciated!
  18. Thank you both, got it working now!
  19. Anyone?
  20. For Pilot of the week, you can use Top Pilot. https://forum.phpvms.net/topic/2225-toppilot-beta-10/
  21. I am trying to copy some code from top pilots module, put into my frontpage_main.php. When I do this I get this message. I have flights already this month, the mod pages shows that aswell. Here is the code take from the modules template file. Am I missing something? Any idea why its not showing the flights? <div class="group"> <div class="col span_1_of_2"> <h3>Hours Flown</h3> <table> <thead> <tr> <th> Member </th> <th style="text-align: right;"> Hours </th> </tr> </thead> <tbody> <?php $all_hours = TopPilotData::top_pilot_hours($today[mon], $today[year], 5); ?> <?php if (!$all_hours): ?> <tr><td colspan="2">Get a head start on this month's leaderboard by flying today!</td></tr> <?php else: foreach($all_hours as $entry): $pilot = PilotData::GetPilotData($entry->pilot_id); ?> <tr> <td> <strong> <?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid)?></strong> <img src="<?php echo Countries::getCountryImage($pilot->location);?>" alt="<?php echo Countries::getCountryName($pilot->location);?>" style="padding-right: 10px; position: relative; top: 1px;"/><br/> <a href="<?php echo url('profile/view/'.$pilot->pilotid); ?>"> <?php echo $pilot->firstname.' '.$pilot->lastname?></a> </td> <td style="text-align: right;"> <?php echo str_replace(".", ":", number_format($entry->hours, 2)); ?> </td> </tr> <?php endforeach; endif; ?> </tbody> </table> </div>
  22. Very Nice! Jeff always does nice work.
  23. 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.
×
×
  • Create New...