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)
-   -   Images on Home Page (https://forum.x-cart.com/showthread.php?t=55271)

Sceenwritingscience 08-26-2010 01:18 PM

Images on Home Page
 
I am having problems with displaying images on my Home page.

First, I created a 'Test' page in the Static Page section of Administration and got it to display images and texts there exactly like I wanted it to appear. But when I copied and pasted the code that makes up the 'Test' static page into my Home page via Webmaster Mode, the text copies and I can see it, but the image isn't there, only a '?' in a blue box.

This is the code I used:
<img height="130" alt="" src="{$ImagesDir}/Ronin-Screenplay-Summary.jpg" width="130" /> <o:p></o:p></div></span></span></div>

I'm guessing the problem is because Test pages are HTML but the Home page is php. Correct?

Please could you suggest how to solve this problem.

Many thanks, Melvyn P. Heyes.

cflsystems 08-26-2010 03:38 PM

Re: Images on Home Page
 
Static pages are individual pages, they do not show on front page. Ifyou want to show something on front page edit welcome.tpl

Sceenwritingscience 08-26-2010 03:54 PM

Re: Images on Home Page
 
I am editing the Home page content via Webmaster mode, not through the template (I don't want to change format, only content!). My problem is images that won't appear. I can get them to appear in a static page but they won't appear even if I transfer the code to the home page via Webmaster.

robb3369 08-26-2010 03:58 PM

Re: Images on Home Page
 
You can take out the <o:p></o:p> code... That is pure Microsoft Word code... Visually doesn't matter, but unnecessary.

balinor 08-26-2010 04:00 PM

Re: Images on Home Page
 
You can't use this in webmaster mode:

{$ImagesDir}

Need to use skin1/images or whatever the real directory is. Smarty doesn't work in smarty variables.

cflsystems 08-26-2010 04:07 PM

Re: Images on Home Page
 
Beat me to the second :)
As balinor said - if you want to use Webmaster mode you have to use path not smarty variable. If you edit welcome.tpl or any other template file in a text editor then you can use smarty variables in there.

Sceenwritingscience 08-26-2010 04:09 PM

Re: Images on Home Page
 
Thanks Padraic,

So if I write the following in the static pages:
<img src="{$ImagesDir}/ Ronin-Screenplay-Summary.jpg " alt="" width="130" height="130"/>

What do I write in the Home page if my images are in:
/home/myusername/mywebsite/htdocs/skin1/images

Appreciate your help here. M.

balinor 08-26-2010 05:16 PM

Re: Images on Home Page
 
Not the whole server path, just skin1/images/yourimagename.jpg


All times are GMT -8. The time now is 01:47 PM.

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