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)
-   -   Images Not Displaying / Invisible (https://forum.x-cart.com/showthread.php?t=34977)

inboxnews 10-28-2007 08:00 AM

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.

balinor 10-28-2007 08:46 AM

Re: Images Not Displaying / Invisible
 
By 'home page' do you mean the static index.html or home.php?

inboxnews 10-28-2007 11:14 AM

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

inboxnews 10-29-2007 06:43 AM

Re: Images Not Displaying / Invisible
 
Any ideas anyone?

balinor 10-29-2007 06:44 AM

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.

inboxnews 10-30-2007 09:23 AM

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.

balinor 10-30-2007 09:26 AM

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=""/>

inboxnews 10-30-2007 10:23 AM

Re: Images Not Displaying / Invisible
 
That did it. Thanks again balinor!


All times are GMT -8. The time now is 04:02 PM.

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