Zen Cart Logo
Forums / All Other Contributions/Addons / About Us page in Information sidebox

About Us page in Information sidebox

Views: 9,548

Results 41 to 52 of 52
17 Feb 2011, 4:32 PM
#41
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

About Us page in Information sidebox

Can you post (copy & paste) the exact define statement you have for HEADING_TITLE_SIZE_CHART?

17 Feb 2011, 9:20 PM
#42
ravyn avatar

ravyn

New Zenner

Join Date:
Jun 2010
Posts:
26
Plugin Contributions:
0

Re: About Us page in Information sidebox

There is no define statement for HEADER_TITLE_SIZE_CHART. There's a define for the HEADING_TITLE, which i've posted below. I tried changing that to HEADING_TITLE_SIZE_CHART but it didn't affect the display on the site at all.

In /languages/sizechart.php

<?php
/**
 * @package languageDefines
 * @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: about_us.php v1.3 $
 */
//

define('NAVBAR_TITLE', 'Size Chart');
define('HEADING_TITLE', 'Size Chart');

?>
17 Feb 2011, 9:43 PM
#43
ravyn avatar

ravyn

New Zenner

Join Date:
Jun 2010
Posts:
26
Plugin Contributions:
0

Re: About Us page in Information sidebox

And incase any of the other files are important, here's a rundown of their contents:

/includes/extra_datafiles/size_chart_filenames.php

<?php
/**
 * @package Pages
 * @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: about_us.php v1.3 $
 */

// About Us Filename Defines
  define('FILENAME_SIZE_CHART', 'size_chart');
  define('FILENAME_DEFINE_SIZE_CHART', 'define_size_chart');
?>

/includes/languages/english/extra_definitions/alexasroom/size_chart.php

<?php
/**
 * @package languageDefines
 * @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: about_us.php v1.3 $
 */

// this is used to display the text link in the "information" or other sidebox
define('BOX_INFORMATION_SIZE_CHART', 'Size Chart');

?>

/includes/languages/english/extra_definitions/size_chart.php

<?php
/**
 * @package languageDefines
 * @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: about_us.php v1.3 $
 */

// this is used to display the text link in the "information" or other sidebox
define('BOX_INFORMATION_SIZE_CHART', 'Size_Chart');

?>

/includes/languages/english/html_includes/define_size_chart.php

<p><strong><font face="verdana,arial,helvetica,sans-serif">SIZE CHART Sample Text##...</font></strong></p><p>This section of text is from the Define Pages Editor located under Tools in the Admin.</p><p>You can use either the language-file in /includes/languages/english/MYTEMPLATE/about_us.php or this file separately for this page or, you can use both together.</p><p>To remove the language file definition, do not delete the define statement, set it to be blank. Example: define('TEXT_INFORMATION', '');</p><p>To remove this section of the text (which you're reading right now), delete it from the Define Pages Editor, located under Tools in the Admin.</p>

/includes/modules/pages/size_chart/header_php.php

<?php
/**
 * About Us Page
 * 
 * @package page
 * @copyright Copyright 2003-2010 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 15637 2010-03-07 07:41:50Z drbyte $
 */


  require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));

// include template specific file name defines
  $define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_SIZE_CHART, 'false');

  $breadcrumb->add(NAVBAR_TITLE);

?>

