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

Image is not showing up!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-21-2005, 07:08 AM
 
Laura Laura is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Pittsburg, KS
Posts: 76
 

Default 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
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #2  
Old 06-21-2005, 07:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Hey Laura...you have the code botched up somehow. Are you trying to use {$ImagesDir} inside a language variable like the welcome text?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-21-2005, 07:18 AM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default 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
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #4  
Old 06-21-2005, 07:31 AM
 
Laura Laura is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Pittsburg, KS
Posts: 76
 

Default

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
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #5  
Old 06-21-2005, 07:34 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 06-21-2005, 07:45 AM
 
alinticlea alinticlea is offline
 

Member
  
Join Date: Nov 2004
Location: Canada
Posts: 24
 

Default 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
__________________
X-cart v 4.0.11 [live store]
www.beddingtons.com
Reply With Quote
  #7  
Old 06-21-2005, 07:56 AM
 
Laura Laura is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Pittsburg, KS
Posts: 76
 

Default

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
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #8  
Old 06-21-2005, 07:59 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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]
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #9  
Old 06-21-2005, 08:10 AM
 
Laura Laura is offline
 

Advanced Member
  
Join Date: Feb 2005
Location: Pittsburg, KS
Posts: 76
 

Default

Didn't work.
__________________
X-Cart Gold v4.1.11
Reply With Quote
  #10  
Old 06-21-2005, 08:15 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 02:31 PM.

   

 
X-Cart forums © 2001-2020