Here is a preview of my site: http://www.flamingbux.com
As you can see I have the menu bar and the iframe; however the menu bar is reloading in the iFrame preventing anything else from loading.
The menu bar is established in the configuration file such as
The main index file then loads as
The t.php (or theme header file) then loads as
Is there any way I can make the menu only load once for the user; or to prevent it from loading in the iFrame?
As you can see I have the menu bar and the iframe; however the menu bar is reloading in the iFrame preventing anything else from loading.
The menu bar is established in the configuration file such as
PHP:
if($set['theme_active'])
{
DEFINE('THDIR', 'themes/'.$set['theme_active'].'/');
DEFINE('HEADER', 'themes/'.$set['theme_active'].'/t.php');
DEFINE('FOOTER', 'themes/'.$set['theme_active'].'/f.php');
}
PHP:
session_start();
include_once('configuration.php');
$ddir = THDIR.$do->get_file_url();
include($ddir);
if(file_exists(HEADER)) { include_once(HEADER); }
if($contents) { print $contents; }
if(file_exists(FOOTER)) { include_once(FOOTER); }
?>
PHP:
<?php
if(!defined("START_PROCESS")) { die(""); }
$title = $ref_title . " - ". $set['title'];
$kw = $set['keywords'];
$desc = $set['desc']; //desc
?>
<html>
<head>
<title><?php print $title ?></title>
<meta http-equiv="content-type" content="en-gb">
<meta http-equiv="keywords" content="<?php print $kw; ?>">
<meta http-equiv="description" content="<?php print $desc; ?>">
<script src="<?php print $do->get_loc(); ?>ads_pb.php" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="/themes/bluebar/base.css" />
<!--scripts-->
<script src="http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js" type="text/javascript"></script>
<script src="/themes/bluebar/interface.js" type="text/javascript"></script>
<!--/scripts-->
</head>
<?php
$location = $do->get_loc();
if($loggedin) {
print <<<COUNT
<body>
<div id="menu">
//Menu Code//
</div>
<div id="mainContent">
<iframe id="iframe" width="100%" height="100%" src="/index.php" frameborder="0">
</body>
COUNT;
} else {
print <<<CONT
<body>
<div id="menu">
//Menu Code//
</div>
<div id="mainContent">
<iframe id="iframe" width="100%" height="100%" src="/index.php" frameborder="0">
</body>
CONT;
}
?>
</div>







