Jump to content

Recommended Posts

Posted (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 by OmerAslan
Posted

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>

Posted

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.

Posted

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

Posted

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.

Posted

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

Posted

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.

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...