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

Background Images Not Showing As Intended

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-26-2004, 11:03 PM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default Background Images Not Showing As Intended

Can someone tell me if there is a way to make a background image show as intended and not multiply.

For example, in the dialog.tpl, I changed the standard xcart dialog_bg.gif to my own image but if the image size is not right on it multiplies.

See http://66.98.204.170/store/customer/pages.php?pageid=3
to see what I am talking about.

This is a clients site I just started and this will never go over.

X-Cart Version 3.5.2


Thanks!
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #2  
Old 01-27-2004, 02:00 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Divide your image in 3 pieces, the left blue part (leftblue.gif), the right blue part (rightblue.gif) and just a 1 pixel gray middle (dialog_bg_n.gif).

When the table starts, it starts with a line ( <tr> ), and inside that line it has cells ( <td> ), now if you see your dialog.tpl it only has one cell, so divide it into 3 cells like this:
Code:
<td>[img]{$ImagesDir}/leftblue.gif[/img]<td> <TD height=15 class=DialogTitle background="{$ImagesDir}/dialog_bg_n.gif" valign=bottom>{$title}</TD> <td>[img]{$ImagesDir}/rightblue.gif[/img]<td>
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 01-27-2004, 08:47 AM
  enge919's Avatar 
enge919 enge919 is offline
 

Senior Member
  
Join Date: May 2003
Posts: 141
 

Default

worked great! thanks leon.....

one note for anyone else reading this.

I had to change the dialog.tpl to make 2 seperate tables for this to work
Code:
<TABLE border=0 cellPadding=0 cellSpacing=0 {$extra}> <TR><td>[img]{$ImagesDir}/new/left_dialog_bg.gif[/img]<td> <TD width="100%" height=15 class=DialogTitle background="{$ImagesDir}/new/center_dialog_bg.gif" valign=bottom>{$title}</TD> <td>[img]{$ImagesDir}/new/right_dialog_bg.gif[/img]<td> </TR> </TABLE> <TABLE border=0 cellPadding=10 cellSpacing=1 width="100%"> <TR><TD class=DialogBox>{$content} </TD></TR> </TABLE>
__________________
Web site design - Custom Programming - Upgrades - Marketing
www.netvisionwebdesign.com

Follow on twitter: http://twitter.com/netvisionweb
Become a fan on Facebook: http://www.facebook.com/pages/NetVision-Web-Design/89463493419
Reply With Quote
  #4  
Old 01-27-2004, 11:32 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

It worked ? I was just guessing.... , no, just kiddin'

Your welcome.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.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:50 AM.

   

 
X-Cart forums © 2001-2020