Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2006
    Posts
    20
    Plugin Contributions
    0

    Default Sideboxes/information + Sideboxes/more_information

    [FONT=Calibri]Hello:[/FONT]
    [FONT=Calibri]Zencart v1.3.7 - Layout Boxes Controller[/FONT]
    [FONT=Calibri]Hi all - How can I effectively consolidate :[/FONT]
    [FONT=Calibri]Sideboxes/information + Sideboxes/more_information[/FONT]
    [FONT=Calibri]... into a single box?[/FONT]
    [FONT=Calibri]My sideboxes/information contains a single link to CONTACT US[/FONT]
    [FONT=Calibri]My sideboxes/more_information [re-labled to COMPANYNAME] links to page1, page2, page3…[/FONT]
    [FONT=Calibri]To see what I mean, please see left column:[/FONT]
    [FONT=Calibri]http://www.voip-warehouse.com.au/[/FONT]
    [FONT=Calibri]Thanks[/FONT]
    [FONT=Calibri]GARRY[/FONT]

  2. #2
    Join Date
    Sep 2007
    Posts
    219
    Plugin Contributions
    0

    Default Re: Sideboxes/information + Sideboxes/more_information

    Hi Garry

    To consolidate the two into information:

    Go to includes\templates\yourtemplate\sideboxes\tpl_information.php

    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @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_information.php 2982 2006-02-07 07:56:41Z birdbrain $
     */
      
    $content '';
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent">';
      
    $content .= "\n" '<ul style="margin: 0; padding: 0; list-style-type: none;">' "\n";
      for (
    $i=0$i<sizeof($information); $i++) {
        
    $content .= '<li>' $information[$i] . '</li>' "\n";
      }
      for (
    $i=0$i<sizeof($more_information); $i++) {
        
    $content .= '<li>' $more_information[$i] . '</li>' "\n" ;
      }
      
    $content .= '</ul>' .  "\n";
      
    $content .= '</div>';
    ?>
    Then go to includes\modules\sideboxes\yourtemplate\information.php

    PHP Code:
    <?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_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 <= && 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>';
      }
      
       if (
    DEFINE_PAGE_2_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_2) . '">' BOX_INFORMATION_PAGE_2 '</a>';
      }
      if (
    DEFINE_PAGE_3_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_3) . '">' BOX_INFORMATION_PAGE_3 '</a>';
      }
      if (
    DEFINE_PAGE_4_STATUS <= 1) {
        
    $more_information[] = '<a href="' zen_href_link(FILENAME_PAGE_4) . '">' BOX_INFORMATION_PAGE_4 '</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_defaultDIR_WS_TEMPLATE$current_page_base,'common') . '/' $column_box_default);
      
      
    ?>
    This is obviously based on a new install, so please compare it to your own code if you have already made alterations to these files.

 

 

Similar Threads

  1. Replies: 6
    Last Post: 7 Mar 2013, 04:36 PM
  2. combining Information & More Information Sideboxes
    By mek113 in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 4 Jan 2012, 06:52 PM
  3. How to add more pages into "Information"? (sideboxes/information.php)
    By n_t_r in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 27 May 2011, 01:50 PM
  4. How do I merge the sideboxes for 'Information' and 'More Information'
    By val-ent in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jul 2008, 10:59 AM
  5. Information Sideboxes
    By dhermanus in forum Basic Configuration
    Replies: 0
    Last Post: 3 Oct 2006, 11:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR