Lebitek Posted September 1, 2020 Report Share Posted September 1, 2020 Good morning, we have recently migrated from VAM Manager and I need a little help, we have a Home Page that is outside the 'PHPVMS' folder of the installation, I have managed to make the Pilots Markers, N ° Flights, Routes etc. work. . But the custom map we have needs to show the Live Flights of our PHPVMS installation and I don't know exactly what codes I should change and where the Custom Map file should be, if I can help someone I would be super grateful. Quote Link to comment Share on other sites More sharing options...
Strider Posted September 2, 2020 Report Share Posted September 2, 2020 PHPVMS version? You need to make sure the code for the custom map points to the right table so gets the right info, and you need to be calling the correct files so it can connect to the db. Quote Link to comment Share on other sites More sharing options...
Lebitek Posted September 2, 2020 Author Report Share Posted September 2, 2020 I really appreciate your help, but I think I'm a bit lost on that topic. Could you explain to me how it is or what codes should I aim for? Quote Link to comment Share on other sites More sharing options...
Administrators ProAvia Posted September 2, 2020 Administrators Report Share Posted September 2, 2020 phpVMS version? PHP version? MySQL or Maria DB version? Explain what this home page is that is outside of the phpVMS install and why you think you need it. Is this home page WordPress related? Quote Link to comment Share on other sites More sharing options...
Lebitek Posted September 18, 2020 Author Report Share Posted September 18, 2020 Versión phpvms 5.5.2 Versión php 5.5 MySQL Wingovirtual.com This is our home page, our own design of the initial page, we had a map which showed the visitors the flights in real time, the phpvms design that we use is Skyblue and that is only shown as a crew center, once logged in . We would like to configure our map to show the flights in real time. Quote Link to comment Share on other sites More sharing options...
Heritage1 Posted September 18, 2020 Report Share Posted September 18, 2020 You need to include the below line of script somewhere on your Front Page, most include it in this; frontpage_main.php. This should be easy as I see your using HTML5 and Bootstrap, which of course will allow you to use some powerful scripting according to your Web Master's knowledge. The code is this. <?php MainController::Run('Acars', 'index'); ?> This will instantly call the ACARS Map and embed it to the front page. Be sure if using Google Maps, you have a script line also for your API Key or the map will not work for Google. This is why most of us have switched to Leaflet Maps. Your Google API script should be in 2 places if using bootstrap, the <head> and the <body>. Quote Link to comment Share on other sites More sharing options...
Strider Posted September 18, 2020 Report Share Posted September 18, 2020 2 hours ago, Heritage1 said: You need to include the below line of script somewhere on your Front Page, most include it in this; frontpage_main.php. This should be easy as I see your using HTML5 and Bootstrap, which of course will allow you to use some powerful scripting according to your Web Master's knowledge. The code is this. <?php MainController::Run('Acars', 'index'); ?> This will instantly call the ACARS Map and embed it to the front page. Be sure if using Google Maps, you have a script line also for your API Key or the map will not work for Google. This is why most of us have switched to Leaflet Maps. Your Google API script should be in 2 places if using bootstrap, the <head> and the <body>. That code will only work if the frontpage is calling to config files if it is not that code won't work. By the sounds of it he wants to implement the map on a web page outside of phpvms, thus your code won't work unless it is making a call to the config files. Quote Link to comment Share on other sites More sharing options...
Lebitek Posted September 18, 2020 Author Report Share Posted September 18, 2020 I really appreciate your help, we have a personalized map and it was working with the VAM Manager system, that map was created for us by a Webmaster that I hired, but we do not have a webmaster in our VA and I do everything related to our website. I would like to know how the process would be so that the traffic can be seen on our map. If you want to see the code, hopefully I can make that map work on the external page Quote Link to comment Share on other sites More sharing options...
Lebitek Posted October 24, 2020 Author Report Share Posted October 24, 2020 I would be very grateful if someone can help me insert the map on the external page (main page) so that visitors can see the map and flights online. wingovirtual.com Quote Link to comment Share on other sites More sharing options...
web541 Posted October 24, 2020 Report Share Posted October 24, 2020 You can try using this code: Make sure that the 'core/codon.config.php' inside the require() is set to the relative path of your phpvms folder/core/codon.config.php file. Quote Link to comment Share on other sites More sharing options...
Waters10 Posted January 10, 2021 Report Share Posted January 10, 2021 On 10/24/2020 at 7:26 PM, Lebitek said: I would be very grateful if someone can help me insert the map on the external page (main page) so that visitors can see the map and flights online. wingovirtual.com Looking at your website, it appears to managed to get it working. Could you please share how you managed it? Thanks! 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.