Guest Posted November 14, 2004 Posted November 14, 2004 How do I insert an image into the left_column.php, I have tried the following define('TEXT_MAIN', '<img src="http://www.mydomain.com/images/myimage.gif">'); but it doesnt show up , can anyone tell me where I have gone wrong? thanks in advance
Jack_mcs Posted November 14, 2004 Posted November 14, 2004 Images are inserted with normal html code (<img src=...). The only trick is to be sure you are outside of the php section. You will notice the file starts with <?php and ends with ?>. This means youcannot place html within it by iteself. You can place the image code after the last ?> or you can place it anywhere within those two statements by doing the following: ?> <img src... <?php So you are telling it to stop the php and to restart it, allowing you to place your code there. There is also a function (tep_image) that you may want to use instead. For just an image, it really doesn't matter. But if you want to use it, just search in the catalog files, most of them use it. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
Recommended Posts
Archived
This topic is now archived and is closed to further replies.