X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   xcart 4.0.10[linux] Double header.tpl problem, weird (https://forum.x-cart.com/showthread.php?t=11911)

compmind 02-02-2005 08:26 PM

xcart 4.0.10[linux] Double header.tpl problem, weird
 
Hello, i need some help here.

Im customizing my xcart look, here(on process): http://www.smartechnologypr.com/store/home.php

However for some strange reason that i havent been able to figure out, head.tpl appears twice when any web page veiwer opens it, the code isnt repeated on neither head.tpl nor home.tpl (smarty {if} statement) . This is how my code looks:

home.tpl:
Code:

{* $Id: home.tpl,v 1.15 2004/07/13 13:35:42 svowl Exp $ *}
{if $printable ne ''}
{include file="customer/home_printable.tpl"}
{else}
{ config_load file="$skin_config" }
<HTML>
<HEAD>
<TITLE>
{if $config.SEO.page_title_format eq "A"}
{section name=position loop=$location}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{else}
{section name=position loop=$location step=-1}
{$location[position].0|escape}
{if not %position.last%} :: {/if}
{/section}
{/if}
</TITLE>
{ include file="meta.tpl" }
<link href="{$SkinDir}/default.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
{ include file="rectangle_top.tpl" }
{ include file="head.tpl" }

<TABLE border="0" width=766 cellpadding="0" cellspacing="0" align="center">
<TR>
<TD width="6" rowspan="2"></TD>
<TD width="150" valign="top">
{ include file="customer/categories.tpl" }


{if $active_modules.Bestsellers ne "" and $config.Modules.bestsellers_menu eq "Y"}
{ include file="modules/Bestsellers/menu_bestsellers.tpl" }
{/if}
{if $active_modules.Manufacturers ne "" and $config.Modules.manufacturers_menu eq "Y"}
{ include file="modules/Manufacturers/menu_manufacturers.tpl" }
{/if}
{ include file="customer/special.tpl" }
{if $active_modules.Users_online ne ""}
{ include file="modules/Users_online/menu_users_online.tpl" }


{/if}
{if $login eq "" }
{ include file="auth.tpl" }


{/if}
{ include file="customer/menu_cart.tpl" }


{if $login eq "" }
{ include file="news.tpl" }
{else}
{ include file="authbox.tpl" }
{/if}


{if $active_modules.Interneka ne ""}
{ include file="modules/Interneka/menu_interneka.tpl" }


{/if}
{ include file="help.tpl" }


{ include file="poweredby.tpl" }


[img]{$ImagesDir}/spacer.gif[/img]
</TD>
<TD width="20"></TD>
<TD valign="top">

{include file="location.tpl"}

{include file="dialog_message.tpl"}

{include file="customer/home_main.tpl"}


</TD>
<TD width="20"></TD>
</TR>
</TABLE>
{ include file="rectangle_bottom.tpl" }
</BODY>
</HTML>
{/if}




head.tpl :
Code:

<TABLE WIDTH=766 BORDER=0  align="center" CELLPADDING=0 CELLSPACING=0>
        <TR height="79">
               
                <TD>                 
                [img]images/toplogo.jpg[/img]
          </TD>
                <TD align="left" valign="top" width="150"  background="images/loginbg.jpg">
                </TD>
                <TD height="79"  align="center" valign="top" width="150" background="images/scbg.jpg"><blockquote>
                  <p align="left">
 
              </p>
      </blockquote></TD>
        </TR>
</table>
<table width="766" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr align="left" valign="top" height="42">
                <td WIDTH="103">
                        [img]images/spacer.gif[/img]
                </td>
                <td width="191" height="35" COLSPAN=3 ROWSPAN=2 bgcolor="#4092A8" border="0">
                        [img]images/tab1.jpg[/img]
                </td>
                <td WIDTH="75" HEIGHT="42" valign="top" background="images/subtabs.jpg">
                        [img]images/tab2.jpg[/img]

                </td>
                <td WIDTH="103" HEIGHT="42" background="images/subtabs2.jpg">
                        [img]images/tab3.jpg[/img]
                </td>
                <td WIDTH="78" HEIGHT="42" background="images/subtabs2.jpg">
                        [img]images/tab4.jpg[/img]
                </td>
                <td WIDTH="142" HEIGHT="42" background="images/subtabs2.jpg">
                        [img]images/tab5.jpg[/img]
                </td>
                <td WIDTH="60" HEIGHT="42" background="images/subtabs2.jpg">
                        [img]images/tab6.jpg[/img]
                </td>
                <td WIDTH="103" HEIGHT="42" background="images/subtabs2.jpg">
                        [img]images/tab7.jpg[/img]
                </td>
                <td WIDTH="103" HEIGHT="42">
                        [img]images/spacer.gif[/img]
                </td>
        </tr>
</table>
<map name="Map">
  <area shape="rect" coords="3,0,71,24" href="home.php">
</map>
<map name="Map2">
  <area shape="rect" coords="-2,3,99,23" href="register.php">
</map>
<map name="Map3">
  <area shape="rect" coords="-1,-2,73,22" href="http://www.prxhosting.net">
</map><map name="Map4">
  <area shape="rect" coords="2,0,137,23" href="faq.html">
</map><map name="Map5">
  <area shape="rect" coords="0,2,56,24" href="forum/">
</map><map name="Map6">
  <area shape="rect" coords="0,2,97,21" href="aboutus.html">
</map>


Has any one experienced this before? If so, please help, i cant find why this is happening at all =/ .
Thanks in advance

Jonathan
smartechnologypr.com

shan 02-03-2005 02:45 AM

have a look in rectangle_top.tpl

compmind 02-03-2005 04:55 AM

this is my rectangle_top.tpl .. i dont see any head.tpl mentioned around =/ any other ideas?
Code:

{* $Id: rectangle_top.tpl,v 1.13.2.3 2004/12/29 08:43:07 max Exp $ *}
{ include file="common_js.tpl"}
{if $config.Adaptives.isJS eq '' && $adaptives_action ne ''}
<FORM action="{$adaptives_action}" method="post" name="adaptiveform">
<INPUT type="hidden" name="send_isJS" value="Y">
<INPUT type="hidden" name="send_browser" id="send_browser" value="">
</FORM>
<SCRIPT type="text/javascript" language="JavaScript 1.2">
{include file="browser_identificator_js.tpl"}
document.getElementById('send_browser').value = browser_identificator();
document.adaptiveform.submit();
</SCRIPT>
{/if}
<TABLE align="center" border="0" cellpadding="0" cellspacing="0" width="{$width|default:"100%"}" height="100%">
  <TR>
    <TD valign="top">


compmind 02-03-2005 07:49 PM

anyone?


All times are GMT -8. The time now is 07:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.