X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Image is not showing up! (https://forum.x-cart.com/showthread.php?t=14703)

Laura 06-21-2005 07:08 AM

Image is not showing up!
 
I'm using the same code and everything that I have for LOTS of other images through out the store. I can't figure out why this one isn't showing up. I have it in 2 places and it's like it's not really where I'm pointing the code to. I have put the image into the image file just like the others though. I've checked the image size to make sure it's correct. I copied and pasted the file name so that's right and not misspelled.

The image I'm having issues with is the one center top of my home page:
http://www.scrapbookdreamer.com
and in the gallery:
http://www.scrapbookdreamer.com/photos/index.php

I'm stumped! Please help!
Laura

balinor 06-21-2005 07:15 AM

Hey Laura...you have the code botched up somehow. Are you trying to use {$ImagesDir} inside a language variable like the welcome text?

alinticlea 06-21-2005 07:18 AM

Error in Welcome.tpl
 
Hello,

For the center image from Welcome screen you have an error in welcome.tpl
The path for the image looks like this:
http://www.scrapbookdreamer.com/store/{$ImagesDir}/sundayintsm.jpg
in the browser.
It looks like you are missing missing some quotes.

Alin

Laura 06-21-2005 07:31 AM

Where would I put quotes?

Yes using {$ImagesDir} inside the language variable like the welcome text. Can't I do that? That still doesn't explain why it's not working in the gallery.

Help & Thanks!

Laura

balinor 06-21-2005 07:34 AM

I don't see any broken images in the gallery. The correct way to call an image using the {$ImageDir} is:

[img]{$ImagesDir}/imagename.jpg[/img]

That's it, don't put http:// or anything else in there.

alinticlea 06-21-2005 07:45 AM

Broken link
 
For the broken link on top of the page the browser shows the follwing link:
http://www.scrapbookdreamer.com/images/sundayintsm.jpg
Are you sure that the image file name is sundayintsm.jpg?

Alin

Laura 06-21-2005 07:56 AM

I copied and pasted the file name so I'm sure it isn't misspelled.

I used your code: [img]{$ImagesDir}/imagename.jpg[/img] and pasted the file name in. I still don't get the image to appear. The only thing that I had really that was different on the home page was that I told it the size of the image.

In the gallery it is the missing image right under the header before you get to the images in the gallery.

Any other ideas?
Laura

balinor 06-21-2005 07:59 AM

Not sure you can use smarty in a language variable. Try just calling it as [img]images/imagename.jpg[/img] or [img]../images/imagename.jpg[/img]

Laura 06-21-2005 08:10 AM

Didn't work.

balinor 06-21-2005 08:15 AM

Ok, let's go back to basics. Just put the absolute link in there to see if it works right:

http://www.scrapbookdreamer.com/store/skin1/images/imagename.jpg

Laura 06-21-2005 08:37 AM

Put that in and all you see is the link. I put quotes around it and saw the link with the quotes.

balinor 06-21-2005 08:42 AM

Sorry, guess I wasn't clear. You need to use that as the image link:

http://www.scrapbookdreamer.com/store/skin1/images/imagename.jpg

Laura 06-21-2005 10:21 AM

Thanks! That worked!

Laura


All times are GMT -8. The time now is 08:01 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.