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)
-   -   aligning page (or left hand menu) to the left - ADULT SITE (https://forum.x-cart.com/showthread.php?t=4463)

CForrester 09-24-2003 01:18 AM

aligning page (or left hand menu) to the left - ADULT SITE
 
Hi I'm going round-and-round trying to make this site have the left hand menu right up to the left hand side but can't seem to do this either in the head.tpl or categories.tpl
site is at

(thanks to others for noticing that i want to warn other members - this is an ADULT CONTENT SITE - DON'T VIEW AT WORK OR IF YOU ARE UNDER 18....prob. not very good for your immediate employment prospects if found looking during work)

http://www.mrs-cs.co.uk/xcart/customer/home.php


any help appreciated.
thanks
chris

magnumkp 09-24-2003 03:13 AM

In the customer/hometpl there is a 6px column down the left hand side.

funkydunk 09-24-2003 03:27 AM

no idea why xcart put that there...annoying to remove that on every xcart install.

CForrester 09-24-2003 03:49 AM

Hi thanks for posting, i made the column width 0 in the home.tpl (i've got that with <html>
<body RIGHTMARGIN=0 BOTTOMMARGIN=0 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="100%" border="0" cellspacing="0" cellpadding="0" etc etc
in it as it doesn't got right to the top otherwise and looks pants.......but it's still the same distance off the left side
the code is now

<table border=0 width="100%" cellpadding=0 cellspacing=0 align="center">
<tr>
<td class=VertMenuBox width=0></td>
<td class=VertMenuBox width=150 valign=top><font color="#CCCCCC"> {
include file="customer/categories.tpl" } {if $active_modules.Bestsellers ......etc etc

can i access this VertMenuBox class or is it just a css with colours etc in not dimensions / widths ?
I tried left justifying the categories.tpl but that doesn't seem to work either.
i may revisit the original tpl files in the back up dir to see what they're widths are.
:?

funkydunk 09-24-2003 03:52 AM

Quote:

Originally Posted by CForrester
Hi thanks for posting, i made the column width 0 in the home.tpl (i've got that with <html>
<body RIGHTMARGIN=0 BOTTOMMARGIN=0 LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<table width="100%" border="0" cellspacing="0" cellpadding="0" etc etc
in it as it doesn't got right to the top otherwise and looks pants.......but it's still the same distance off the left side
the code is now

<table border=0 width="100%" cellpadding=0 cellspacing=0 align="center">
<tr>
<td class=VertMenuBox width=0></td>
<td class=VertMenuBox width=150 valign=top><font color="#CCCCCC"> {
include file="customer/categories.tpl" } {if $active_modules.Bestsellers ......etc etc

can i access this VertMenuBox class or is it just a css with colours etc in not dimensions / widths ?
I tried left justifying the categories.tpl but that doesn't seem to work either.
i may revisit the original tpl files in the back up dir to see what they're widths are.
:?


Remove the <td class=VertMenuBox width=0></td> and it will work fine

CForrester 09-24-2003 04:40 AM

aligning page (or left hand menu) to the left .....cheers
 
great that worked thanks :D
chris

DogByteMan 09-24-2003 04:51 AM

That line (<td class=VertMenuBox width=6></td>) is located at ....../single/home.tpl if you want to rid it from your admin panel.

CForrester 09-24-2003 07:07 AM

aligning page (or left hand menu) to the left
 
thanks I'll try that too......what does that reference to it in the single/home.tpl do as the /customer/home.tpl seemed to do the trick ?
chris :D

DogByteMan 09-24-2003 07:19 AM

It puts the same annoying spaces before the left menu in your cart admin section

bluecat 11-11-2003 04:51 PM

I'm using 3.4.8, and I deleted that line in "both" files and it didn't do anything. Has this happened to anyone else? I'm talking about this line:
Code:

<td class=VertMenuBox width=6> </td>
in single/home.tpl and customer/home.tpl.

DogByteMan 11-11-2003 04:54 PM

Run cleanup.php bluecat... In fact whenever you make a change run cleanup.php to make sure you get rid of the old templates.

bluecat 11-11-2003 05:05 PM

ok, thanks.

DogByteMan 11-11-2003 05:09 PM

bluecat,

did you replace the title areas with an image? If so make sure the Image is 150X30.

bluecat 11-11-2003 05:17 PM

Yes I did, so I'll try that.

DogByteMan 11-11-2003 05:24 PM

After making sure your images are 150X30 check menu.tpl

Try this

Code:

<TABLE border=0 cellPadding=5 cellSpacing=0 width="100%">
<TR>
{if $link_href}
<TD class=VertMenuTitle background="{$ImagesDir}/your_image.gif" height=30 valign=center width=150><font class=VertMenuTitle>{$menu_title}</font></TD>
{else}
<TD class=VertMenuTitle background="{$ImagesDir}/your_image.gif" height=30 valign=center width=150><font class=VertMenuBoxNewsTitle>{$menu_title}</font></TD>
{/if}
</TR>
<TR>
<TD colspan="2" class=VertMenuBox>{$menu_content}
</TD></TR>
</TABLE>


change your_image.gif to the name of your image file

bluecat 11-11-2003 05:42 PM

Cool, that worked. Thanks. Also, I didn't even change the images and they just moved over how I wanted them to, so it's a win-win. Thanks again.

bluecat 11-11-2003 05:50 PM

I apologize, one last question (for tonight, lol). Got it working perfect for the php files, thanks, but which file can I also edit it in the "catalog" area, which is what people coming from search engines will see first.

Well, if anyone knows, please post. I think I've searched every directory. :( Thanks again DBM.

DogByteMan 11-11-2003 06:13 PM

](*,) You must be tired..... Regenerate the catalog, it won't change till you do.

bluecat 11-11-2003 07:32 PM

you are right, lol. Thanks man. :roll:


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

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