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

Category Pics not displaling in IE correctly

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-05-2010, 01:39 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Lightbulb Category Pics not displaling in IE correctly

Hello,

I am new to this form and have searched for an answer, please forgive me if I missed the post.

http://67.227.134.204/shop/home.php?cat=365


The category pics do not display in IE, is there a fix for this?


It works great in FireFox!

thanks for your time.

Cheers,

Jason
__________________
Current version: 4.1.9
Reply With Quote
  #2  
Old 01-05-2010, 02:56 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Category Pics not displaling in IE correctly

Looks as if you have an error in one of your templates. Where the images are not displaying in IE, you have:
<img width="200" height="$height"
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #3  
Old 01-05-2010, 03:02 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Default Re: Category Pics not displaling in IE correctly

what would i put there to make it auto on the height?
__________________
Current version: 4.1.9
Reply With Quote
  #4  
Old 01-05-2010, 03:06 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Category Pics not displaling in IE correctly

I don't understand your question.

If you don't state a height, the image will scale to a width of 200.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #5  
Old 01-05-2010, 04:23 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Smile Re: Category Pics not displaling in IE correctly

so the correct code would be

<img width="200" height=""

I do want the 200 width but I want the height to be determined by the image.

Thanks for your help. This will save me days if not weeks.
__________________
Current version: 4.1.9
Reply With Quote
  #6  
Old 01-05-2010, 04:41 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Category Pics not displaling in IE correctly

no - then you will have the same issues in IE.

just do
<img width="200" src="the url" alt="alt text" />

Still not sure I understand 'determined by the image'. If you set the width only, it will scale based on the width. If you want it to scale by the height, set the height, not the width. Anything else will distort the image, unless width and height are set proportional to the original.

see this to understand what the html settings will do.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #7  
Old 01-05-2010, 04:44 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Default Re: Category Pics not displaling in IE correctly

You wouldn't happen to know which template file that is in?
__________________
Current version: 4.1.9
Reply With Quote
  #8  
Old 01-05-2010, 05:20 PM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Category Pics not displaling in IE correctly

Have you tried using Webmaster mode? It will tell you exactly which template to modify so you don't have to guess. You'll probably find some of the problems in skin1/customer/main/subcategories.tpl. Not sure about what templates were modified on your front page.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
Reply With Quote
  #9  
Old 01-05-2010, 05:36 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Default Re: Category Pics not displaling in IE correctly

wow, you are very good, here is what I found.

<a href="home.php?cat={$subcat.categoryid}"><img src="{$subcat.icon_url|amp}" alt="{$subcat.category|escape}" style="border: 1px solid rgb(190, 166, 121); padding: 2px;"/ width="200" height="$height"></a>
__________________
Current version: 4.1.9
Reply With Quote
  #10  
Old 01-05-2010, 05:46 PM
 
suiteone suiteone is offline
 

Newbie
  
Join Date: Dec 2008
Posts: 6
 

Default Re: Category Pics not displaling in IE correctly

I fixed it!

You are very kind, and i really appreciate your help.

If there is anyway i can return the favor just ask.

Cheers,

Jason
__________________
Current version: 4.1.9
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 03:44 PM.

   

 
X-Cart forums © 2001-2020