Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SOMETHINGS WRONG WITH LINK IN INFO BOX


rodcar

Recommended Posts

Hi

Sure this is something so simple, can anyone tell me what is wrong with this.

 

In my info box this is how the link is showing up, it actually reads; BOX_INFORMATION_ABOUT_TWIN_THINGS and has now my boxes on the right are all out of align.

 

 

<?php

/*

$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

?>

<!-- information //-->

<tr>

<td>

<?php

$info_box_contents = array();

$info_box_contents[] = array('text' => BOX_HEADING_INFORMATION);

 

new infoBoxHeading($info_box_contents, true, true);

 

$info_box_contents = array();

$info_box_contents[] = array('text' =>

'<div style="font-size: 28px; font-weight: bold;"><a href="/forums/"><font color="red">FORUMS</font></a></div><br>' .

'<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_ABOUT_TWIN_THINGS) . '">' . BOX_INFORMATION_ABOUT_TWIN_THINGS . '</a><br>' .

'<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a><br>' );

 

new infoBox($info_box_contents);

?>

</td>

</tr>

<!-- information_eof //-->

 

any help would be much appreciated

 

rod

Link to comment
Share on other sites

Go into your /catalog/includes/languages/english.php file and add the definition:

 

// information box text in includes/boxes/information.php
define('BOX_HEADING_INFORMATION', 'Information');
define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
define('BOX_INFORMATION_CONTACT', 'Contact Us');
define('BOX_INFORMATION_ABOUT_TWIN_THINGS', '*** PUT YOUR TEXT HERE ***');

The other lines are already there, I put yours at the bottom.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...