Jump to content

Nabeel

Administrators
  • Posts

    8148
  • Joined

  • Last visited

  • Days Won

    39

Everything posted by Nabeel

  1. 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);
  2. Weird, from the testing we were doing the field was being populated. I hadn't included any of your display code on the client side though, so that could be an addon
  3. Can you show me a screenshot? I thought it was autoscaling?
  4. It's in the individual acars connector files in core/modules/acars
  5. I had converted all the maps to the v3 version until I saw there were problems with polylines and it didn't have full support of all the v2 features. I will update it, once I get the time to
  6. If you do a search, this has come up before. I will search it tomorrow too
  7. Nabeel

    FsACARS

    You don't have to do anything for FSACARS integration, just follow these directions: http://docs.phpvms.net/using_fsacars#using_fsacars
  8. Try it with all caps, you're doing: "Vatsim ID" Which won't match "VATSIM ID".
  9. So it should say the 4.43? That's an error on my template:; http://bugs.phpvms.net/browser/trunk/core/templates/pilots_list.tpl#L48 Line 48: It's: <td><?php echo Util::AddTime($pilot->totalhours, $pilot->transferhours); ?></td> Make it: <td><?php echo $pilot->totalhours; ?></td>
  10. Wait, Dave, the landing rate is pulled out by ACARS into the landing rate column already (I included that as a default). Or did you already account for that?
  11. No, there's no restriction on flights they can fly. Just pick it out of the schedule, out of any airline, and fly it. Any restrictions would be upto the individual admin/airline to work out as policy, and accept/reject PIREPS in accordance to that. On registration they can chose which airline they belong to, but it has little effect other than aesthetics really. I guess you can think of it the pilot belonging to a "parent company" with all the airlines you setup as divisions under that company. The separate airlines are just another means of organization
  12. There's some more settings in app.config for sigs which were added
  13. Very cool. My former boss brews alot
  14. I think this will convince you to use FSFK: http://dev.phpvms.net/index.php/pireps/view/89 Each part of the log sent also has its own template which you can customize
  15. Oh, you're trying to visit it. It won't work that way. It's using the even listener, so it will automatically run when someone registers
  16. Above CodonEvent::addListener('ForumRegister'); Add: parent::__construct();
  17. Yup, the auto-retire is new for > 90 days no login or PIREP. That can be adjusted or disabled, of course
  18. Then create schedules which are all C flights for that airline code. You can also then indicate your aircraft in the registration put a C at the end to denote cargo only. Then your pilots can fly either 'division'
  19. You don't need that second SELECT * FROM aircraft that a.* in the query will return all the aircraft data
  20. Contact your host. When they say you have 10gigs of space, you really only have a gig maybe, if you're lucky. But contact them, their server is overloaded. I remember my godaddy site was advertised at 100 gigs - the server had a 15gig drive
  21. Enabled DEBUG_LOG and access your homepage, see if there are any error sin /core/logs/log.txt
  22. And make sure both airports have been added with coordinates in the admin panel
  23. Hey, been a while. Well there's this: http://docs.phpvms.net/2.0_upgrade_guide And the all-important changelog: http://www.phpvms.net/changelog.htm
  24. You'll have to edit that html page manually in core/pages/chat.htm (that's what i tmight be called). Then in that file just follow the instructions simple chat gives you to integrate the page (it might be some PHP code)
×
×
  • Create New...