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

<IMG SRC="{$ImagesDir}/ Queston

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-27-2004, 07:03 AM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default <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?
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #2  
Old 01-27-2004, 12:24 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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

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 ?
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #3  
Old 01-27-2004, 03:05 PM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

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.
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #4  
Old 01-27-2004, 03:21 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #5  
Old 01-27-2004, 04:48 PM
  caucus's Avatar 
caucus caucus is offline
 

eXpert
  
Join Date: Oct 2003
Location: FLorida U.S.A
Posts: 356
 

Default

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!
__________________
Staying To The Right
But Left of Rush

X-cart Current version: 4.4.2
X-cart Current version: 4.4.1
X-cart Version 4.0.14
X-cart Version 4.1.6
Litecomm Version: 2.2.35
Operating System Linux
PHP Version 5.2.14
Apache/2.2.16 (Unix)
MySQL client version: 5.091
Reply With Quote
  #6  
Old 01-27-2004, 05:45 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
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 12:52 PM.

   

 
X-Cart forums © 2001-2020