Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

infobox heading image not showing


ceejaycee

Recommended Posts

Hi All

 

I'm having problems with the infobox header images.

 

I have edited the standard osc infoboxes using infobox customizer contrib off line, uploaded and installed on the remote server.

 

I had edited the css so that the individual infoboxes have a different background image.

 

I find now that after that install the infobox headers images (.gifs) are not showing. The css is linking (as the other styles are being applied) and I have also tried adding the gifs into the /inc/english 'BOX_HEADING_CATEGORIES (again without any luck) with <img src="images/mygif.gif">

 

You can see the result at http://thechocolatechef.co.uk

 

I've tried uploading different gifs (it's not a filesize problem as they are tiny!)

 

Other images (such as banner and page images) are loading so I'm now pulling my hair out!

 

Any help much appreciated!

 

C

Link to comment
Share on other sites

looking on your code, seems to me someone deleted the file names of these images...

example of your code:

<img src="images/" alt="" border="0">

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Link to comment
Share on other sites

looking on your code, seems to me someone deleted the file names of these images...

example of your code:

<img src="images/" alt="" border="0">

 

ahem, yes, that someone is probably me! I'm trying to find out where I've del'd that from, and why the css background image isn't styling the box heading??

 

Thanks for the brain-block-budge!

Link to comment
Share on other sites

Your image tags - are without image name - so browser doesn't know which image to show and thus error on most of the images, Most of infobox images properties show following

http://thechocolatechef.co.uk//images/

Only one image that shows a full path - you need to check if you do have a file by that name on your server

http://thechocolatechef.co.uk//images/TopBox/menu.gif

 

If images are showing up on your local machine - right click on any one -> properties -> Note its Address (for example your product images show up fine - eg http://thechocolatechef.co.uk//images/adventstockings.jpg

Now if you type the address in browser - you should see image.

 

It makes no difference on localhost or remote server - image tag has to get image name / source to display and at this point of time, the code & actual image paths - do appear to have problems.

 

* Though it makes no difference to have // in path, it would be good to remove extra slash coming before images in URL .. (check configure.php)

 

cheers

Gaurav

Best Regards,
Gaurav

Link to comment
Share on other sites

Hi Gurav

 

Well, I fixed the problem, but not the way you suggested!

 

I was looking to load the images as css class backgrounds but I originally had problems with the php generated (by the infobox customizer contrib) images in classes/boxes (i.e. the corner gifs).

 

I solved this by deleting the img elements in the code (hence the blank tags in the source code). What happened on my local install was that the css would then load the background image and hey presto! img headers.

 

However - once I'd uploaded to the remote server, the images were not showing. This was puzzling because when I tried to change the headers in the languages/english (the simple method) I still couldn't get it to work.

 

A bit of head scratching later, and I guessed that this was more to do with the img files themselves. Well - close, because rather than their properties (like file size) the solution was in their location.

 

I had the heading images in separate folders within the images folder. I moved all the infobox header imgs up into the images folder, changed the css correspondingly and hey presto it worked!

 

Like so many things - I have no idea why this worked - but it worked so I'm happy. If anyone can explain why this might be - I'd be very pleased to find out!

 

Apologies to everyone looking for a simple answer to the question months from now, but I can;t stand those posts which end - "don't worry I've fixed it now" and don't explain how!

 

C

Link to comment
Share on other sites

Hi,

I checked your site now, and can see what you meant by css background. :) Appreciate your update as well, something we don't see very often (which is frustrating :S)

At this stage, img tags are doing no good though, and if you take them out completely your shop would look much better.

 

cheers & have a great weekend,

Gaurav

Best Regards,
Gaurav

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...