Jump to content

flyalaska

Members
  • Posts

    1941
  • Joined

  • Last visited

  • Days Won

    17

Everything posted by flyalaska

  1. This is a common issue. You might have two different main jquery files in your layout.php or core_htmlhead.php file. I had the same issue. Just removed the lower version and it fixed itself.
  2. will this be available for download or purchase?
  3. I know, I referring it to you. Incase you were not aware that you had to create it.
  4. He will also need to make a custom profile field in admin.
  5. Is anyone running Simpilots Tour MOD on php7? Just wondering for future update.
  6. Its working now, I forgot a step. Thank you so much,
  7. 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?
  8. Each management system will have there own way the skins are named, etc. So phpvms skin (website will not work on a different system.
  9. Deleted! Tested doesn't work anymore
  10. Go to core/common folder open the file for the exams. Change all the public function to public static function
  11. 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.
  12. 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!
  13. Thank you both, got it working now!
  14. For Pilot of the week, you can use Top Pilot. https://forum.phpvms.net/topic/2225-toppilot-beta-10/
  15. 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>
×
×
  • Create New...