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)
-   -   Removing Line (https://forum.x-cart.com/showthread.php?t=14508)

larryb 06-10-2005 08:21 PM

Removing Line
 
I'm sure this is posted somewhere on the forum, but I'm unable to locate it after 2 days of looking.

I had my server crash and lost everything (dummy me - no current backup). Since I needed to start from scratch I decided to go with the current version. I was using a very old version and my notes don't seem to help on this one.

Anyway, I trying to remove the Gray line thats at the bottom of the head.tpl and I'm unable to figure out what I need to comment out. I got the border lines on the top and bottom of it removed and the search box, but I can't find out where to remove the thicker line.

Any help would be greatly appreciated.

You can see what I'm talking about at http://www.mysticalspells.com/shop/home.php

Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
Linux

pauldodman 06-10-2005 11:43 PM

Without seeing the code for your head.tpl file, I can't say for sure, but from the code I can see, I think in your head file you have an extra table in there that doesn't seem to be doing much.

Have a look for something like this:

Code:

<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
        <TD>[img]/shop/skin1/images/spacer.gif[/img]</TD>
</TR>
</TABLE>
        </TD>
</TR>
</TABLE>


The height of 18 seems to be about the height of your grey bar, try commenting out this table, or the row in it. (If it was me, I would alter the 18 first to see if it makes a difference, then you would know it was the right bit).

If this doesn't help, put your head code in a reply.

larryb 06-11-2005 07:24 AM

I tested removing what looked like the extra table and that didn't work. I also tried modifying all of the fields that had height 18 in them and still nothing. Below is a copy of my head.tpl.

{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *}
<TABLE border="0" cellpadding="0" cellspacing="0" width="100%">
<TR>
<TD width="27"></TD>
<TD>[img]{$ImagesDir}/mslogo7.gif[/img]</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]{$ImagesDir}/spacer.gif[/img]</TD>*}
</TR>
<TR>
<TD class="HeadLine" height="22">
{if $usertype eq "C"}
{*{ include file="customer/search.tpl" }*}
{/if}
</TD>
<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}">
<TR>
<TD>
{$lng.lbl_select_language}:
<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}

{/if}
</TD>
</TR>
<TR>
{*<TD colspan="2" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</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}</TD>
</TR>
**** Remove this line to display how much products there are online ********}
<TR>
<TD colspan="2" valign="middle" height="18">
<TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18">
<TR>
<TD>[img]{$ImagesDir}/spacer.gif[/img]</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]{$ImagesDir}/spacer.gif[/img]</TD>
{/if}
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
Linux
](*,)

Lingerieblowout 06-12-2005 09:56 AM

I think this is causing the grey to appear.. Just a thought

<TD class="HeadLine" height="22">
</TD>
<TD class="HeadLine" align="right">

Michael

larryb 06-13-2005 06:28 PM

That was the spot. Worked great.


Thanks

Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
Linux

Lingerieblowout 06-13-2005 06:30 PM

No problem.

Just viewed the source and followed the logic. You might want to re-think the purple background as the top nav buttons are ghosting

Michael

larryb 06-13-2005 09:18 PM

Thanks again,

I'm removing the top nav bar - so that's not a problem. My biggest problem now is that the upload images for products is not working. It's driving me nuts. And from the postings, I'm not the only one. http://forum.x-cart.com/viewtopic.php?t=20088

I was using a much older version, but my server crashed and I'm rebuilding now with the newest version, but for so reason the upload product images isn't working. Just gives me a blank popup screen. Hoping somebody on the other posting can figure it out.

Anyway, thanks again.

Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
Linux

Lingerieblowout 06-13-2005 09:57 PM

I had the same problem a long time ago. Ths was a result of not having proper permission to a tmp dir as the images are loaded there first before being added to your store. Had my host fix that for me

larryb 06-13-2005 10:16 PM

I checked the permissions on the tmp folder and they are 777, but the ownership is root. I wonder if that may be the problem.

Lingerieblowout 06-13-2005 10:20 PM

Follow these steps

Get your Host provider on the phone and have them looking at the admin for you and step them through the process of adding changing a image they can tell where it is bombing out by looking at the server.

How is your host provider?


All times are GMT -8. The time now is 01:11 PM.

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