Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

header.php will not display GIF


browland

Recommended Posts

Posted

I have updated image in /includes/header.php to:

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr class="header">

<td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . ' banner1.gif ', 'Advice PC Group') . '</a>'; ?></td>

 

Image will not display. I can change GIF back to OSCOMMERCE.GIF and it will display as well as another basic gif that I completed in PAINT. This image created in Photoshop CS2 and saved as straight GIF file. Can anyone give me an idea what is wrong? I am pretty new at OSCOMMERCE and PHP. However, I have spent many hours reading PHP programming. I just can not locate this issue here.

 

Bill

Posted

Hi Bill,

 

I am not an expert or anything on oscommerce, just learning on my own by doing my website over the last few months, anyway, when you have it worded as you say in your comment "tep_image(DIR_WS_IMAGES . ' banner1.gif ', 'Advice PC Group') . '</a>'; ?></td>" do you see the alternate words "Advice Pc Group" when you go to your website? If so, it is trying to work. Maybe you uploaded your image into the wrong spot. Make sure it is in the Catalog/Images folder and not some other place. I know there is another images folder something like catalog/includes/languages/enlish/images. Also check your spelling of the image file. It has to be exact, capitals, dots, spaces, etc. If you saved it as say "banner 1.gif" with a space between the banner and 1, I think it would be considered a different image. Another thing you can try is to save the image you want as "oscommerce.gif" rename the original one on your files to whatever or delet it, upload your new image and leave the original wording. That is all I can think of for now. I do not see anywhere what your website name is so I couldn't take a look at it. I hope this helps. Post again if it doesn't or you may contact me with any other questions. I will try to help.

 

Take Care and God Bless,

Leslie

Posted

I have changed the capitalization (I missed that one), still same issue. I am semi new to PHP as well. I just can not find the problem. Yes the "definition" does show up correctly.

 

Bill

Posted

the image is stored properly in includes/images ? same folder as where the oscommerce gif is?

 

can you view the image by direct request? (yoururl/includes/images/banner1.gif)

if not try working that out (then it has nothing with either php or oscommerce to do)

 

and if so, see the difference between the url it is trying to get the image from and the actual location.

Posted

At first I could not see the image when attempting to access directly. I have changed the permissions to be 755 and now I can see it with direct access in IE. I still can not see it in the header. I have added it to my footer and it displays correctly. I am thinking that there is somewhere else to update than /includes/header.php. I have width=100% but is it possible that the header size is wrong somewhere?

 

Thank you for all you information regarding issue.

 

Bill

Posted

I am kind of stumped here. What do you see on your page? If there is no image, it should be giving the alt text. If you right click there and click view image what messages do you get? It should say something like http://yoururl/catalog/images/banner1.gif was not found on this server. This is what I get if my image name is not correct. When I look at your coding it looks like you have it right. It should work as long as you uploaded the image properly and input the correct image name in your code. Have you tried deleting the image in question and re-uploading it?. Maybe somehow it got goofed up in the transfer from your computer to the website. I just can't think of what else could be the problem. I hope something helps.

 

Leslie

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...