Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

how to put html coding in a new infobox


Guest

Recommended Posts

Posted

Hi

 

I created a new infobox in 2.3.1. and all is good

 

I was just wondering how do I put some html coding into the new infobox

 

I thought the following would work

 

define('TEXT_MAIN', '<table width="320"> <tr> <td> </td> <form action="http://www.google.com/translate" target="_blank"> <td width="40"><script language="JavaScript"> <!-- document.write ("<input name=http://www.irhmedia.co.uk value="+location.href+" type=hidden>") // --> </script> <noscript> <input name="http://www.irhmedia.co.uk" value="http://labnol.blogspot.com" type="hidden" /> </noscript> <input name="hl" value="en" type="hidden"> <input name="ie" value="UTF8" type="hidden"> <input name="langpair" value="" type="hidden"> <input name="langpair" value="en|fr" title="Français/French" src="http://photos1.blogger.com/img/43/1633/320/13539949_e76af75976.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|de" title="Deutsch/German" src="http://photos1.blogger.com/img/43/1633/320/13539933_041ca1eda2.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|it" title="Italiano/Italian" src="http://photos1.blogger.com/img/43/1633/320/13539953_0384ccecf9.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|pt" title="Português/Portuguese" src="http://photos1.blogger.com/img/43/1633/320/13539966_0d09b410b5.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|es" title="Español/Spanish" src="http://photos1.blogger.com/img/43/1633/320/13539946_2fabed0dbf.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|ja" title="日本語/Japanese" src="http://photos1.blogger.com/img/43/1633/320/13539955_925e6683c8.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|ko" title="한국어/Korean" src="http://photos1.blogger.com/img/43/1633/320/13539958_3c3b482c95.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> <td width="40"><input name="langpair" value="en|zh-CN" title="中文(简体)/Chinese Simplified" src="http://photos1.blogger.com/img/43/1633/320/14324441_5ca5ce3423.jpg" onclick="this.form.langpair.value=this.value" height="20" type="image" width="30"> </td> </form> </tr> </table>');

 

The above does not work

 

Any ideas anyone please

 

Thanks

 

Ian

Posted

Ian,

 

This is the issue:

 

define('TEXT_MAIN',

 

TEXT_MAIN is already defined for use on the index.php page. You have to assign a NEW language definition for your info box.

 

 

Chris

Archived

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

×
×
  • Create New...