Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Removing Line

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-10-2005, 08:21 PM
 
larryb larryb is offline
 

Member
  
Join Date: Aug 2004
Posts: 19
 

Default 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
Reply With Quote
  #2  
Old 06-10-2005, 11:43 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,052
 

Default

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.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 06-11-2005, 07:24 AM
 
larryb larryb is offline
 

Member
  
Join Date: Aug 2004
Posts: 19
 

Default

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
Reply With Quote
  #4  
Old 06-12-2005, 09:56 AM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

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

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

Michael
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #5  
Old 06-13-2005, 06:28 PM
 
larryb larryb is offline
 

Member
  
Join Date: Aug 2004
Posts: 19
 

Default

That was the spot. Worked great.


Thanks

Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
Linux
Reply With Quote
  #6  
Old 06-13-2005, 06:30 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

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
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #7  
Old 06-13-2005, 09:18 PM
 
larryb larryb is offline
 

Member
  
Join Date: Aug 2004
Posts: 19
 

Default

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
Reply With Quote
  #8  
Old 06-13-2005, 09:57 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

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
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
  #9  
Old 06-13-2005, 10:16 PM
 
larryb larryb is offline
 

Member
  
Join Date: Aug 2004
Posts: 19
 

Default

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.
__________________
Larry B
X-Cart Version 4.0.13
PHP Version 4.3.10
MySQL 3.23.58
Linux - Fedora
Reply With Quote
  #10  
Old 06-13-2005, 10:20 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

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?
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020