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

Adding Image to welcome.tpl??

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-13-2003, 03:57 PM
  caucus's Avatar 
caucus caucus is offline
 

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

Default Adding Image to welcome.tpl??

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
Reply With Quote
  #2  
Old 12-14-2003, 08:03 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default

<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
Reply With Quote
  #3  
Old 12-14-2003, 11:54 AM
  caucus's Avatar 
caucus caucus is offline
 

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

Default

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
Reply With Quote
  #4  
Old 12-14-2003, 05:15 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default look out

welcome.tpl just references welcome_txt in the languages section, why not just put your code in the welcome_txt file?
Reply With Quote
  #5  
Old 12-14-2003, 09:29 PM
  leon's Avatar 
leon leon is offline
 

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

Default

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....
Reply With Quote
  #6  
Old 12-15-2003, 03:48 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

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.

EWD Hosting
Hands On Hosting
Reply With Quote
  #7  
Old 09-16-2004, 10:25 AM
 
brfrankl brfrankl is offline
 

Newbie
  
Join Date: Jul 2004
Posts: 5
 

Default

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)
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:36 AM.

   

 
X-Cart forums © 2001-2020