| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Adding Image to welcome.tpl?? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||||
|
|||||||||
![]() Hello
Group I was trying to add a image to the welcome.tp page Dremweaver added the following to the page which did work in DW: <p align=center>[img]../../../files/myproducts/d_13.jpg[/img]</p> However, when loaded up at the web site the picture did not show. The only way for me to get it to show up was use the full URL. Is there a better way of doing this? <p align=center>http://www.mydomain.com/xcart/files/myproducts/d_13.jpg</p> What I am asking is do I have to use the absolute path if I am adding an image to a page? If I use a image in the image folder I found I can do the following and the image shows up great. <p align=center>[img]{$ImagesDir}/xlogo.gif[/img]</p> What I am trying to do is make some modifications in DW (if possible) so I can see what is going on. What is the best way to make these modifications.
__________________
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 |
|||||||||
#2
|
|||||||||
|
|||||||||
![]() <p align=center>[img]/xcart/files/myproducts/d_13.jpg[/img]</p>
It'll also work from within dreamweaver if the folder structure is the same as your live site. Will work too and won't break on static generation either.
__________________
Groovico Used by X-carters the world over: Marketing Manager Pro Bundle For X-cart Featured Product Manager for X-cart Feed manager pro for X-cart http://www.firetanksoftware.com Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X |
|||||||||
#3
|
|||||||||
|
|||||||||
![]() Thanks groovico
I am going to see if I can follow what you write and have another go at it.
__________________
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 |
|||||||||
#4
|
|||||||
|
|||||||
![]() welcome.tpl just references welcome_txt in the languages section, why not just put your code in the welcome_txt file?
|
|||||||
#5
|
|||||||||
|
|||||||||
![]() Yeah, thats much easier (snorocket ref.), that way it is much easier to change it when you like. But you would still have to use the http reference for the image I guess.
__________________
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.... |
|||||||||
#6
|
|||||||||
|
|||||||||
![]() keep images in skin1/images folder and reference them as {$ImagesDir}/yourpic.jpg
__________________
Looking for a reliable X-cart host ? You wont go wrong with either of these. ![]() ![]() |
|||||||||
#7
|
|||||||
|
|||||||
![]() I tried using the following text in welcome_txt:
<center> <font color="#FF0000">[img]/files/store_images/card_save_big_sm_clr.gif[/img] <font size="6">Grand Opening Sale!!! </font> [img]/files/store_images/card_save_big_sm_clr.gif[/img]</font></p> <h3>Everything in the store is 20% off for the month of October. Don't miss this excellent opportunity.</h3> But the images are never shown (just little red X in IE). This is the full path to teh images from the http:// point of view. I don't want to mess with the .tpl file as I want to be able to change this month to month. How to get it to work? Full URL doesn't work either... (http://mysite/files/store_images/card_save_big_sm_clr.gif) |
|||||||
![]() |
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|