/includes/templates/alexasroom/templates/tpl_size_chart_default.php (I tried editing all the 'aboutUs' references in this file to sizechart, but it didn't have any effect)

<?php
/**
 * Page Template
 *
 * Loaded automatically by index.php?main_page=about_us.<br />
 * Displays About Us page.
 *
 * @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  v1.3 $
 */
?>
<div class="centerColumn" id="about_us">
<h1 id="aboutUsHeading"><?php echo HEADING_TITLE; ?></h1>

<div id="aboutUsMainContent" class="content">
<?php
/**
 * require the html_define for the about us page
 */
  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>

/includes/templates/alexasroom/templates/tpl_site_map_default.php

<?php
/** About Us added
 * Page Template
 *
 * Loaded by index.php?main_page=site_map <br />
 * Displays site-map and some hard-coded navigation components
 *
 * @package templateSystem
 * @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: tpl_site_map_default.php 4340 2006-09-02 04:54:53Z drbyte $
 */
?>
<div class="centerColumn" id="siteMap">

<h1 id="siteMapHeading"><?php echo HEADING_TITLE; ?></h1>

<?php if (DEFINE_SITE_MAP_STATUS >= '1' and DEFINE_SITE_MAP_STATUS <= '2') { ?>
<div id="siteMapMainContent" class="content">
<?php
/**
 * require the html_define for the site_map page
 */
  require($define_page);
?>
</div>
<?php } ?>

    <div id="siteMapList"><?php echo $zen_SiteMapTree->buildTree(); ?>
      <ul>
<?php if (SHOW_ACCOUNT_LINKS_ON_SITE_MAP=='Yes') { ?>
        <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . PAGE_ACCOUNT . '</a>'; ?>
        <ul>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL') . '">' . PAGE_ACCOUNT_EDIT . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL') . '">' . PAGE_ADDRESS_BOOK . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') . '">' . PAGE_ACCOUNT_HISTORY . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL') . '">' . PAGE_ACCOUNT_NOTIFICATIONS . '</a>'; ?></li>
        </ul></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_SHOPPING_CART) . '">' . PAGE_SHOPPING_CART . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL') . '">' . PAGE_CHECKOUT_SHIPPING . '</a>'; ?></li>
<?php } //endif ?>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_ADVANCED_SEARCH) . '">' . PAGE_ADVANCED_SEARCH . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_PRODUCTS_NEW) . '">' . PAGE_PRODUCTS_NEW . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_SPECIALS) . '">' . PAGE_SPECIALS . '</a>'; ?></li>
          <li><?php echo '<a href="' . zen_href_link(FILENAME_REVIEWS) . '">' . PAGE_REVIEWS . '</a>'; ?></li>
          <li><?php echo BOX_HEADING_INFORMATION; ?>
          <ul>
		  
<?php if (DEFINE_SIZE_CHART_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_SIZE_CHART) . '">' . BOX_INFORMATION_SIZE_CHART . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_SHIPPINGINFO_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PRIVACY_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_CONDITIONS_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_CONTACT_US_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
<?php } ?>
<?php if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) { ?>
            <li><?php echo '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>'; ?></li>
<?php } ?>
<?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>'; ?></li>
<?php } ?>
<?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>'; ?></li>
<?php } ?>
<?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_2_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_3_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PAGE_4_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</a>'; ?></li>
<?php } ?>

         </ul></li>
     </ul>
</div>
<br class="clearBoth" />
<div class="buttonRow back"><?php echo zen_back_link() . zen_image_button(BUTTON_IMAGE_BACK, BUTTON_BACK_ALT) . '</a>'; ?></div>
</div>

/includes/modules/sideboxes/alexasroom/information.php

<?php
/**
 * information sidebox - displays list of general info links, as defined in this file
 *
 * @package templateSystem
 * @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: information.php 4132 2006-08-14 00:36:39Z drbyte $
 */

  unset($information);
  if (DEFINE_SHIPPINGINFO_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>';
  }
  if (DEFINE_PRIVACY_STATUS <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>';
  }
  if (DEFINE_SIZE_CHART <= 1) {
    $information[] = '<a href="' . zen_href_link(FILENAME_SIZE_CHART) . '">' . BOX_INFORMATION_SIZE_CHART . '</a>';
  }
    $information[] = '<a href="' . zen_href_link(FILENAME_SIZE_CHART) . '">' . BOX_INFORMATION_SIZE_CHART . '</a>';
 // if (DEFINE_CONDITIONS_STATUS <= 1) {
//    $information[] = '<a href="' . zen_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
//  }
//  if (DEFINE_CONTACT_US_STATUS <= 1) {
//    $information[] = '<a href="' . zen_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>';
//  }

