Jump to content

Nabeel

Administrators
  • Posts

    8151
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. I haven't had the time to come up with any of that stuff yet. I barely get time for phpVMS things. So you're gonna have to be patient and wait until I get the time to get the infrastructure into place
  2. I do: <?php $row_int = 0; foreach($rows as $row) { $class = ($row_int++ % 2 == 0) ? 'row0' : 'row1'; echo '<tr class="'.$class.'">...</tr>'; }
  3. Or you can use the API. Don't do manual queries, chances are 99% you can do it all without touching the API. I'm re-vamping for statistics, to add a flexible query system like I added for PIREPS and Schedules and Pilots, but for now, you can do this (which actually is using the PIREP query system, this shows how flexible it is) <?php $params = array( 'p.pilotid' => [pilotid], 'p.registration' => [aircraft registration], ); // Look for the last 24 months $totals = PIREPData::getIntervalDataByMonth($params, 24); $flown_time = 0; foreach($totals as $total) { $flown_time = Util::AddTime($flown_time, $total->total); } echo 'Total time flown: '.$flown_time; It'll be a bit slow, but I'm working on better functions for statistics as part of the cleanup. It might not work completely, but I'll let you figure out the pieces. You can put that in a loop for each aircraft
  4. Is your core/local.config.php file empty and file size of 0? Reupload that file above (/core/classes/CodonWebService.class.php) it seems corrupted
  5. Ok seems like you have a corrupted upload. Re-download the package and reupload all your files.
  6. There should be a setting in FSACARS, at least their docs show it
  7. After this: echo PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID'); Can you put (just right after it, before the ?>: DB::debug(); And refresh the page with the output
  8. Are your coordinates correct for those airports?
  9. Hmm that's weird. Can you pastebin the entire template?
  10. Hi there, Try re-uploading. Also, can you run: /install/checkinstall.php and paste in the results here?
  11. http://forum.phpvms.net/index.php?topic=1685.msg11736#new
  12. You have to replace [Registration] with the variable with the registration: <?php $params = (array('a.registration'=>$aircraft->registration, 'p.accepted'=>PIREP_ACCEPTED)); $pirep = PIREPData::findPIREPS($params); $current_location = $pirep[0]->arricao; ?>
  13. Can you enable DEBUG_MODE (set to true), and then try saving the field, and see if there's anything in core/logs/log.txt?
  14. Got it, thanks. Bug added
  15. For #2 - export all your schedules. Then in phpMyAdmin, empty your airports table. Then re-import all your schedules. #1 - nope. I don't support within iframes
  16. Ok so look like no values have been saved. What if you goto your profile now and save a value for that field, do you see it show up in phpmyadmin?
  17. I was asking the pilot name, but nvm, it's the pilot_list.tpl Use $icao instead of $title
  18. Seems like it. Is it a dropdown in the profile?
  19. http://forum.phpvms.net/index.php?topic=243.msg4915#msg4915
  20. Nabeel

    Drop Menu

    Where did you get it from?
  21. Nabeel

    Drop Menu

    What's a link to it?
  22. Well in the fields table look up the ID for vatsim id
  23. How about trying VATSIM_ID?
  24. Haha! Wow, I thought it was intelligent...
×
×
  • Create New...