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

Images Not Displaying / Invisible

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 10-28-2007, 08:00 AM
  inboxnews's Avatar 
inboxnews inboxnews is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 121
 

Default Images Not Displaying / Invisible

I read the templating guide, and followed to the letter. I'm using the following to point to my image from the home page:

<img src="{$ImagesDir}/buy.gif">

The image is missing, not displaying, invisible.

When I look at image properties in ie7 it says:

https://www.mywebsite.com/%7B$ImagesDir%7D/buy.gif

Any help is appreciated.
__________________
XCART 4.1.8 [Linux]
Reply With Quote
  #2  
Old 10-28-2007, 08:46 AM
 
balinor balinor is offline
 

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

Default Re: Images Not Displaying / Invisible

By 'home page' do you mean the static index.html or home.php?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 10-28-2007, 11:14 AM
  inboxnews's Avatar 
inboxnews inboxnews is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 121
 

Default Re: Images Not Displaying / Invisible

Quote:
Originally Posted by balinor
By 'home page' do you mean the static index.html or home.php?

home.php
__________________
XCART 4.1.8 [Linux]
Reply With Quote
  #4  
Old 10-29-2007, 06:43 AM
  inboxnews's Avatar 
inboxnews inboxnews is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 121
 

Default Re: Images Not Displaying / Invisible

Any ideas anyone?
__________________
XCART 4.1.8 [Linux]
Reply With Quote
  #5  
Old 10-29-2007, 06:44 AM
 
balinor balinor is offline
 

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

Default Re: Images Not Displaying / Invisible

What are you using to edit the template? That looks like the code is being converted to actual text instead of reading it as html.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 10-30-2007, 09:23 AM
  inboxnews's Avatar 
inboxnews inboxnews is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 121
 

Default Re: Images Not Displaying / Invisible

Quote:
Originally Posted by balinor
What are you using to edit the template? That looks like the code is being converted to actual text instead of reading it as html.

Most of my home page is in txt_welcome in languages.
__________________
XCART 4.1.8 [Linux]
Reply With Quote
  #7  
Old 10-30-2007, 09:26 AM
 
balinor balinor is offline
 

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

Default Re: Images Not Displaying / Invisible

Ahhh...that's why. You can't use Smarty variables inside a language variable that way. Use this instead:

<img src="skin1/images/buy.gif" alt=""/>
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 10-30-2007, 10:23 AM
  inboxnews's Avatar 
inboxnews inboxnews is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 121
 

Default Re: Images Not Displaying / Invisible

That did it. Thanks again balinor!
__________________
XCART 4.1.8 [Linux]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 01:11 PM.

   

 
X-Cart forums © 2001-2020