Kishshey Posted April 12, 2015 Report Share Posted April 12, 2015 Greetings everyone, If any of you know how to get a fullscreen acars map as a separate module, please let me know how to. Your help would be appreciated much. Thanks Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 12, 2015 Administrators Report Share Posted April 12, 2015 Heres a start -> http://forum.phpvms.net/topic/19785-livemap-and-inair/#entry106970 Quote Link to comment Share on other sites More sharing options...
Kishshey Posted April 13, 2015 Author Report Share Posted April 13, 2015 Hello, thanks for the information, I tried that, and instead of getting a fullscreen map, the map actually loads within the default layout (layout.tpl) Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 13, 2015 Administrators Report Share Posted April 13, 2015 I would look at it again. It seems to be working on the example -> http://skyline-va.de/phpvms/index.php/acars/viewmapbig Quote Link to comment Share on other sites More sharing options...
Kishshey Posted April 13, 2015 Author Report Share Posted April 13, 2015 Yeah I tried it on my site, exactly the way he described and it is rendering the map in my layout page. Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted April 13, 2015 Administrators Report Share Posted April 13, 2015 Whats the link to your site/map? Quote Link to comment Share on other sites More sharing options...
Kishshey Posted May 5, 2015 Author Report Share Posted May 5, 2015 The map doesn't load up when it's in action.php however on index.php it loads up inside the skin. He has mentioned doing some edits to index.php on the root folder. I tried that too, still no luck Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted May 10, 2015 Report Share Posted May 10, 2015 This is the code you need to put to index.php in the same time you need to create a new header_something.tpl $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); if(file_exists(SKINS_PATH.'/layout.tpl')) { $BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true)); $BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true)); $BaseTemplate->Set('page_content', $page_content); # It's a template sammich! if (strpos($page_content,'html { height: 100% } body { height: 100%; margin: 0; padding: 0 }') !== false) { $BaseTemplate->ShowTemplate('header_map.tpl'); echo $page_content;} elseif (strpos($page_content,'html { height: 100% } body { height: 100%; margin: 0; padding: 0 }') !== false) { $BaseTemplate->ShowTemplate('header_vrs.tpl'); echo $page_content;} else { $BaseTemplate->ShowTemplate('layout.tpl'); } } You need also touch ACARS.php module to declare an new *.tpl render in this new file you copy paste the acarsmap.tpl inside public function viewmapbig() { $this->set('acarsdata', ACARSData::GetACARSData()); $this->render('acarsmapbig.tpl'); } Inside the new.tpl put this in the top of your tpl: <style> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } body { padding: 0; margin: 0; } html, body, #acarsmap{ height: 100%; } </style> http://www.skydream-airlines.com/index.php/acars/viewmapbig Quote Link to comment Share on other sites More sharing options...
Kishshey Posted May 12, 2015 Author Report Share Posted May 12, 2015 This is the code you need to put to index.php in the same time you need to create a new header_something.tpl $BaseTemplate->Set('title', MainController::$page_title .' - '.SITE_NAME); $BaseTemplate->Set('page_title', MainController::$page_title .' - '.SITE_NAME); if(file_exists(SKINS_PATH.'/layout.tpl')) { $BaseTemplate->Set('page_htmlhead', Template::Get('core_htmlhead.tpl', true)); $BaseTemplate->Set('page_htmlreq', Template::Get('core_htmlreq.tpl', true)); $BaseTemplate->Set('page_content', $page_content); # It's a template sammich! if (strpos($page_content,'html { height: 100% } body { height: 100%; margin: 0; padding: 0 }') !== false) { $BaseTemplate->ShowTemplate('header_map.tpl'); echo $page_content;} elseif (strpos($page_content,'html { height: 100% } body { height: 100%; margin: 0; padding: 0 }') !== false) { $BaseTemplate->ShowTemplate('header_vrs.tpl'); echo $page_content;} else { $BaseTemplate->ShowTemplate('layout.tpl'); } } You need also touch ACARS.php module to declare an new *.tpl render in this new file you copy paste the acarsmap.tpl inside public function viewmapbig() { $this->set('acarsdata', ACARSData::GetACARSData()); $this->render('acarsmapbig.tpl'); } Inside the new.tpl put this in the top of your tpl: <style> html { height: 100% } body { height: 100%; margin: 0; padding: 0 } body { padding: 0; margin: 0; } html, body, #acarsmap{ height: 100%; } </style> http://www.skydream-...cars/viewmapbig Thank you very much for this sir, I will take a look today. Thanks EDIT : Would you mind telling me what should I include in the header_map.tpl Quote Link to comment Share on other sites More sharing options...
Kishshey Posted May 12, 2015 Author Report Share Posted May 12, 2015 And I'm still failing at it, do you mind sending me all the files associated with this full screen map, sir? http://va.skylinefsx.com/index.php/acars/viewmapbig here is the link Quote Link to comment Share on other sites More sharing options...
FSX30HD Posted May 12, 2015 Report Share Posted May 12, 2015 EDIT : Would you mind telling me what should I include in the header_map.tpl You need to include in your header <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="X-UA-Compatible" content="IE=10" charset=utf-8> <title><?php echo $page_title; ?></title> <?php Template::Show('core_htmlhead.tpl'); ?> </head> <body> <?php Template::Show('core_htmlreq.tpl'); ?> Quote Link to comment Share on other sites More sharing options...
Kishshey Posted May 12, 2015 Author Report Share Posted May 12, 2015 You need to include in your header <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"> <head> <meta http-equiv="X-UA-Compatible" content="IE=10" charset=utf-8> <title><?php echo $page_title; ?></title> <?php Template::Show('core_htmlhead.tpl'); ?> </head> <body> <?php Template::Show('core_htmlreq.tpl'); ?> Thanks I will try now EDIT Thanks a lot sir it is working perfectly now. Quote Link to comment Share on other sites More sharing options...
Iraklis Posted October 4, 2015 Report Share Posted October 4, 2015 any help with this??/ http://www.gralexandair.net/index.php/acars/viewmapbig 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.