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

Home page image

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-28-2008, 11:16 AM
 
Tchukon Tchukon is offline
 

Member
  
Join Date: Sep 2007
Location: San Francisco
Posts: 22
 

Default Re: Template Editing Guide

OH MY GOD... I did it.. finally after three days... thanks balinor and everyone else that helped....

getting that image in the welcome area what the ball buster.. but I just followed this -

"- When calling images, be sure to use Smarty. Upload all of your graphic images (not the product images, they go elsewhere) into the skin1/images directory and call them using this format:

<img src="{$ImagesDir}/imagename.jpg">"
__________________
Paige White
"It's lonely here, there is no one left to torture...."

X Cart Gold Version 4.1.8
Reply With Quote
  #2  
Old 05-28-2008, 11:18 AM
 
balinor balinor is offline
 

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

Default Re: Home page image

Congrats Moving this to its own thread.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 06-03-2008, 08:20 AM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Home page image

Paige - thanks for the info - but I'm using the code you mentioned, and i have smarty enabled in the general settings - and it doesnt work for me.
Hoping you can point me in the right direction or pick up what i may be doing wrong.
Many thanks
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #4  
Old 06-03-2008, 09:13 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Home page image

Sunset, post the exact code you are using, in what template you put it, and where you put it. (we don't need the whole code, just what is right before and after your <img> tag. Also the directory structure and file name of the image i.e. I placed it in /skin1/images, file name is myimage.gif, code used to call it is <img src="{$ImagesDir}/myimage.gif">, placed it in welcome.tpl right after "Welcome to x-cart" and before "this is a secure store". A link to the page where the image is not showing up would be greatly beneficail as well to those trying to help.
P.S. The only thing wrong with this code:
Quote:

<img src="{$ImagesDir}/imagename.jpg">"
is the extra " at the end.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote
  #5  
Old 06-03-2008, 06:13 PM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Home page image

Hi Mike

Thanks so much for your reply.
My images are stored in skin1/images too.
I was trying to add an image on the home page under News on the right hand side. I have done so now, but not with the correct code as you have above.
I tried this:
<img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif">
but it didnt show at all.

Yet when i enter it on a static page - it shows.

Cheers Mike
Paula
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #6  
Old 06-05-2008, 12:45 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Home page image

Quote:
Originally Posted by sunset
Hi Mike

Thanks so much for your reply.
My images are stored in skin1/images too.
I was trying to add an image on the home page under News on the right hand side. I have done so now, but not with the correct code as you have above.
I tried this:
<img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif">
but it didnt show at all.

Yet when i enter it on a static page - it shows.

Cheers Mike
Paula

Have you tried to clear the cache of the store,
and disable the browser cache (or press CTRL + F5 on main page), after adding images to the template?

And check the file name and make sure that it coincides with "News-at-Sunset-Bead-Crystal-Supplies.gif".
Reply With Quote
  #7  
Old 06-05-2008, 01:58 AM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Home page image

Hi Yurij

Thanks for your reply. Yes I just tried all of that. And in mozilla firefox, the image doesnt even show the little red empty box.

One thing i have noticed is after I have hit the save button, it seems to put a space after the .gif"
eg. <img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif" />

even though i have entered it as:
<img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif">

So I am not sure what I'm doing wrong.
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #8  
Old 06-05-2008, 03:16 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Home page image

Quote:
Originally Posted by sunset
Hi Yurij

Thanks for your reply. Yes I just tried all of that. And in mozilla firefox, the image doesnt even show the little red empty box.

One thing i have noticed is after I have hit the save button, it seems to put a space after the .gif"
eg. <img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif" />

even though i have entered it as:
<img src="{$ImagesDir}/News-at-Sunset-Bead-Crystal-Supplies.gif">

So I am not sure what I'm doing wrong.

Try to change the name of the file on a more simple, "test.gif" for exm.
Reply With Quote
  #9  
Old 06-05-2008, 04:38 AM
 
sunset sunset is offline
 

Advanced Member
  
Join Date: Jul 2007
Posts: 94
 

Default Re: Home page image

Hi Yurij

Just tried that too - no luck

http://www.sunsetcrystals.com.au/skin1/images/image source2.jpg
http://sunsetcrystals.com.au/skin1/images/image source.jpg
__________________
Sunset
X-Cart Gold v4.1.8
Reply With Quote
  #10  
Old 06-05-2008, 04:55 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: Home page image



Tell your web site address (or send me in PM), with this picture, look its HTML-code.

PS. The last hope.
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 03:49 PM.

   

 
X-Cart forums © 2001-2020