Thanks for confirming/verifying, seethrouWith the code provided by misty, I had tried the remote test and direct injected the codes into your site and the flash works.
Thanks for confirming/verifying, seethrouWith the code provided by misty, I had tried the remote test and direct injected the codes into your site and the flash works.
thanks for the input seethrou, ive had a look (im a bit out my depth).
there looks like reference to headers in tpl_main_page.php
dont know if that helps
rgds
Chas
Yes, the tpl_main_page.php can modify the pages and logic flow.
Can you give more detail?
A New Starter again
<?php
/**
* Common Template - tpl_main_page.php
*
* Governs the overall layout of an entire page<br />
* Normally consisting of a header, left side column. center column. right side column and footer<br />
* For customizing, this file can be copied to /templates/your_template_dir/pagename<br />
* example: to override the privacy page<br />
* - make a directory /templates/my_template/privacy<br />
* - copy /templates/templates_defaults/common/tpl_main_page.php to /templates/my_template/privacy/tpl_main_page.php<br />
* <br />
* to override the global settings and turn off columns un-comment the lines below for the correct column to turn off<br />
* to turn off the header and/or footer uncomment the lines below<br />
* Note: header can be disabled in the tpl_header.php<br />
* Note: footer can be disabled in the tpl_footer.php<br />
* <br />*/
$flag_disable_header = true;
/* $flag_disable_left = true;<br />*/
$flag_disable_right = true;
/* $flag_disable_footer = true;<br />
* <br />
* // example to not display right column on main page when Always Show Categories is OFF<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '') {<br />
* $flag_disable_right = true;<br />
* }<br />
* <br />
* example to not display right column on main page when Always Show Categories is ON and set to categories_id 3<br />
* <br />
* if ($current_page_base == 'index' and $cPath == '' or $cPath == '3') {<br />
* $flag_disable_right = true;<br />
* }<br />
*
* @package templateSystem
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_main_page.php 3183 2006-03-14 07:58:59Z birdbrain $
*/
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,explode(",",'list_pages_to_skip_all_right_sideboxes _on_here,separated_by_commas,and_no_spaces')) ) {
$flag_disable_right = true;
}
$header_template = 'tpl_header.php';
$footer_template = 'tpl_footer.php';
$left_column_file = 'column_left.php';
$right_column_file = 'column_right.php';
$body_id = str_replace('_', '', $_GET['main_page']);
?>
<body id="<?php echo $body_id . 'Body'; ?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>
<!-- Added a container div to hold all page information -->
<!-- Including bottom footer info and banners -->
<!-- mainWrapper now has a background applied to it -->
<div id="container">
<!-- begin mainWrapper -->
<div id="mainWrapper">
<!-- begin header/logo area -->
<div id="logoWrapper">
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
</div>
<!-- end logoWrapper --></div>
<div id="navigation">
<!-- Begin Search --><div id="search">
<div id="searchbox"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
<!-- End Search --></div>
<!-- begin top navigation -->
<div id="navMain"><a href="index.php"><img src="includes/templates/Series_12_Camera/images/spacer.gif" alt="Home Page" width="96" height="44" border="0" /></a><a href="index.php?main_page=login"><img src="includes/templates/Series_12_Camera/images/spacer.gif" alt="My Account" width="114" height="44" border="0" /></a><a href="index.php?main_page=logoff"><img src="includes/templates/Series_12_Camera/images/spacer.gif" alt="Log Out of My Account" width="89" height="44" border="0" /></a><a href="index.php?main_page=shopping_cart"><img src="includes/templates/Series_12_Camera/images/spacer.gif" alt="Shopping Cart" width="131" height="44" border="0" /></a><a href="index.php?main_page=checkout_shipping"><img src="includes/templates/Series_12_Camera/images/spacer.gif" alt="Checkout Now" width="106" height="44" border="0" /></a>
<!-- end top nav --></div>
<!-- end navigation wrapper --></div>
<!-- begin content Main wrapper -->
<div id="contentMainWrapper" class="clearfix">
<div id="right">
<div id="center">
<div><!-- bof breadcrumb --><?php if (DEFINE_BREADCRUMB_STATUS == '1') { ?>
<div id="navBreadCrumb">You Are Here> <?php echo $breadcrumb->trail(BREAD_CRUMBS_SEPARATOR); ?></div>
<?php } ?>
<!-- eof breadcrumb --></div>
<div><?php
if (SHOW_BANNERS_GROUP_SET3 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET3)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerThree" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<?php
/**
* prepares and displays center column
*
*/
require($body_code); ?><br />
<?php
if (SHOW_BANNERS_GROUP_SET4 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET4)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerFour" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?></div>
<!-- end center --></div>
<!-- end right --></div>
<div id="left">
<div id="navColumnOne" >
<?php
if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
<?php
/**
* prepares and displays left column sideboxes
*
*/
?>
<div id="navColumnOneWrapper" style="width: <?php echo BOX_WIDTH_LEFT; ?>"><?php require(DIR_WS_MODULES . zen_get_module_directory('column_left.php')); ?></div>
<?php
}
?>
<!-- End navColumnOne --></div>
<!-- end left --></div>
<!-- end content Main wrapper --></div>
<!-- begin bottom navigation -->
<div id="bottomnav">
<div id="navSuppWrapper">
<div id="navSupp">
<ul>
<li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?> :: </a></li>
<?php if (EZPAGES_STATUS_FOOTER == '1' or (EZPAGES_STATUS_FOOTER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
<li><?php require($template->get_template_dir('tpl_ezpages_bar_footer.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_footer.php'); ?></li>
<?php } ?>
</ul>
</div>
<!-- end navSuppWrapper --></div>
<!-- end bottom navigation --></div>
<!-- end mainWrapper --></div>
<!-- begin footer -->
<div>
<div id="copyright">
<?php
/**
* prepares and displays footer output
*
*/
require($template->get_template_dir('tpl_footer.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_footer.php');?>
<!-- end copyright --></div>
<!-- Begin footer --><div id="footer">
<!--bof- parse time display -->
<?php
if (DISPLAY_PAGE_PARSE_TIME == 'true') {
?>
<div class="smallText center">Parse Time: <?php echo $parse_time; ?> - Number of Queries: <?php echo $db->queryCount(); ?> - Query Time: <?php echo $db->queryTime(); ?></div>
<?php
}
?>
<!--eof- parse time display -->
<!--bof- banner #6 display -->
<?php
if (SHOW_BANNERS_GROUP_SET6 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET6)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerSix" class="banners"><?php echo zen_display_banner('static', $banner); ?></div>
<?php
}
}
?>
<!--eof- banner #6 display -->
<!-- end bottom --></div>
<!-- End container -->
</div>
</div>
</body>
Yes, the file above had modified, hard code and without reference to the tpl_header.php.
At least with compare with the original tpl_main_page.php, it missing the section for tpl_header.php which start at about line 64.
PHP Code:
<div id="mainWrapper">
<?php
/**
* prepares and displays header output
*
*/
require($template->get_template_dir('tpl_header.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_header.php');?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="contentMainWrapper">
<tr>
<?php
if (COLUMN_LEFT_STATUS == 0 or (CUSTOMERS_APPROVAL == '1' and $_SESSION['customer_id'] == '')) {
// global disable of column_left
$flag_disable_left = true;
}
if (!isset($flag_disable_left) || !$flag_disable_left) {
?>
I think you need to trace all your template files for further hints. For your template files now are hard coded even for some images which you can find in your file above.
A New Starter again
thank you seethrou and misty for all your help, im going to have to go back to the person who i got the template off and see if they can shed any light on these files that have been hard coded, everything is working fine apart from the flash header which i wanted to have on before putting the site back online but its not the end of the world and will go ahead and start trading.
thanks again for the help i do appreciate it.
Rgds
Chas
My last message was posted just before the saturday dinner.
For a second look, your file above only disply the logo and strip off other functions and the tpl_header.php. Then the code for flash should insert directly in this tpl_main_page.php.
You may try insert the code for the flash into your file above,
and between the sections code below.
If it works, then you may try to comment out the section code below for it display the current logo and tagline. And this may not need for your flash header.Code:<!-- begin mainWrapper --> <div id="mainWrapper"> <!-- begin header/logo area --> <div id="logoWrapper"> <!-- Try to insert the code for flash in this line below -->
PHP Code:
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>
<?php
}
?>
</div>
Last edited by seethrou; 11 Nov 2006 at 07:16 PM. Reason: Added info.
A New Starter again
WOW thanks seethrou its working, only problem ive got now is its created 2 white boxes either side of the main page
any ideas?
Chas
Bookmarks