First I define the language-files for the main content. Copy your definition to /includes/languages/en_EN.xml:
<definition> <key>breadcrumb_about_us</key> <value><![CDATA[About Us]]></value> <group>info</group> </definition> <definition> <key>info_about_us_heading</key> <value><![CDATA[About Us]]></value> <group>info</group> </definition> <definition> <key>about_us</key> <value><![CDATA[Hier comes your text (you can use html) About US.]]></value> <group>info</group> </definition>To ceep the structure off Haralds programming I've copied it right under the definitions off the shipping -module (lines 1297, 1342, 1382). You can also copy it at the End of the file befor the last
</definitions> </language>
For the link in the information-box open /includes/languages/de_DE/modules/boxes/information.xml and put in the definition:
<definition> <key>box_information_about_us</key> <value><![CDATA[About Us]]></value> <group>modules-boxes</group> </definition>Now you can upload this files and import them with your admin-tool (Confiuration->Languages->Import->new records only)
Now we need the about_us.php! Make this file and copy it to the directory /includes/content/info
<?php
/*
New file: abuot_us.php
$Id: password.php 64 2005-03-12 16:36:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2005 osCommerce
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License v2 (1991)
as published by the Free Software Foundation.
*/
class osC_Info_About_us extends osC_Template {
/* Private variables */
var $_module = 'about_us',
$_group = 'info',
$_page_title,
$_page_contents = 'info_about_us.php',
$_page_image = 'table_background_specials.gif';
/* Class constructor */
function osC_Info_About_us() {
global $osC_Services, $osC_Language, $osC_Breadcrumb;
$this->_page_title = $osC_Language->get('info_about_us_heading');
if ($osC_Services->isStarted('breadcrumb')) {
$osC_Breadcrumb->add($osC_Language->get('breadcrumb_about_us'), osc_href_link(FILENAME_INFO, $this->_module));
}
}
}
?>
When you read this code, you recognize that we need a file to get the content. Make a file called info_about_us.php and copy it to the direction /templates/default/content/info:<?php
/*
New file: info_about_us.php
$Id: $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2006 osCommerce
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License v2 (1991)
as published by the Free Software Foundation.
*/
?>
<?php echo osc_image(DIR_WS_IMAGES . $osC_Template->getPageImage(), $osC_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"'); ?>
<h1><?php echo $osC_Template->getPageTitle(); ?></h1>
<p><?php echo $osC_Language->get('about_us'); ?></p>
<div class="submitFormButtons" style="text-align: right;">
<?php echo osc_link_object(osc_href_link(FILENAME_INFO), osc_draw_image_button('button_continue.gif', $osC_Language->get('button_continue'))); ?>
</div>
Everything good so far, we only need the links to our new site. Open the file /includes/modules/boxes/information.php and put the link where ever you like:' <li>' . osc_link_object(osc_href_link(FILENAME_INFO, 'about_us'), $osC_Language->get('box_information_about_us')) . '</li>' .
and open this file /templates/default/content/info/info.php and copy another link:<li><?php echo osc_link_object(osc_href_link(FILENAME_INFO, 'about_us'), $osC_Language->get('box_information_about_us')); ?></li>
Thats all!
Regards Tommy










