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

background image woes :(

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-05-2004, 12:10 PM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default background image woes :(

I am attempting to get a background image working on this site:
http://shop.mpartworks.com/store/customer/home.php

As you can see, i have reduced the main template size to 770 & the table background is working perfectly.
however, i can not get the actual *page* background image to work. i have been working on this since 8am est, almost posted around noon, and now i have no more ideas myself.

I have modified: skin1.css, home.tpl, & rectangle_top.tpl (which is the background you can actually see)

skin1.css reads:
Quote:
body {
background-image: url("http://shop.mpartworks.com/store/skin1/images/mpaw/bg2.jpg"); background-repeat: repeat-y;
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #453324;

}

home.tpl reads:
Quote:
<body background="{$ImagesDir}/mpaw/bg2.jpg" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">


Neither of these two changes have made any difference. the files exists, the paths are correct, permissions 100% right...

any help, ideas, suggestions are extremely apprecited!
Thank you!
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #2  
Old 03-05-2004, 04:19 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Run cleanup.php in the xcart root, or Delete templates_c/

And clear your cache in your browser just in case so no cache's exist.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #3  
Old 03-06-2004, 04:19 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

looks liek another css rule is over riding your image.

look for .HeadBox maybe
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #4  
Old 03-06-2004, 01:16 PM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default

.HeadBox wouldn't override because its merely the page backround to be set... there is no table on top of that area.

did the cleanup.php - not sure what that really did, not much for my page. i always shift-reload to clear cache too..

any other ideas? this is highly frustrating.

thank you for all your help!
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #5  
Old 03-08-2004, 05:31 AM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default

I commented out .HeadBox just to double check to no avail... I ran cleanup.php again, no luck.

For the time being, i edited rectangle_top.tpl to have a 100% wide table with my background images & my 770 wide table with white background & it is working... but not properly.

i am really hitting my head against a wall here... i would really like this to work "the way it is supposed to" does anyone have any other ideas?

Thank you!!!
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
Reply With Quote
  #6  
Old 03-08-2004, 06:45 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

when you view the source code you see this code

Code:
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="770" height="100%" bgcolor="ffffff"> <TR> <TD valign=top>
]

that will either be in rectangle_top.tpl, home.tpl or head.tpl
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 03-08-2004, 10:31 AM
  domspe's Avatar 
domspe domspe is offline
 

Advanced Member
  
Join Date: Mar 2004
Location: Sarasota, FL
Posts: 79
 

Default

yes, this is the correct coding for rectangle_top.tpl - i have also sized that table to 770 ---

the content background is white, however the page background is bg2.jpg - the only thing that should have a textture is the page, every table on top of it is white.

I have modified rectangle_top.tpl to read:
Quote:
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="100%" height="100%" background="{$ImagesDir}/mpaw/bg2.jpg">
<TR>
<TD valign=top>
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="770" height="100%" bgcolor="ffffff">
<TR>
<TD valign=top>
This temporarily acheives my goal, just wondering if anyone knew how to make it work the "right" way.

Thank you again for all of your help... this is one of those weird things...
__________________
~jaime*
shop.mpartworks.com
~~~~~~~~~~~~~~
xcart pro 3.5.5
heavily modified
freeBSD 4.8
php 4.3.3
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 05:32 AM.

   

 
X-Cart forums © 2001-2020