After you enter this and get the 'ripped' image - mouse over it and right click > properties > and check that the address has not been altered by ZC....if so toggle to text mode and correct then toggle back to html mode
After you enter this and get the 'ripped' image - mouse over it and right click > properties > and check that the address has not been altered by ZC....if so toggle to text mode and correct then toggle back to html mode
Zen-Venom Get Bitten
Thank you for this information Kobra.
Unfortunately it still didn't work
When I right click I could check the code:
<img src="file:///D:/Program%20Files/xampp/htdocs/Zen/images/MainPageCentre.jpg"><br>
<img src="file:///D:/MainPageCentre.jpg"><br>
The second line is where i put the image directly into D drive (no directory) just in case something was wrong with my path.
Unfortunately even that didn't work.
Both paths show "ripped images" in the editor and dont show up in the catalog.
But apart from the path what could it be?
I checked the Filename 10 times and it's correct.
File size is only 34kB.
The image size is within the width of the catalog width setting (in pixels) and i experimented with various size images but still no go.
Hmmm!! Any ideas? Appreciate any light you can possibly shed. arigato.
Arpeggio
Since you are working on your local pc, the easiest way would probably be to just copy the image file from wherever it is to the ZC /images/ folder (using your pc's file manager window). Then you can enter the url of that location.
Caution: if you use absolute filepaths that reference your local computer directly in any way, the paths will break when you move your site to a remote server.
Thanks for this but that is what i did. I copied the image to 2 locations:
1. zencart/ images location
2. to my D drive root directory (no folders just in case there was even the slightest problem with the address)
Both addresses are posted in previous message. Also both methods did not work and showed "ripped images" in the HTML editor and no images on the catalog page.
Try this code:PHP Code:<?php echo '<img src="' . HTTP_SERVER . DIR_WS_CATALOG . 'images/MainPageCentre.jpg" alt="">
Thank you Glenn.
Not knowing where i'm supposed to put this i tried:
\includes\templates\My_Template\common\tpl_main_page.php
please refer to attached.
I just got a parse error. I tried adding a bracket and stuff but couldn't get rid of this error.
some questions:
1. do you know what is missing in the code
2. is "tpl_main_page.php" the file you expect me to put it?
3. I should just put this code in as is and do not need to substitute any words?
Thank you so much, and many regards,
arpeggio
whoops!! forgot the attachment!!