freshJet Posted May 21, 2012 Report Share Posted May 21, 2012 No. Have you installed the module? Quote Link to comment Share on other sites More sharing options...
JustinRomaine Posted May 21, 2012 Report Share Posted May 21, 2012 Yes, just testing out what that guy posted to see if that worked and this is what it shows Pilot: [] Flight: Name: () Route: to Altitude: Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted May 22, 2012 Author Administrators Report Share Posted May 22, 2012 I have added an example function to the controller and an example template for an html table view in the GitHub repo. Hope this helps you out. Quote Link to comment Share on other sites More sharing options...
iva Posted June 22, 2012 Report Share Posted June 22, 2012 hello all, i changed the table.tpl and now i just get my own pilots data whith any callsigns in my site, here is the changed code for all : <table width="100%"> <tr> <th>Call Sign</th> <th>CID</th> <th>Real Name</th> <th>Aircraft</th> </tr> <?php $roster = PilotData::getAllPilots(); foreach($roster as $pilot) { if ($flights) { foreach($flights as $flight) { if ($flight[1] == PilotData::GetFieldValue($pilot->pilotid, 'VATSIM ID')) { echo '<tr>'; echo '<td>'.$flight[0].'</td>'; echo '<td>'.$flight[1].'</td>'; echo '<td>'.$flight[2].'</td>'; echo '<td>'.$flight[9].'</td>'; echo '</tr>'; } } } } ?> </table> and to show the vatsim information of your pilots use this code on any pages of your site : <?php MainController::Run('Vatsim', 'create_vatsim_table', '!CLIENTS:', 'PILOT', ''); ?> just another thing!! you need to add the field "VATSIM ID" in your REGISTRATION MAIN FORM! and your pilots must enter their VID correctly! Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 12, 2012 Moderators Report Share Posted July 12, 2012 Hey guys, I have extended this module, with a VATSIM Map, that you can display your online VA map...ETC... Anyone interested? Quote Link to comment Share on other sites More sharing options...
mseiwald Posted July 12, 2012 Report Share Posted July 12, 2012 yeah i`m very interested Kyle that`s a great feature Quote Link to comment Share on other sites More sharing options...
CPC900 Posted July 12, 2012 Report Share Posted July 12, 2012 Yes, interested as well Quote Link to comment Share on other sites More sharing options...
Moderators Kyle Posted July 13, 2012 Moderators Report Share Posted July 13, 2012 Remember, it's not my whole work... I only just added a map. I'll add a pull request to simpilot and see if's he's okay with it. Download Here View Changes Here Show All Online Flights Map <?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'PILOT', ''); ?> Show only a airline online flights Map <?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'PILOT', 'AAL'); ?> Show more than one online airline flights Map.. <?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'PILOT', array('AAL', 'UAL', 'SWA')); ?> Enjoy! Quote Link to comment Share on other sites More sharing options...
mseiwald Posted July 13, 2012 Report Share Posted July 13, 2012 thank you very much kyle...works great. Quote Link to comment Share on other sites More sharing options...
stelioc Posted January 4, 2013 Report Share Posted January 4, 2013 HI GUYS how can i get the files and the modifications for the goggle map please Thank you Quote Link to comment Share on other sites More sharing options...
freshJet Posted January 4, 2013 Report Share Posted January 4, 2013 It's in his post Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted January 4, 2013 Author Administrators Report Share Posted January 4, 2013 HI GUYS how can i get the files and the modifications for the goggle map please Thank you The code was merged into the original package on GitHub here -> https://github.com/DavidJClark/phpVMS-VatsimDataReader Quote Link to comment Share on other sites More sharing options...
ukmil Posted February 4, 2013 Report Share Posted February 4, 2013 .ok, i am lost here i downloaded your module, then in the VATSIM module file, i changed the URL to my TXT file. I uploaded the files to my server But, where do i put those example lines such as ?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'PILOT', ''); ?> where do i put this? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted February 15, 2013 Author Administrators Report Share Posted February 15, 2013 .ok, i am lost here i downloaded your module, then in the VATSIM module file, i changed the URL to my TXT file. I uploaded the files to my server But, where do i put those example lines such as ?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'PILOT', ''); ?> where do i put this? You can place that in the template where you would like the map to display. Quote Link to comment Share on other sites More sharing options...
CitationCJ Posted July 15, 2013 Report Share Posted July 15, 2013 Thanks for the Code! Is there a way to add an error message if no flight has been found? Quote Link to comment Share on other sites More sharing options...
Tato123 Posted July 15, 2013 Report Share Posted July 15, 2013 Is possible have the same module for ivao system? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted July 16, 2013 Author Administrators Report Share Posted July 16, 2013 Is possible have the same module for ivao system? Yes, you just have to change a few things in the module. Set the data feed urls to the IVAO url's that you can find on a daily basis here -> http://www.ivao.aero/whazzup/status.txt You will also have to Change the !CLIENTS: identifier to just !CLIENTS I believe, you may have to mess with the data file a little as it has some slight differences than the Vatsim version. I would also make another module using this code for an IVAO version and have it set to use IVAO wherevever you would normally use VATSIM. Quote Link to comment Share on other sites More sharing options...
BaRBeR Posted August 25, 2013 Report Share Posted August 25, 2013 I'm not quite understanding how you download the VATSIM data file? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 26, 2013 Members Report Share Posted August 26, 2013 What do you mean by that ? the module downloads the text to your server from random places that are specified in the php file and then it reads it and converts it into array. Quote Link to comment Share on other sites More sharing options...
BaRBeR Posted August 26, 2013 Report Share Posted August 26, 2013 Well, its not downloading it in that case then, is it because the main VATSIM server is down? Quote Link to comment Share on other sites More sharing options...
Members Vangelis Posted August 26, 2013 Members Report Share Posted August 26, 2013 Yes indeed you must have a vatsimdata.txt file in your site root if you have everything correct but this file should read a 404 error or something similar Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 27, 2013 Author Administrators Report Share Posted August 27, 2013 Well, its not downloading it in that case then, is it because the main VATSIM server is down? The script is setup to grab the actual whazzup file from one of four servers that are independent of the main vatsim server. Unfortunatly all these locations get their data from the Vatsim server. I chacked http://info.vroute.net/vatsim-data.txt and http://fsproshop.com/servinfo/vatsim-data.txt and neither of them have data so I am guessing you are stuck until Vatsim comes back up. The status file for available data locations is also down. http://status.vatsim.net Quote Link to comment Share on other sites More sharing options...
BaRBeR Posted August 27, 2013 Report Share Posted August 27, 2013 The script is setup to grab the actual whazzup file from one of four servers that are independent of the main vatsim server. Unfortunatly all these locations get their data from the Vatsim server. I chacked http://info.vroute.net/vatsim-data.txt and http://fsproshop.com...vatsim-data.txt and neither of them have data so I am guessing you are stuck until Vatsim comes back up. The status file for available data locations is also down. http://status.vatsim.net Alright cheers simpilot, I'll have a go again when VATSIM is back up. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 27, 2013 Author Administrators Report Share Posted August 27, 2013 Looks like it is a good case for Murphy's Law by the looks of their post -> http://forums.vatsim.net/viewtopic.php?f=1&t=61952 Quote Link to comment Share on other sites More sharing options...
Ashj24uk Posted August 27, 2013 Report Share Posted August 27, 2013 Hi sim pilot the data feeds links in the vatsim.php but for some reason its still not creating the new vatsim file in the root of my install have you got any ideas what could be wrong? Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 27, 2013 Author Administrators Report Share Posted August 27, 2013 Hi sim pilot the data feeds links in the vatsim.php but for some reason its still not creating the new vatsim file in the root of my install have you got any ideas what could be wrong? The issue is explained in the posts above yours. I do not know when the data feeds will return. Quote Link to comment Share on other sites More sharing options...
Ashj24uk Posted August 28, 2013 Report Share Posted August 28, 2013 The issue is explained in the posts above yours. I do not know when the data feeds will return. I know you do not know when the data feeds are back up i have check when i put this post up and they were back online but as i stated the vatsim data file is still not being created Quote Link to comment Share on other sites More sharing options...
Virtualei Posted August 28, 2013 Report Share Posted August 28, 2013 Hi there, Great addition Kyle to Simpilots work. One question if I may. To show the ATC online on the map I tried to put in "ATC" instead of "PILOT" but doesnt seem to work. Is there something else I need to change. <?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'ATC', ''); ?> Thanks in advance Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 28, 2013 Author Administrators Report Share Posted August 28, 2013 I know you do not know when the data feeds are back up i have check when i put this post up and they were back online but as i stated the vatsim data file is still not being created When I made my post the links were still down, as of this morning they are up again, at least for the moment from the looks of the posts in the Vatsim developers forum. You should have no issue at this point, if you do, then I would look at what you have changed on your install that would make the file not save to your server. Permissions, IP blocks, changed folder structure, etc... Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 28, 2013 Author Administrators Report Share Posted August 28, 2013 Hi there, Great addition Kyle to Simpilots work. One question if I may. To show the ATC online on the map I tried to put in "ATC" instead of "PILOT" but doesnt seem to work. Is there something else I need to change. <?php MainController::Run('Vatsim', 'create_vatsim_livemap', '!CLIENTS:', 'ATC', ''); ?> Thanks in advance He will have to look at the structure of the map template and the data that is returned from the vatsim file for ATC and make some changes to allow for ATC data to be shown from what I can tell by quickly going over the files. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.