// Forum (phpBB) link:
  if ( (isset($phpBB->phpBB['db_installed_config']) && $phpBB->phpBB['db_installed_config']) && (isset($phpBB->phpBB['files_installed']) && $phpBB->phpBB['files_installed'])  && (PHPBB_LINKS_ENABLED=='true')) {
    $information[] = '<a href="' . zen_href_link($phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX, '', 'NONSSL', false, '', true) . '" target="_blank">' . BOX_BBINDEX . '</a>';
// or: $phpBB->phpBB['phpbb_url'] . FILENAME_BB_INDEX
// or: str_replace(str_replace(DIR_WS_CATALOG, '', DIR_FS_CATALOG), '', DIR_WS_PHPBB)
  }

  //if (DEFINE_SITE_MAP_STATUS <= 1) {
  //  $information[] = '<a href="' . zen_href_link(FILENAME_SITE_MAP) . '">' . BOX_INFORMATION_SITE_MAP . '</a>';
 // }

  // only show GV FAQ when installed
  if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_GV_FAQ) . '">' . BOX_INFORMATION_GV . '</a>';
  }
  // only show Discount Coupon FAQ when installed
//  if (DEFINE_DISCOUNT_COUPON_STATUS <= 1 && MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') {
//    $information[] = '<a href="' . zen_href_link(FILENAME_DISCOUNT_COUPON) . '">' . BOX_INFORMATION_DISCOUNT_COUPONS . '</a>';
//  }

  if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') {
    $information[] = '<a href="' . zen_href_link(FILENAME_UNSUBSCRIBE) . '">' . BOX_INFORMATION_UNSUBSCRIBE . '</a>';
  }

  require($template->get_template_dir('tpl_information.php',DIR_WS_TEMPLATE, $current_page_base,'sideboxes'). '/tpl_information.php');

  $title =  BOX_HEADING_INFORMATION;
  $title_link = false;

  require($template->get_template_dir($column_box_default, DIR_WS_TEMPLATE, $current_page_base,'common') . '/' . $column_box_default);
?>

And I'm using the CSS Dropdown menu, so to have the link display in the dropdown, I edited the following file from that mod (note: when I edited this same file, in the exact same manner for the About Us link, the link appeared perfectly):
/includes/templates/alexasroom/common/tpl_drop_menu.php:

<?php
//
// +----------------------------------------------------------------------+
// |zen-cart Open Source E-commerce                                       |
// +----------------------------------------------------------------------+
// | Copyright (c) 2003 The zen-cart developers                           |
// |                                                                      |
// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
// $Id: tpl_drop_menu.php  2005/06/15 15:39:05 DrByte Exp $
//

?>
<!-- menu area -->
<div id="dropMenuWrapper">
  <div id="dropMenuWrapperb">
    <div id="dropMenuWrapperc">
      <div id="dropMenuWrapperd">
        <div id="dropMenu">
          <ul class="level1">
            <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
              <ul class="level2">
                <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
              </ul>
            </li>
            <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATEGORIES; ?></a>
              <?php

 // load the UL-generator class and produce the menu list dynamically from there
 require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
 $zen_CategoriesUL = new zen_categories_ul_generator;
 $menulist = $zen_CategoriesUL->buildTree(true);
 $menulist = str_replace('"level4"','"level5"',$menulist);
 $menulist = str_replace('"level3"','"level4"',$menulist);
 $menulist = str_replace('"level2"','"level3"',$menulist);
 $menulist = str_replace('"level1"','"level2"',$menulist);
 $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
 $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
 echo $menulist;
?>
            </li>
            <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
              <ul class="level2">
          <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
				<?php } ?>
				<?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
				<?php } ?>
				<?php if (DEFINE_CONDITIONS_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
				<?php } ?>

                <li><a href="<?php echo zen_href_link(FILENAME_SIZE_CHART); ?>"><?php echo HEADER_TITLE_SIZE_CHART; ?></a></li>

                <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
                <?php } ?>
                <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
                <?php } ?>
                <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
                <?php } ?>
                <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
                <?php } ?>
                <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
              </ul>
            </li>
            <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
            <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
              <ul class="level2">
                <?php if ($_SESSION['customer_id']) { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS; ?></a></li>
                <?php } else { ?>
                <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
                <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
                <?php } ?>
              </ul>
            </li>
            <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
            <li class="submenu"><a class="noLine" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a>
              <ul class="level2">
                <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
              </ul>
            </li>
            <?php } else { ?>
            <li><a class="noLine" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
            <?php } ?>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div><!-- end dropMenuWrapper-->
