Jump to content

[SOLVED] Live Map on Home Page


OmerAslan

Recommended Posts

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 by OmerAslan
Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...