This is how to do it:
assumption : using murasakibox template
Step 1:
Added a about_us_filename.php at includes/extra_datafiles.
which define the about_us page, eg :
<?php
/**
* @package about_us module
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @copyright Portions Copyright 2003 Jason LeBaron
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
*/
define('FILENAME_DEFINE_ABOUT_US', 'define_about_us');
define('FILENAME_ABOUT_US', 'about_us');
?>
Step 2:
add a referral link in the information.php (information sideboxes)
create and modified :
includes/modules/sideboxes/murasakibox/information.php
added a link eg :
$information[] = '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . 'about us</a>';
Step 3:
create and murasakibox folder under includes/languages/english
eg : includes/languages/english/murasakibox
create a about_us.php which define :
define('NAVBAR_TITLE', 'About Murasakibox');
define('HEADING_TITLE', 'About us!');
step 4:
create a folder under includes/modules/pages named about_us
eg: includes/modules/pages/about_us
under this folder create header_php.php which define the contain of the page eg:
<?php
/**
* about us murasakibox.com
*
* @package page
* @copyright Copyright 2003-2006 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: header_php.php 3230 2006-03-20 23:21:29Z drbyte $
*/
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_ABOUT_US, 'false');
?>
step 5:
under includes/templates/murasakibox create a folder called templates eg :
includes/templates/murasakibox/templates
create a templete file called tpl_about us_default.php
<?php
/**
* tpl_about us_default.php
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_about us default.php
*/
?>
<div class="centerColumn" id="about us">
<h1 id="aboutusHeading"><?php echo HEADING_TITLE; ?></h1>
<div id="aboutusMainContent" class="content">
<?php
/**
* load the html_define for the about us default
*/
require($define_page);
?>
</div>
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
</div>
step 6:
under includes/languages/english/html_includes create a about_us.php, eg:
includes/languages/english/html_includes/about_us.php
create a body contain about the page
step 7:
under the admin page goto define page and modified the contain of the about us page.
done!
Hope this will help someone to create it.
Choong Leng from Singapore







Bookmarks