PDA

View Full Version : IE 7 not showing thumb in paypal buy page


pjhester
02-12-2007, 03:06 AM
Hello there, first post and new PP user. I've searched through the forum looking for this same problem and haven't come across it so I could use some help.

Firefox shows the thumbnail just fine, but IE 7 shows it as 1x1 pixel. I've tried removing all css and that wasn't it. I also reinstalled a fresh buypaypal.php and no help either. Can someone take a quick look and let me know what I'm missing?

http://www.jasonhester.com/index.php?x=buy&showimage=36

PP ver 1.5 w/ the paypal addon.

All I can think of is a problem somewhere with $buy_image_thumbnail = "<img src='thumbnails/thumb_$buy_image_name' alt='$buy_image_title' title='$buy_image_title' width='$local_width' height='$local_height' />";

Any help would be greatly appreciated.

Thanks,
Jason

Dkozikowski
02-12-2007, 04:38 AM
It looks like your image width and heigth are not being set.

width='$local_width' height='$local_height'

I will take a look at the paypal addon in a few but $local_width and $local_height are not getting their variables.

Dkozikowski
02-12-2007, 06:13 AM
Yup. I just checked it out. $local_width and $local_height are undefined variables. They are not necessarily needed so lets not go through the trouble of defining them :)

open buypaypal.php and edit

$buy_image_thumbnail = "<img src='thumbnails/thumb_$buy_image_name' alt='$buy_image_title' title='$buy_image_title' width='$local_width' height='$local_height' />";


with


$buy_image_thumbnail = "<img src='thumbnails/thumb_$buy_image_name' alt='$buy_image_title' title='$buy_image_title' />";


I'm not sure if this is going to help but I'm going to make a wild assumption and say that when IE sees the width and height variables empty, it does not know how big the image should be. Now you would think it would just default to the original thumbnail size but this is IE we're talking about here ;) Let me know if this helps at all.

pjhester
02-12-2007, 06:29 PM
Hello dw! I actually tried that once a few days ago and it made my whole site go mysteriously blank. I tried again just now and it fixed the problem.

Thanks so much for the help!
Jason

Dkozikowski
02-12-2007, 07:40 PM
You're welcome :)