Guest Posted March 7, 2004 Share Posted March 7, 2004 I created a new info box but the links wont wotk, why? I took the text fron information.php <?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' => SUPPORT); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_FORUM) . '">' . BOX_SUPPORT_FORUM . '</a><br>' . // MY Link '<a href="' . tep_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' . // MY Link '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . //Orginal Link '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); // Orginal link new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> My links are EXAKTLY the same as the original, nut yet it dos not disply a link to a fil look at www.consolehackers.com Link to comment Share on other sites More sharing options...
241 Posted March 7, 2004 Share Posted March 7, 2004 BOX_SUPPORT_FORUM and BOX_INFORMATION_FAQ have not been defined in catalog/includes/languages/english.php that is why the text is not showing however the links are showing define('BOX_INFORMATION_FAQ', 'FAQ'); define('BOX_SUPPORT_FORUM', 'Support Forum'); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
mugitty Posted March 7, 2004 Share Posted March 7, 2004 '<a href="' . tep_href_link(FILENAME_FORUM) . '">' . BOX_SUPPORT_FORUM . '</a><br>' . // MY Link '<a href="' . tep_href_link(FILENAME_FAQ) . '">' . BOX_INFORMATION_FAQ . '</a><br>' . // MY Link It looks like you need to add the proper defines for the files to your files and language files ... if you want to REALLY see something that doesn't set up right out of the box without some tweaking, try being a Foster Parent! Link to comment Share on other sites More sharing options...
Guest Posted March 7, 2004 Share Posted March 7, 2004 hoe do I set the propper define in catalog/includes/languages/english.php ? triued this: bekause it lokk just like the info for "information" // information box text in includes/boxes/support.php define('BOX_SUPPORT_FAQ', 'FAQ'); define('BOX_SUPPORT_FORUM', 'Support Forum'); Link to comment Share on other sites More sharing options...
241 Posted March 7, 2004 Share Posted March 7, 2004 as I posted earlier define('BOX_INFORMATION_FAQ', 'FAQ'); define('BOX_SUPPORT_FORUM', 'Support Forum'); then in catalog/includes/filenames.php define('FILENAME_FORUM', 'forum.php'); define('FILENAME_FAQ', 'faq.php'); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.