Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default Alphabetize Info Box

    I tried to alphabetize the Information Box in my FTP, but it didnt work. how do I alphabetize the Information box? I went under languages, english.pho and tried but thats not the right file. Where do I go.

    Its the links that have Contact us, conditions of use, etc. I want to alphabetize these.

    thanks.

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: Alphabetize Info Box

    Quote Originally Posted by Inkbella View Post
    I tried to alphabetize the Information Box in my FTP, but it didnt work. how do I alphabetize the Information box? I went under languages, english.pho and tried but thats not the right file. Where do I go.

    Its the links that have Contact us, conditions of use, etc. I want to alphabetize these.

    thanks.
    You will find the order here:
    Just move around like you want:

    Remember the override folders


    includes/ modules/ sideboxes/ your_own_template/ information.php

  3. #3
    Join Date
    Apr 2008
    Posts
    19
    Plugin Contributions
    0

    Default Re: Alphabetize Info Box

    Ok this is scary!!


    HOW DO I GET IT TO LOOK LIKE THIS BUT IN ALPHA ORDER...THESE ARE MY RENAMED SIDEBOXES...
    // information box text in sideboxes/information.php
    define('BOX_HEADING_INFORMATION', 'Read before buying');
    define('BOX_INFORMATION_CONDITIONS', 'About Me');
    define('BOX_INFORMATION_PRIVACY', 'Copyright Info');
    define('BOX_INFORMATION_CONTACT', 'Contact Me');
    define('BOX_INFORMATION_UNSUBSCRIBE', 'Leave Newsletter');
    define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');
    define('BOX_INFORMATION_SITE_MAP', 'Site Map');
    define('BOX_BBINDEX', 'Forum');

    ##########################################################################################_
    <?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 <= 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);
    ?>
    Last edited by Inkbella; 21 Apr 2008 at 04:47 AM.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Alphabetize Info Box

    I think you can move the sections of code around to the order you want them to display.

    For example,
    PHP Code:
    if (DEFINE_PRIVACY_STATUS <= 1) {
    $information[] = '<a href="' zen_href_link(FILENAME_PRIVACY) . '">' BOX_INFORMATION_PRIVACY '</a>';

    will put the privacy link that you have renamed "Copyright Info" into the $information array as the third value if it appears after two other "if (...) {...}" statements. If one of those statements is inactive, the privacy link will be second.

  5. #5
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Alphabetize Info Box

    the list I have here is information.php file first then your other reference after

    Code:
    DEFINE_SHIPPINGINFO_STATUS  >  define('BOX_INFORMATION_SHIPPING', 'Shipping &amp; Returns');
    
    DEFINE_PRIVACY_STATUS       >   define('BOX_INFORMATION_PRIVACY', 'Copyright Info');
    
    DEFINE_CONDITIONS_STATUS    >  define('BOX_INFORMATION_CONDITIONS', 'About Me');
    
    DEFINE_CONTACT_US_STATUS    >  define('BOX_INFORMATION_CONTACT', 'Contact Me'); 
    
    // Forum (phpBB) link:     >   define('BOX_BBINDEX', 'Forum');
    
    DEFINE_SITE_MAP_STATUS     >  define('BOX_INFORMATION_SITE_MAP', 'Site Map');
    
    SHOW_NEWSLETTER_UNSUBSCRIBE_LINK  > define('BOX_INFORMATION_UNSUBSCRIBE', 'Leave Newsletter');
    So you need to re-order these BLOCKS of code in information.php into the order you want them to appear...

 

 

Similar Threads

  1. Alphabetize Items Purchased in Shopping Cart?
    By maineiac13 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Sep 2008, 07:08 PM
  2. Info box
    By thelatinbarbie in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 28 Apr 2008, 12:08 AM
  3. Info Box $ Shopping Cart Box Adjustments
    By lmw1 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 17 Apr 2007, 04:00 AM
  4. Modify login box or create new account info box?
    By torgil in forum Addon Sideboxes
    Replies: 4
    Last Post: 8 Nov 2006, 12:30 PM

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