Ekstra link i menu boxen
Jeg sidder og roder lidt med osCommerce 2.0, og vil derne have et nyt link i 'Information' boxen.Linket skal henvise til mine firma oplysninger, den side har jeg lagt i catalog/include/language/danish og english mappen under navnet companyinfo.php
Jeg har tilføjet i disse sider:
catalog/includes/boxes/information.php
denne linie
$info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_COMPANYINFO) . '">' . BOX_INFORMATION_COMPANYINFO . '</a><br>' .
og i denne fil catalog/includes/filenames.php
denne linie
define('FILENAME_COMPANYINFO', 'companyinfo.php');
i denne fil catalog/includes/languages/danish.php
denne linie under afsnittet 'information'
define('BOX_INFORMATION_COMPANYINFO', 'Firma informationer');
det samme har jeg gjort i english/english.php
Og så har jeg tilføjet en fil i mappen catalog/
med dette indhold
<?php
/*
$Id: privacy.php,v 1.1 2005/09/21 09:56:11 olby Exp $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
require('includes/application_top.php');
require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_COMPANYINFO);
$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_COMPANYINFO));
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<!-- body //-->
<table border="0" width="100%" cellspacing="3" cellpadding="3">
<tr>
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!>
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!>
</table></td>
<!-- body_text //-->
<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES . 'table_background_specials.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><?php echo TEXT_INFORMATION; ?></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>
<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<!-- body_text_eof //-->
<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">
<!>
<?php require(DIR_WS_INCLUDES . 'column_right.php'); ?>
<!>
</table></td>
</tr>
</table>
<!-- body_eof //-->
<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Hvad gør jeg forkert?
Jeg har spurgt på openforum.dk uden held og prøvet med forskellige contrips, men de så ikke ud til at virke på denne version.
Jeg håber der er nogen der kan hjælpe med en løsning :-D
