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)
-   -   <IMG SRC="{$ImagesDir}/ Queston (https://forum.x-cart.com/showthread.php?t=6219)

caucus 01-27-2004 07:03 AM

<IMG SRC="{$ImagesDir}/ Queston
 
Hello Group

I found this on a previous but I could not get it to work. I want to add an image to the welcome section.
http://forum.x-cart.com/viewtopic.php?t=7605&highlight=
I added the infromaton from the languges

I thought if I put the image in skin1/imgages folder it would show up. However I can only get it to show up if I use an absloute path to the file

Below is what I have:


[img]{$ImagesDir}/Amaury.gif[/img]Although he is often described as a contemporary realist,

The positions shows up for the image but not the image. Could someone be so kind and tell me what I have wrong with the path to the images? Please?

leon 01-27-2004 12:24 PM

If its the same topic I dont know why you opened another one being the same issue, but anyway... #-o

If you are putting that variable in the welcome text variable its not interpreted by the engine, it just outputs simple HTML tags. But if you are using it above the welcome text output, could be your images arent accesible in some way.

Do you have a URL ?

caucus 01-27-2004 03:05 PM

Hello Leon & Group

Please forgive me for posting this again. I thougt it answerd the question when I aked it. This was a bit different so I added a new topic.

Leon, you did answer the question better than it ever has been. I did not know tha text was not part of the engine. So, any and all language fields are 100% html?

So, all I need to do is trace the images backwards and it should work perfectly.

So only tpl files could use the {$imageDir} to get to the image? (yes/no)

Language files can never use {$imageDir} files? (yes/no)

I thank you very much leon for answering and taking the time with the question.

I wish someone would answer about AN error checking. :( :(

leon 01-27-2004 03:21 PM

Quote:

Originally Posted by caucus
1. So, any and all language fields are 100% html?

2. So, all I need to do is trace the images backwards and it should work perfectly.

3. So only tpl files could use the {$imageDir} to get to the image? (yes/no)

4. Language files can never use {$imageDir} files? (yes/no)



1. As what I have seen if you use HTML in your language fields the engine interprets it as HTML on screen, if you use simple text it will output as text.

2. Use the other topic for direct URL.

3. In theory yes, Im not an expert on smarty (learning it), but it seams to be that way, since it sends variables in that manner, now a field in a database is a variable.

4. Language fields, not files, ref: point number 3

I use images in my language fields as well, but I just give them a direct URL reference (as mentioned in the other topic). :wink:

caucus 01-27-2004 04:48 PM

Hello Leon & Group

Wow, it is amazing how much you learn on this as you continue to modify and adjust. It is also amazing how little documentation is available. Below is what I have for the path for pictures in the welcome.
Quote:

>[img]../skin1/images/Amaury.gif[/img]

Now I wish I had AN working with error checking! :-({|=

leon 01-27-2004 05:45 PM

Quote:

Originally Posted by caucus
It is also amazing how little documentation is available.


True, Ive hear that a new documentation will be out soon, hopefully.


All times are GMT -8. The time now is 10:44 PM.

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