Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default add/remove to information sidebox

    Hi,

    how to i remove the sitemap from the information sidebox?
    also i would like to add my page 2 to this side box, how do i go about that in the best way possible?

    Many Thanks

    Alan

  2. #2
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: add/remove to information sidebox

    It's ok, i figured it out.

    i created a folder under /includes/templates/mytemplate/sideboxes/ and copied the below as tpl_information.php for the home button:

    you can remove the site map in the admin area, but i wanted it, but didn't want it in this box.

    not sure if anyone will want this, but here you go.

    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";
      $content .= "\n" . '<li><a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . HEADER_TITLE_CATALOG . '</a></li>' . "\n";
      for ($i=0; $i<sizeof($information); $i++) {
        $content .= '<li>' . $information[$i] . '</li>' . "\n";
      }
      $content .= '</ul>' .  "\n";
      $content .= '</div>';
    ?>
    
    and for the additional links i amended information.php with my own, this puts all the extra pages, page_2 etc, under the same box:
    /var/www/html/includes/modules/sideboxes/mytemplate/template.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_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>';
      }
      if (DEFINE_PAGE_2_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_2) . '">' . BOX_INFORMATION_PAGE_2 . '</a>';
      }
      if (DEFINE_PAGE_3_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_3) . '">' . BOX_INFORMATION_PAGE_3 . '</a>';
      }
      if (DEFINE_PAGE_4_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(FILENAME_PAGE_4) . '">' . BOX_INFORMATION_PAGE_4 . '</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)
      }
    
      // 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);
    ?>
    Alan

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: add/remove to information sidebox

    I would of taken the easy way out and used the switch to turn ON or OFF the Site Map link in the Information Sidebox located in the Configuration ... Define Pages ...
    Define Site Map Status
    Enable the Defined Site Map Link/Text?
    0= Link ON, Define Text OFF
    1= Link ON, Define Text ON
    2= Link OFF, Define Text ON
    3= Link OFF, Define Text OFF
    What version of Zen Cart are you running?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Aug 2006
    Posts
    20
    Plugin Contributions
    0

    Default Re: add/remove to information sidebox

    Hi,

    it's 1.36...

    i thought doing it my way was best as i wanted to customise the information sidebox anyway.



    Alan

  5. #5
    Join Date
    Sep 2006
    Posts
    15
    Plugin Contributions
    0

    Default Re: add/remove to information sidebox

    hi everybody
    i have a question about add/romove 1 sidebox
    now, i want add one new sidebox - 1 sidebox new 100%,body of this new sidebox will created by me - not depen sidebox of zencart
    so, can i do it?
    if people know,please answer help me
    thanks

    buysz
    hkih

 

 

Similar Threads

  1. empty box cant be remove from information sidebox
    By Alex804188 in forum Basic Configuration
    Replies: 1
    Last Post: 27 Feb 2010, 01:38 PM
  2. Remove links from Information sidebox...
    By sfklaas in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Jun 2008, 02:12 PM
  3. Remove Information Sidebox & put links in Footer?
    By mommydesigns in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 15 Jun 2007, 07:16 AM
  4. How to remove links from Information Sidebox?
    By tony_sar in forum Basic Configuration
    Replies: 19
    Last Post: 24 May 2007, 04:50 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