X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Home page image (https://forum.x-cart.com/showthread.php?t=40100)

Tchukon 05-28-2008 11:16 AM

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">"

balinor 05-28-2008 11:18 AM

Re: Home page image
 
Congrats :) Moving this to its own thread.

sunset 06-03-2008 08:20 AM

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

totaltec 06-03-2008 09:13 AM

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.8)

sunset 06-03-2008 06:13 PM

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

Yurij 06-05-2008 12:45 AM

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".

sunset 06-05-2008 01:58 AM

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. :?

Yurij 06-05-2008 03:16 AM

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. :)

sunset 06-05-2008 04:38 AM

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

Yurij 06-05-2008 04:55 AM

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. :)


All times are GMT -8. The time now is 05:48 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.