New Zenner
- Join Date:
- Sep 2007
- Posts:
- 16
- Plugin Contributions:
- 0
How to add some pages in Information slide-box
Hi all,
Please tell me how can I add some pages in Information slide-box ???
ex:
- Shipping & Returns
- Privacy Notice
- Conditions of Use
- Contact Us
- Site Map
- Gift Certificate FAQ
- Discount Coupons
- Newsletter Unsubscribe
- Shipping & Returns
- Test page 1
- Test page 2
- Test page 3
.......
You can see what I did :wacko:
At First
I going to page information.php in /includes/modules/sideboxes
At line:
if (DEFINE_CONDITIONS_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
}
I copy and paste one edited below:
if (DEFINE_TEST1_STATUS <= 1) {
$information[] = '<a href="' . zen_href_link(FILENAME_TEST1) . '">' . BOX_INFORMATION_TEST1 . '</a>';
}
save and upload it back.
**
Second step: **
In page english.php in /includes/languages
At line:
// information box text in sideboxes/information.php
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
I copy and paste one edited below:
// information box text in sideboxes/information.php
define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');
define('BOX_INFORMATION_TEST1', 'Test page 1');
save and upload it back.
Third step:
I copy define_conditions.php and paste one with new name is define_test1.php in /includes/languages/english/html_includes
Fourth step:
I copy header_php.php in /includes/modules/pages/conditions and paste one at
/includes/modules/pages/test1
In this file, I has replaced:
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONDITIONS, 'false');
after replaced:
// include template specific file name defines
$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_TEST1, 'false');
Fift step:
I copy conditions.php and paste one with new name is test1.php in /includes/languages/english
At line:
define('NAVBAR_TITLE', 'Conditions of Use');
define('HEADING_TITLE', 'Conditions of Use');
define('TEXT_INFORMATION', 'Your Conditions of Use information should be on this page.');
?>
Replace to:
define('NAVBAR_TITLE', 'Test page 1');
define('HEADING_TITLE', 'Test page 1');
define('TEXT_INFORMATION', 'Your Test page 1 information should be on this page.');
?>
=====================================
Finally, I saw a new link Test page 1 in Information slide-box. But when I click this link, it's doesn't work.
Example: > http://DOMAIN.com/index.php?main_page=FILENAME_TEST1
:frusty::frusty::frusty:
What's wrong with me :no: