Jump to content

Nabeel

Administrators
  • Posts

    8147
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. 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
  2. Ok seems like you have a corrupted upload. Re-download the package and reupload all your files.
  3. There should be a setting in FSACARS, at least their docs show it
  4. 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
  5. Are your coordinates correct for those airports?
  6. Hmm that's weird. Can you pastebin the entire template?
  7. Hi there, Try re-uploading. Also, can you run: /install/checkinstall.php and paste in the results here?
  8. http://forum.phpvms.net/index.php?topic=1685.msg11736#new
  9. 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; ?>
  10. 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?
  11. Got it, thanks. Bug added
  12. 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
  13. 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?
  14. I was asking the pilot name, but nvm, it's the pilot_list.tpl Use $icao instead of $title
  15. Seems like it. Is it a dropdown in the profile?
  16. http://forum.phpvms.net/index.php?topic=243.msg4915#msg4915
  17. Nabeel

    Drop Menu

    Where did you get it from?
  18. Nabeel

    Drop Menu

    What's a link to it?
  19. Well in the fields table look up the ID for vatsim id
  20. Haha! Wow, I thought it was intelligent...
  21. Nabeel

    Signatures

    You can also send it to me to try it out
  22. It shouldn't be : include('fuel.tpl'); It hsould be: Template::Show('fuel.tpl');
  23. The code I pasted above is an example. http://docs.phpvms.net/development/searching_schedules_and_pireps
  24. http://docs.phpvms.net/development/searching_schedules_and_pireps The doc isn't finished, but the same premise for PIREPS, using the search interface. It will return all the data about a PIREP for whichever parameters you pass. You can see the query and the fields returned: http://bugs.phpvms.net/browser/trunk/core/common/PIREPData.class.php#L44 So you can search by the fields by putting them in an array: <?php $params = array( 'aircraftid' => [iD], // or you can do: 'registration' => [registration], ); // Just set the sort order to the last one // save the old value $old_sort_order = Config::Get('PIREPS_ORDER_BY'); Config::Set('PIREPS_ORDER_BY', 'submitdate DESC'); // Now find the PIREPS, retrieve one $pirep = PIREPData::findPIREPS($params, 1); $pirep = $pirep[0]; // And reset the sort order to our setting: Config::Set('PIREPS_ORDER_BY', $old_sort_order);
×
×
  • Create New...