Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

/modules/index.php images in define TEXT_MAIN


Recommended Posts

How do you insert images in languages/modules/index.php in the definition for



This is my code, but the image does not show up: x


define('TEXT_MAIN', '<h1>Welcome to The Virtual Art Academy�</h1>

<p><img src="barry_photo.jpg" width="160" height="204" border="20" align="left">Hello.

I 3 am <a href="http://www..com" target="_blank">Barry John Raybould</a> (and

this is some of <a href="http:///my_paintings/page_10001.html" target="_blank">my






I suspect it may be something to do with tep_image but cannot find anything about tep_image in the knowledge base, that would tell me how to use it in TEXT_MAIN




Link to comment
Share on other sites

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Link to comment
Share on other sites

I am going to assume you meant languages/english/index.php


<img src="barry_photo.jpg"


Where is this image? Is it in your images directory or in your root?


have you tried  images/barry_photo.jpg




When you get the red x the first thing you should do is righ click on it and make sure where the page is looking for the image is where it actually is. My guess is they are not the same in this case.


Thanks. I had assumed that it would look for an image in the current directory by default, but maybe it does not. I had also tried inserting a relative path to a separate directory I had created to put my image files (../../.. etc), .. just as you do when coding in Dreamweaver, but that did not seem to work either.


However, I have now put the file in the images directory, and used the code src="images/barry_photo.jpg" . This has solved the problem (although I'm not sure why my other attempts did not work).


Thank you for your help :D


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...