Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

add links to 'text information'


raindog904

Recommended Posts

Hello, I am trying to add a list of links to external sites on a "Partners" page I created. I am using the different company logos so that when you click on the image it takes you to an outside site. However, I can not figure out how to seperate these these logos when adding it to the 'text information' section. Here is what I have so far:

 

define('NAVBAR_TITLE', 'Partners');

define('HEADING_TITLE', 'Partners');

 

define('TEXT_INFORMATION', '<a href="http://www.******.com">

<img border="0" src="images/logo.gif" width="473" height="59"></a>');

?>

 

 

How can I add the second link?

 

Thanks.

Link to comment
Share on other sites

Just use standard html:

define('TEXT_INFORMATION', '

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

?>

You can use <tr><td></td></tr> if you want to control it even more.

 

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

Link to comment
Share on other sites

Just use standard html:
define('TEXT_INFORMATION', '

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

?>

You can use <tr><td></td></tr> if you want to control it even more.

 

Jack

 

Thanks Jack, the problem I am having is with the quotation marks in the HTML code. When I add the second line I get errors like this one: " Parse error: syntax error, unexpected '<' " and the page fails to load. Should I be putting ?> after each link?

 

Any Ideas?

Link to comment
Share on other sites

For regular html, you don't need any special code. As long as you don't use apostrophes, the code will work. The initial code you posted should work fine. Does it fail?

 

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

Link to comment
Share on other sites

Just use standard html:
define('TEXT_INFORMATION', '

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>');
</p>

?>

You can use <tr><td></td></tr> if you want to control it even more.

 

Jack

 

 

Should be:

 

define('TEXT_INFORMATION', '

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>
</p>

<p><a href="http://www.******.com">
<img border="0" src="images/logo.gif" width="473" height="59"></a>
</p>');

?>

 

 

...i think

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...