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)
-   -   Trying to insert image into welcome txt (https://forum.x-cart.com/showthread.php?t=31575)

BftEagle 06-02-2007 05:19 AM

Re: Trying to insert image into welcome txt
 
Quote:

Originally Posted by balinor
Something is not right, as that code is correct. Make sure the file name matches exactly (chef_th.jpg and Chef_th.jpg are not the same thing).


The name is correct. I even tried inserting other files from the images directory. None of them will load. No matter what the file, I get the red x.

balinor 06-02-2007 05:24 AM

Re: Trying to insert image into welcome txt
 
Right click on the red x and see what the url of the image is.

hoosierglass 06-02-2007 07:43 AM

Re: Trying to insert image into welcome txt
 
Also there are a few older imaging software programs that will make the ext in caps. such as file.JPG instead of file.jpg

BftEagle 06-02-2007 06:05 PM

Re: Trying to insert image into welcome txt
 
Quote:

Originally Posted by balinor
Right click on the red x and see what the url of the image is.


http://www.cheesecakefanatic.com/xcart4.1.7/{$ImagesDir}/chef_th.jpg

url checks out correctly

balinor 06-02-2007 06:50 PM

Re: Trying to insert image into welcome txt
 
Actually, no it doesn't...you shouldn't be seeing {$ImagesDir}, that should translate to the directory.

BftEagle 06-04-2007 06:18 PM

Re: Trying to insert image into welcome txt
 
Quote:

Originally Posted by balinor
Actually, no it doesn't...you shouldn't be seeing {$ImagesDir}, that should translate to the directory.


So what do I do about this?

balinor 06-04-2007 06:24 PM

Re: Trying to insert image into welcome txt
 
What are you using to edit the code?

BftEagle 06-05-2007 04:19 AM

Re: Trying to insert image into welcome txt
 
I use Webmaster mode and Dreamweaver

balinor 06-05-2007 04:21 AM

Re: Trying to insert image into welcome txt
 
Ok, one or both of those could be screwing you up. Dreamweaver doesn't understand Smarty code, and Webmaster Mode is really meant for editing text, not adding code. Open up the language variable directly via your "Languages" area and insert the code there.

TheMommyMarketplace 06-09-2007 05:08 PM

Re: Trying to insert image into welcome txt
 
I am trying to get this to work as well. Right now I have all of my "extra" images on Photobucket because I could just copy their link & it worked great. I am now trying to have everything in my directory the way it should be =). My images are in this folder: /var/www/html/skin1/images/thumbnails when I access my FTP.

I put the image I need into that folder & then typed in this code: <img alt="Available Clasps" src="{$ImagesDir}/clasptype.jpg" align="left" border="0" />

I get a box labelled "Available Clasps" with a red x. What am I doing wrong?


All times are GMT -8. The time now is 11:45 PM.

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