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

menu.tpl background image problem

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-01-2004, 09:13 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default menu.tpl background image problem

hello,
I wanted to use the background image in the menu like one used wildshopping.com/customer/home.php

Here is my code for menu.tpl
Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="26">[img]{$ImagesDir}/menu_bg_orange.gif[/img]</td> <td background="{$ImagesDir}/menu_bg_orange.gif"><font class=VertMenuBoxNewsTitle>{$menu_title}</font></td> </tr> </table><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" class="VertMenuBorder">[img]{$ImagesDir}/menu_bg_orange.gif[/img]</td> <td class="VertMenuBox"> <TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <TD width="80%" class=VertMenuBox nowrap>{$menu_content} </TD> </TR> </TABLE> </td> <td width="1" class="VertMenuBorder">[img]{$ImagesDir}/menu_bg_orange.gif[/img]</td> </tr> <tr> <td width="1" height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> <td height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> <td width="1" height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> </table>

It shows the background image correctly but in the dingbats area it shows squre empty space !!
Like this.. http://www.gujaratibooks.com/temp/dingbats_problem.jpg

I don't want to use dingbats instead I want to use image which would be match with my background color like one used at wildshopping.com.

So what need to be change for this ?
Any help would be appriciated
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #2  
Old 03-02-2004, 04:44 AM
  shan's Avatar 
shan shan is offline
 

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

Default

find this

Code:
<TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <TD width="80%" class=VertMenuBox nowrap>{$menu_content} </TD> </TR> </TABLE>


change to this

Code:
<TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <td background="{$ImagesDir}/menu_content_bg.gif" nowrap>{$menu_content} </TD> </TR> </TABLE>

then upload your background image called menu_content_bg.gif to

skin1/images/
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 03-02-2004, 05:43 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

Shan thanks a lot for the quick reply.
But I think there some mistake in the code. Your code affect the other row of table I want image in "Title" raw of the table where there is a squre blank space.
From this image I think it would be easy to understand what I actually need.
http://www.gujaratibooks.com/temp/dingbats_problem_2.gif

I hope you will above to solve this.
Thanks once again for the help
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #4  
Old 03-03-2004, 12:00 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

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

Default

Simplist method would be to replace all dingbat_*.gif images with this one image so you don't have to change every tpl file.

__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #5  
Old 03-09-2004, 05:56 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

I changed the image name also but still it's shows the blank space
Can any one please help me to solve this problem ?
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
Reply With Quote
  #6  
Old 03-09-2004, 06:04 AM
  shan's Avatar 
shan shan is offline
 

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

Default

make sure you set the correct image name

Code:
<table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="26">[img]{$ImagesDir}/menu_content_bg.gif[/img]</td> <td background="{$ImagesDir}/menu_bg_orange.gif"><font class=VertMenuBoxNewsTitle>{$menu_title}</font></td> </tr> </table><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="1" class="VertMenuBorder">[img]{$ImagesDir}/menu_bg_orange.gif[/img]</td> <td class="VertMenuBox"> <TABLE border=0 cellPadding=5 cellSpacing=0 width="100%"> <TR> <TD width="80%" class=VertMenuBox nowrap>{$menu_content} </TD> </TR> </TABLE> </td> <td width="1" class="VertMenuBorder">[img]{$ImagesDir}/menu_bg_orange.gif[/img]</td> </tr> <tr> <td width="1" height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> <td height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> <td width="1" height="1" class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</td> </tr> </table>
__________________
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-09-2004, 08:35 AM
 
anandat anandat is offline
 

X-Adept
  
Join Date: Jan 2004
Posts: 914
 

Default

Thanks a lot Shan at last it's now working perfectly.
__________________
X-Cart: 4.7.7 LIVE
Skin:Ultra by xcartmods.co.uk
X-cart Modules: | ACR, Rich Google Search, Customer Testimonials | Cloud Search, | Websitecm: CDSEO (2.1.9)
---------------
Server: Linux
php: 5.3
mysql: 5.0.89
----------------
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 07:48 AM.

   

 
X-Cart forums © 2001-2020