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)
-   -   New .TPL Trouble (https://forum.x-cart.com/showthread.php?t=31280)

Terrybraley 05-22-2007 02:43 PM

Re: New .TPL Trouble
 
Changed that in my head.tpl, but my hor_categories.tpl is:

{* $Id: hor_categories.tpl,v 1.3.2.1 2006/05/10 12:15:08 max Exp $ *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">

{**** Horizontal categories ****}

<tr>
<TD width="30">&nbsp;</TD>
<TD><A href="/index.html"Target ="first_window"> Home </A></TD>
<TD width="20">&nbsp;</TD>
<TD><A href="/links2/"Target ="first_window"> Link's </A></TD>
<TD width="20">&nbsp;</TD>
<TD><A href="/phpmyfaq/index.php"Target ="first_window"> FAQ </A></TD>
<TD width="20">&nbsp;</TD>
<TD><A href="/novelties/help.php?section=contactus&mode=update"> Contact Us </A></TD>
</TR>
</FORM>
</TABLE>
{**** /Horizontal categories ****}

Terrybraley 05-22-2007 04:24 PM

Re: New .TPL Trouble
 
You said "in hor_categories is only 430 px wide" where do you see that?

Thanks for your help by the way, :)

JWait 05-23-2007 05:33 AM

Re: New .TPL Trouble
 
Quote:

Originally Posted by Terrybraley
You said "in hor_categories is only 430 px wide" where do you see that?

Thanks for your help by the way, :)


It is in the hor_categories.txt attachment in your first post.

Terrybraley 05-23-2007 12:22 PM

Re: New .TPL Trouble
 
I hade it at 430 to push the links all the way to the right. But they all bunched uo in the middle because I can't get that tpl to exspand to the end. So, I changed it to 30 to bring all the links to the left side.

JWait 05-23-2007 06:19 PM

Re: New .TPL Trouble
 
OK... the part that goes..
<tr>
<td class="" width="100%">{include file="customer/hor_categories.tpl"}</td>
</tr>

Since the class is undefined (class="") your text for Home, Link's, FAQ, etc will be whatever your default is, with the default background as specified in your skin1.css. It looks like you want it to be (class="HeadLine") as that is what the gray line underneath it is (put there by the part that says <TD class="HeadLine" align="right"> - it is the part that allows changing languages).

Terrybraley 05-24-2007 05:28 AM

Re: New .TPL Trouble
 
Well that filled the area with the links to grey but didn't exspand it al the way to the right, This is driving me nuts, lol

Terrybraley 05-24-2007 05:32 AM

Re: New .TPL Trouble
 
This is what I have so far:

{* $Id: head.tpl,v 1.40.2.4 2005/11/15 09:25:38 max Exp $ *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="107">&nbsp;</TD>
<TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="100%" height="100%" border="0"></A></TD>
<TD valign="top" align="right">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</TD></TR>
</TABLE>
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD colspan="2" class="VertMenuBorder"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
<TR>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</TD>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="login.tpl" }
{/if}
{* added to close cell and start categories in new cell *}
</TD></TR>
{* / added to close cell and start categories in new cell *}
<tr>
<TD class="HeadLine" align="right">{include file="customer/hor_categories.tpl"}</td>
</tr>
<TD class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B")and $all_languages_cnt gt 1}
<TABLE border="0" cellpadding="0" cellspacing="0">
<FORM action="home.php" method="GET" name="sl_form">
<INPUT type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|escape}">
<TR>
<TD>
<B>{$lng.lbl_select_language}:&nbsp;</B>
<SELECT name="sl" onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</TD></TR>
</FORM>
</TABLE>
{else}
&nbsp;
{/if}
</TD>
</TR>
<TR>
<TD colspan="2" class="VertMenuBorder"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
{******** Remove this line to display how much products there are online ****
<TR>
<TD colspan="2" class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}&nbsp;</TD>
</TR>
**** Remove this line to display how much products there are online ********}
<TR>
<TD colspan="2" valign="middle" height="32">
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="1" height="18" border="0"></TD>
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="176" height="1" border="0"></TD>
{/if}
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

Terrybraley 05-24-2007 05:36 AM

Re: New .TPL Trouble
 
I wonder if it would be easier to move the hor_catagory above the search. Put it between the top_menu and search.tpl ?

Terrybraley 05-24-2007 05:53 AM

Re: New .TPL Trouble
 
I added this :<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR> And now it exspanded.

head.tpl now

{* $Id: head.tpl,v 1.40.2.4 2005/11/15 09:25:38 max Exp $ *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="107">&nbsp;</TD>
<TD><A href="{$http_location}"><IMG src="{$ImagesDir}/xlogo.gif" width="100%" height="100%" border="0"></A></TD>
<TD valign="top" align="right">
{if $usertype eq "C"}
{include file="customer/top_menu.tpl"}
{/if}
</TD></TR>
</TABLE>
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD colspan="2" class="VertMenuBorder"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
<TR>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="customer/search.tpl" }
{/if}
</TD>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{ include file="login.tpl" }
{/if}
{* added to close cell and start categories in new cell *}
</TD></TR>
{* / added to close cell and start categories in new cell *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD colspan="2" class="VertMenuBorder"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
<tr>
<TD class="HeadLine" align="right">{include file="customer/hor_categories.tpl"}</td>
</tr>
<TD class="HeadLine" align="right">
{if ($usertype eq "C" || $usertype eq "B")and $all_languages_cnt gt 1}
<TABLE border="0" cellpadding="0" cellspacing="0">
<FORM action="home.php" method="GET" name="sl_form">
<INPUT type="hidden" name="redirect" value="{$smarty.server.PHP_SELF}?{$smarty.server.Q UERY_STRING|escape}">
<TR>
<TD>
<B>{$lng.lbl_select_language}:&nbsp;</B>
<SELECT name="sl" onChange="javascript: document.sl_form.submit()">
{section name=ai loop=$all_languages}
<OPTION value="{$all_languages[ai].code}"{if $store_language eq $all_languages[ai].code} selected{/if}>{$all_languages[ai].language}</OPTION>
{/section}
</SELECT>
</TD></TR>
</FORM>
</TABLE>
{else}
&nbsp;
{/if}
</TD>
</TR>
<TR>
<TD colspan="2" class="VertMenuBorder"><IMG src="{$ImagesDir}/spacer.gif" width="1" height="1" border="0"></TD>
</TR>
{******** Remove this line to display how much products there are online ****
<TR>
<TD colspan="2" class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}&nbsp;</TD>
</TR>
**** Remove this line to display how much products there are online ********}
<TR>
<TD colspan="2" valign="middle" height="32">
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="1" height="18" border="0"></TD>
{if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'}
<TD width="100%" valign="middle" align="right">{include file="printable.tpl"}</TD>
<TD><IMG src="{$ImagesDir}/spacer.gif" width="176" height="1" border="0"></TD>
{/if}
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

Terrybraley 05-24-2007 06:13 AM

Re: New .TPL Trouble
 
Now if I could just get the links to group togeather and aline to the right

www.roadrashapparel.com/novelties/home.php


All times are GMT -8. The time now is 09:07 AM.

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