Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Whats wrong with this code?


jmason

Recommended Posts

In my affiliats box I have an image that is linked to the affiliates page the image has a blue link ring around it. I beleive this is becuase I am using the absolute path to the image. Below is the code I've changed to, and it's not working out.

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => BOX_HEADING_AFFILIATES );

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

( tep_href_link(FILENAME_AFFILIATES, '', 'NONSSL') . '">' . BOX_INFORMATION_AFFILIATES . . tep_image(DIR_WS_IMAGES . 'partners.gif', 'Yankeewarehouse.net') . '</a>'; ?>

new infoBox($info_box_contents);

 

 

This is the absolute path code with blue link ring.

 

<?php

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => BOX_HEADING_AFFILIATES );

new infoBoxHeading($info_box_contents, false, false);

 

$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => '<a href="' .

tep_href_link(FILENAME_AFFILIATES, '', 'NONSSL') . '">' . BOX_INFORMATION_AFFILIATES . '</a><br>' .

'<a href="affiliates.php"> <img src="/catalog/includes/languages/english/images/partners.gif"></a> <br>' );

 

 

new infoBox($info_box_contents);

?>

Link to comment
Share on other sites

Try changing this

'<a href="' . 
tep_href_link(FILENAME_AFFILIATES, '', 'NONSSL') . '">' . BOX_INFORMATION_AFFILIATES . '</a><br>' .
'<a href="affiliates.php"> <img src="/catalog/includes/languages/english/images/partners.gif"></a>

to this

'<a href="' . 
tep_href_link(FILENAME_AFFILIATES, '', 'NONSSL') . '">' . BOX_INFORMATION_AFFILIATES . '<img src="/catalog/includes/languages/english/images/partners.gif">'.</a>

 

I haven't tested the above so it may need some tweaking.

 

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

Archived

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

×
×
  • Create New...