Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Add HTML to index.php in languages


lamur

Recommended Posts

In my includes/languages/english/index.php file, I would like to add a bunch of HTML code to the front of the page to make it look a little more snazzy sort to speak. But I am not sure how to put that code into the index.php file without screwing it up. I think a better way would to do an include(file) so that it calls a particular HTML file to pull it from.. But I am not sure how to do this.. Can someone help me out a bit? Thanks

Link to comment
Share on other sites

In includes/languages/english/index.php, do something like this

define("TEXT_MINE', <p>Some text here</p><p>Some other text here that is <b>bolded</b></p>

Then, in index.php, find the line that says

 } else {

and add the following somewhere after it:

        <tr>
      <td class="pageHeading"><?php echo TEXT_MINE; ?></td>
     </tr>

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Sorry, I should have been more clear on this. Although I just learned something from your post jack. That's going to help my future editing skills greatly!

 

The main thing I was wondering though, in includes/languages/english/index.php there is the line:

'TEXT_MAIN'

which shows the main text of the page. This is where I was hoping to put the HTML code. But I got so much of it that would have to be converted to 1 line and use the PHP formatting to make it fit. So I was just hoping to put some kind of a link to an .htm file that has the code, so I can update it and modify it easier than in that index.php file... make sense?

 

Thanks for that help jack. That's awesome to know!

Link to comment
Share on other sites

I hate to sound stupid....but.. I am :)

 

The HTML that I did up was made in frontpage, and so it has lines and quotation marks all over in it, and I think it would be a pain to have to make everything fit on one line and get rid of the quotation marks. I was just hoping to see an easier way of doing this.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...