<div class="clearBoth"></div>

I've actually just edited the tpl_drop_menu.php above to say:

<li><a href="<?php echo zen_href_link(FILENAME_SIZE_CHART); ?>"><?php echo 'Size Chart'; ?></a></li>

Which solves the end result of my problem, but I'm still curious to know why it wasn't getting the proper value like it did with the About Us install and link.

Thanks for your help,
Ravyn

17 Feb 2011, 10:44 PM
#44
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: About Us page in Information sidebox

You said you were getting a display of HEADING_TITLE_SIZE_CHART, so that is the exact define the code was looking for. HEADER_TITLE_SIZE_CHART would be ignored even if it existed. It's not clear what constants you had where and when, but this

<li><a href="<?php echo zen_href_link(FILENAME_SIZE_CHART); ?>"><?php echo HEADER_TITLE_SIZE_CHART; ?></a></li>

wants a define for HEADER_TITLE_SIZE_CHART.

28 Mar 2011, 1:53 PM
#45
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: About Us page in Information sidebox

I just installed the About Us mod on a revised site I'm working on. I noticed some discrepencies between the folders/files listing in the readme.txt file and the actual folders/files included in the mod.

The readme lists...

/includes/languages/english/extra_definitions/about_us.php
... but there is also an /extra_definitions/MYTEMPLATE/define_about_us.php in the mod.

The readme lists...

/includes/languages/english/html_includes/define_about_us.php (this adds the page to the drop down box in Define Pages Editor)
/includes/languages/english/html_includes/MYTEMPLATE/define_about_us.php
... but there is no /html_includes/MYTEMPLATE/define_about_us.php in the mod.

I wonder if that folder/file in extra_definitions should just be moved into html_includes instead? In other words, is the list right? Or is the folders/files structure in the mod right?

The readme lists...

/includes/modules/sideboxes/information.php ****MERGE WITH EXISTING FILE
... but instead of requiring a merge, there is /includes/modules/sideboxes/MYTEMPLATE/information.php in the mod.

The mod master might want to clarify these points.

Rob

