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

Trying to insert image into welcome txt

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-01-2007, 10:58 AM
 
BftEagle BftEagle is offline
 

Member
  
Join Date: Oct 2006
Posts: 10
 

Default Trying to insert image into welcome txt

Help...I am trying to insert an image into my welcome text and used the WYSIWYG editor in Webmaster Mode. I searched through threads regarding this and as best I can tell I've got the code correct. The image is in my skin1/images directory, but all I can get is a red x instead of the image.

Here is my code

<img alt="chef" src="<img src=" align="left" border="0" chef_th.jpg? {$ImagesDir} />Demo store powered by X-Cart. Based on PHP template technology and integrated with an SQL database, it is a fully functional store that allows you to try <a href="<A href="http://www.x-cart.com/">X-Cart">http://www.x-cart.com/">X-Cart shopping cart software</a>. As a buyer, you can browse products, put products into your cart and check out. As an administrator, you can add categories, products and change the look and feel of the store. If you have any questions please contact us.
<p align="justify"><b>This service is for demo purposes only.</b> No real products. No real prices. No real charges. Please do not submit real credit card information.</p>
<p align="justify">To replace this text with a welcome message of your own, log in as administrator, select the Webmaster mode link in the Administration box, then follow the instructions.</p>
__________________
/X-Cart Gold version 4.1.7
Reply With Quote
  #2  
Old 06-01-2007, 11:12 AM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Trying to insert image into welcome txt

change
Code:
<img src=" align="left" border="0" chef_th.jpg? {$ImagesDir} />
to
Code:
<img src="{$ImagesDir}\chef_th.jpg" align="left" border="0" />
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #3  
Old 06-01-2007, 11:31 AM
 
BftEagle BftEagle is offline
 

Member
  
Join Date: Oct 2006
Posts: 10
 

Default Re: Trying to insert image into welcome txt

I made the change you gave me and am still getting a red x instead of the image
__________________
/X-Cart Gold version 4.1.7
Reply With Quote
  #4  
Old 06-01-2007, 11:54 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Trying to insert image into welcome txt

You have this:

src="<img src=" align="left" border="0" chef_th.jpg? {$ImagesDir} />

You need this:

<img src="{$ImagesDir}/chef_th.jpg" align="left" border="0" alt="" />
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #5  
Old 06-01-2007, 12:07 PM
 
BftEagle BftEagle is offline
 

Member
  
Join Date: Oct 2006
Posts: 10
 

Default Re: Trying to insert image into welcome txt

Sorry for being such a pest, but I must be missing something. Balinor I cut and pasted your code and still get the red x. Here is the code I pasted:

<img src="{$ImagesDir}/chef_th.jpg" align="left" border="0" alt="" />
Demo store powered by X-Cart. Based on PHP template technology and integrated with an SQL etc
__________________
/X-Cart Gold version 4.1.7
Reply With Quote
  #6  
Old 06-01-2007, 12:11 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Trying to insert image into welcome txt

Did you upload the image into the skin1/images folder?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #7  
Old 06-01-2007, 12:17 PM
 
BftEagle BftEagle is offline
 

Member
  
Join Date: Oct 2006
Posts: 10
 

Default Re: Trying to insert image into welcome txt

yes. I doubled checked to make sure it is there under the same filename.
__________________
/X-Cart Gold version 4.1.7
Reply With Quote
  #8  
Old 06-01-2007, 03:04 PM
 
inebriate inebriate is offline
 

eXpert
  
Join Date: May 2006
Posts: 301
 

Default Re: Trying to insert image into welcome txt

one more go...

replace
<img alt="chef" src="<img src=" align="left" border="0" chef_th.jpg? {$ImagesDir} />

with
<img alt="chef" src="{$ImagesDir}/chef_th.jpg" align="left" border="0" />
__________________
x-cart pro 4.0.18
linux
www.fabric8d.com (currently undergoing construction)
Reply With Quote
  #9  
Old 06-01-2007, 05:44 PM
 
BftEagle BftEagle is offline
 

Member
  
Join Date: Oct 2006
Posts: 10
 

Default Re: Trying to insert image into welcome txt

Alas...no that one didn't work either inebriate.
__________________
/X-Cart Gold version 4.1.7
Reply With Quote
  #10  
Old 06-02-2007, 05:00 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: Trying to insert image into welcome txt

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).
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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 06:27 AM.

   

 
X-Cart forums © 2001-2020