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.
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.
mybe this <?php MainController::Run(‘ACARS’, ‘index’); ?>
I do not know if it works
Hi Rui,
Where do i have to put this code?
Hi Rui,
Where do i have to put this code?
Where ever you want the live map to show up. ![]()
I add this into iframe code but white screen comes up.
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>
Ok. Let m put it easy way, How can i show my Live map on external page? Please help.
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.
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
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.
yes i did. But when i change the core/codon.config.php location map stop showing flights.
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
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
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.