OmerAslan Posted April 9, 2016 Report Posted April 9, 2016 (edited) Hello, My phpvms 5.5.2 version working on subdomain. I want to put my live map with list at the bottom of map to my homepage (domain page) what should i do to do this? I tried with iframe but it didn't work for some reason. Please help. Thanks. Edited May 31, 2016 by OmerAslan Quote
RuiMiguel Posted April 9, 2016 Report Posted April 9, 2016 mybe this <?php MainController::Run('ACARS', 'index'); ?> I do not know if it works Quote
OmerAslan Posted April 9, 2016 Author Report Posted April 9, 2016 Hi Rui, Where do i have to put this code? Quote
TennShadow Posted April 10, 2016 Report Posted April 10, 2016 Hi Rui, Where do i have to put this code? Where ever you want the live map to show up. :-) Quote
OmerAslan Posted April 10, 2016 Author Report Posted April 10, 2016 I add this into iframe code but white screen comes up. Quote
OmerAslan Posted April 11, 2016 Author Report Posted April 11, 2016 can you guys help me little bit about this? this is my iframe code. but not working. <iframe src="http://a.aalvirtual.com/index.php/acars" style="border:0px #ffffff none;" name="myiFrame" scrolling="no" frameborder="1" marginheight="0px" marginwidth="0px" height="768px" width="1024px"></iframe> Quote
OmerAslan Posted April 13, 2016 Author Report Posted April 13, 2016 Ok. Let m put it easy way, How can i show my Live map on external page? Please help. Quote
web541 Posted April 13, 2016 Report Posted April 13, 2016 I assume that you want it to be on your front page where phpVMS is not installed. Try including the phpvms config file like this <?php require('core/codon.config.php'); ?> Make sure that the above directory is correct (a.k.a not inside another folder, then you will have to change this location) and then use the code suggested above <?php MainController::Run('ACARS', 'index'); ?> Where ever you want the map to show up. Quote
OmerAslan Posted April 13, 2016 Author Report Posted April 13, 2016 This is what i get, i don't know if i did any mistake, Parse error: syntax error, unexpected 'MainController' (T_STRING) in /home/pilotomeraslan/public_html/a/core/templates/acarsmap.php on line 54 Quote
web541 Posted April 13, 2016 Report Posted April 13, 2016 did you put this at the top of the page where you want it? So it loads before anything else. <?php require('core/codon.config.php'); ?> and make sure you change core/codon.config.php if it's in a sub folder. Quote
OmerAslan Posted April 13, 2016 Author Report Posted April 13, 2016 yes i did. But when i change the core/codon.config.php location map stop showing flights. Quote
OmerAslan Posted April 14, 2016 Author Report Posted April 14, 2016 yes i did. But when i change the core/codon.config.php location map stop showing flights. And i get this picture http://prntscr.com/as06lc Quote
magicflyer Posted April 14, 2016 Report Posted April 14, 2016 To add on top of web541's suggestion be sure the 'core/codon.config.php' part refers to the location of the codon.config.php RELATIVE to this "External" page. If your external page is located in public_html/en and your main website is located in public_html the actual code should be: <?php require('../core/codon.config.php'); ?> Notice the ".." which basically translates to "Go one folder up" This might help even more - http://stackoverflow.com/questions/10630570/relative-urls-paths-in-php Quote
OmerAslan Posted April 14, 2016 Author Report Posted April 14, 2016 To add on top of web541's suggestion be sure the 'core/codon.config.php' part refers to the location of the codon.config.php RELATIVE to this "External" page. If your external page is located in public_html/en and your main website is located in public_html the actual code should be: <?php require('../core/codon.config.php'); ?> Notice the ".." which basically translates to "Go one folder up" This might help even more - http://stackoverflow...ls-paths-in-php Thanks my friend. I am not so good with the codes but until now, i fixed all my problems with you guys. Only this one, i couldn't make it. No matter what i did, didn't work I give up. Quote
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.