First and very important, you need to set up your own template directory, and put copies of all files you have modified into it in their proper order (matching /template_default). The only other file you absolutely need for your own template is /includes/templates/your_template/template_info.php (which you can copy from /template_default and change the info). See FAQ/Tutorials for full directions.
There is nothing that would help you in my copy of tpl_main_page.php.
All you need to do is add this snippet near the top of your copy (in your template folder! :)
PHP Code:
if ($this_is_home_page) {
$flag_disable_header = true;
$flag_disable_left = true;
$flag_disable_right = true;
}
just below
PHP Code:
* @version $Id: tpl_main_page.php 4886 2006-11-05 09:01:18Z drbyte $
*/
I don't have time at the moment to zip define_main_page.php for uploading, but here is a representative sample at the beginning of the file:
PHP Code:
<?php $fr_root = HTTP_SERVER . DIR_WS_CATALOG;
$fr_cpath = $fr_root . 'index.php?main_page=index&cPath='; ?>
<!--bof-home page header logo & links display-->
<div id="homeShopView"><?php echo '<a href="' . $fr_root . 'index.php?main_page=page&id=2"><img src="' . $fr_root . DIR_WS_TEMPLATE . 'images/frshopview.gif" alt="Our Shop"></a>';?></div>
<div id="homeLogo"><?php echo '<img src="' . $fr_root . 'images/frlogohomepg.gif" alt="Future Relics - Timeless Creations in Precious Metals"></a>';?><br />
We invite you ... etc...</div>
(The PHP at the top was just for my convenience - you can use straight HTML, or PHP echo as shown:)
PHP Code:
<?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . 'index.php?main_page=page&id=2"><img src="' . HTTP_SERVER . DIR_WS_CATALOG . DIR_WS_TEMPLATE . 'images/frshopview.gif" alt="Our Shop"></a>';?>
This points to my ezpage #2, and gets an image from the /my_template/images/ folder.