28 Mar 2011, 6:17 PM
#46
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Hi Rob, I agree that there is some confusion (see my post #26 in this thread). I have however created a number of pages with this very useful module and have never had any problem with them. The tree structure I use for uploading to my site is shown in the picture below.

Let me add a few explanatory notes which should hopefully be helpful to you and other users:

  1. The above tree is based on a bi-lingual set up. You can obviously delete the "greek" folder and its sub-folders if you only use one language or rename it to "spanish", "german" or whatever other language you may use.

  2. If you have never before added a new page with this module, just FTP the above tree to your site.

  3. If you want to add another page (for example New_Page"), change ALL instances of "about_us" to "new_page", "ABOUT_US" to "NEW_PAGE", "About Us" to "New Page" and so on. These changes should be made to all file names, folder names and file contents. Before doing so, read step 4 below.

  4. The trick is with the file /includes/templates/my_template/templates/tpl_site_map_default.php which affects how your site map is displayed.

The out-of-box installation file has the following lines near the top (line 49):

<?php if (DEFINE_SHIPPINGINFO_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PRIVACY_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>
<?php } ?>
..........
..........

The About Us mod add three lines on top of the above code, making it:

<?php if (DEFINE_ABOUT_US_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_SHIPPINGINFO_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a>'; ?></li>
<?php } ?>
<?php if (DEFINE_PRIVACY_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a>'; ?></li>
<?php } ?>
..........
..........

This adds the About Us link on top of the other pages in the site map. If you add another page as described in step 3, the site map will display New Page on top overwriting the entry for About Us. To avoid this:

Copy the three lines

<?php if (DEFINE_ABOUT_US_STATUS <= '1') { ?>
            <li><?php echo '<a href="' . zen_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a>'; ?></li>
<?php } ?>

where you want the New Page to appear in the site map between the other entries. You should copy it between a line ending with <?php } ?> and a line starting with <?php if (DEFINE_...... depending on where you want the New Page to appear. Then, change the three ABOUT_US instances in these lines with NEW_PAGE and save the file.

That's all. As I said, I am using this mod to create new pages because my site is bi-lingual and the EZ pages do not support a second language. Examples are:

Our art gallery
Where we ship
Payment methods
About us

and a lot more, not all of them listed in the side column menu and/or the site map.

I hope that it won't be difficult to follow the above instructions. Step 4 (about adding additional pages) is probably easier to do than it is to describe.

Good luck!

28 Mar 2011, 6:41 PM
#47
athens_collectibles avatar

athens_collectibles

Zen Follower

Join Date:
May 2010
Location:
Athens, Greece
Posts:
293
Plugin Contributions:
0

Re: About Us page in Information sidebox

Forgot to mention:

The /includes/modules/sideboxes/templates/information.php defines what the Information side box displays. When adding the About Us page, the entry for the page is there, just overwrite your existing file with the one in the mod. For additional pages, follow the same technique as described in my previous post for adding entries to the site map. Opening the information.php file will show you what to do for additional entries.

Finally, I didn't mention anything about updating the database as this is self-explanatory.

PS: your doughnut looks quite tempting but unfair as I'm trying to lose some weight!

29 Aug 2011, 5:24 AM
#48
g6_distribution avatar

g6_distribution

New Zenner

Join Date:
Aug 2011
Location:
Texas
Posts:
22
Plugin Contributions:
0

Re: About Us page in Information sidebox

So I followed each step very carefully and went over it a second time and I am still getting a "Page Not Found -- Custom 404 Error Page with Site Map Sample Text ..." The only thing I doubt was step #6 saying - /includes/modules/pages/about_us/header_php.php When i went to pages, there was no About_us folder to drop header_php.php into. The rest is spot on and shouldn't be the cause of any issues. This is my first add-on so I'm hoping that it's a simple fix.

I'm running 1.3.9h, no add ons (aside from this one) and default settings for the website. Everything else works fine aside from the About Us.

17 Sep 2011, 5:50 PM
#49
discoverytdi avatar

discoverytdi

Totally Zenned

Join Date:
May 2011
Location:
Sunny Rossendale (not)
Posts:
562
Plugin Contributions:
0

Re: About Us page in Information sidebox

do I have to create a sql file for each new page, i did search but couldn't find an answer cheers

7 Aug 2012, 2:45 PM
#50
blarney avatar

blarney

New Zenner

Join Date:
Oct 2005
Location:
Connectiuct
Posts:
69
Plugin Contributions:
1

Re: About Us page in Information sidebox

I see this works in 1.3.9b. Has anyone used it in 1.3.9h? Any reason it would not work?

Thanks,

Jim

15 Aug 2012, 10:30 PM
#51
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: About Us page in Information sidebox

I'm just missing one piece of the puzzle.

I was actually already in the process of trying to clone the contact us page to create a free sample page with some added fields. Of course I only got so far. THEN I saw the about us page mod and decided to follow the directions to complete my free sample page.

BTW, I'm using 1.3.9h, Blarney.

So I've got it operational http://www.foursevenfive.com/index.php?main_page=free_sample EXCEPT the text that I wrote into the about_us page in the define pages editor is not displaying in my free_sample page - the contact_us text is still showing. I've retraced my steps put can't figure out the missing piece.

Any Ideas?
Thanks,
Andy

15 Aug 2012, 10:50 PM
#52
brooklynartist avatar

brooklynartist

New Zenner

Join Date:
Jan 2011
Location:
Brooklyn
Posts:
75
Plugin Contributions:
0

Re: About Us page in Information sidebox

Figured it out!

in includes/modules/pages/free_sample/header.php in needed to change the CONTACT_US in

// include template specific file name defines

$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_CONTACT_US, 'false');

to

/ include template specific file name defines

$define_page = zen_get_file_directory(DIR_WS_LANGUAGES . $_SESSION['language'] . '/html_includes/', FILENAME_DEFINE_FREE_SAMPLE, 'false');