osCmax v2.5 User Manual
Results 1 to 3 of 3

Adding new boxe in column_left

This is a discussion on Adding new boxe in column_left within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi to everyone, Once again I'll try to custom my OSCMax with adding a box under (of before) the information ...

      
  1. #1
    New Member
    Join Date
    Apr 2008
    Location
    Brussels
    Posts
    15
    Rep Power
    0


    Question Adding new boxe in column_left

    Hi to everyone,
    Once again I'll try to custom my OSCMax with adding a box under (of before) the information one.
    To do that, I took the modification guide in french who told how to proceed.
    OK, I begin.
    First step :
    Adding New Boxes, Links and Pages
    We will now look into adding our own custom boxes, as well as adding/changing links, pages and graphics to boxes. In addition, we will learn how to add items to the columns, outside of the actual boxes. All of these modifications are fairly easy to perform, but they are not entirely intuitive (understatement!). Making a New Box
    Let’s jump right in. The files involved are: /catalog/includes :
    1. column_left.php 2. column_right.php/catalog/includes/boxes : ALL files in this directory
    Open /catalog/includes/boxes/information.php in a text editor and save it as /catalog/includes/boxes/test.php.

    That's the easy way and it's done.

    Now second step :

    Then in column_left.php, add this line:
    require(DIR_WS_BOXES . 'test.php');
    directly below this line:
    require(DIR_WS_BOXES . 'information.php');
    Save column_left.php to your server, and reload the main catalog page in your browser. You will now see two information boxes on the left. The second one we just added with one line of code.

    And there is the problem, can't find the require(DIR_WS_BOXES . 'information.php') other way as comment.

    Here is what I finded out in the : includes\column_left.php file :

    /*
    $Id: column_left.php 3 2006-05-27 04:59:07Z user $
    osCMax Power E-Commerce
    osCommerce Documentation by OSCdox :: osCommerce and osCMax documentation
    Copyright 2006 osCMax
    Released under the GNU General Public License
    */
    // BOF: MOD - INFO BOXES - now pulled dynamically as per setting in admin
    /*
    if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_categories_box();
    } else {
    include(DIR_WS_BOXES . 'categories.php');
    }
    if ((USE_CACHE == 'true') && empty($SID)) {
    echo tep_cache_manufacturers_box();
    } else {
    include(DIR_WS_BOXES . 'manufacturers.php');
    }
    require(DIR_WS_BOXES . 'whats_new.php');
    require(DIR_WS_BOXES . 'search.php');
    require(DIR_WS_BOXES . 'information.php');
    require(DIR_WS_BOXES . 'test.php');
    */
    $column_query = tep_db_query('select configuration_column as cfgcol, configuration_title as cfgtitle, configuration_value as cfgvalue, configuration_key as cfgkey, box_heading from ' . TABLE_THEME_CONFIGURATION . ' order by location');
    while ($column = tep_db_fetch_array($column_query)) {
    $column['cfgtitle'] = str_replace(' ', '_', $column['cfgtitle']);
    $column['cfgtitle'] = str_replace("'", '', $column['cfgtitle']);
    if ( ($column[cfgvalue] == 'yes') && ($column[cfgcol] == 'left')) {
    define($column['cfgkey'],$column['box_heading']);
    if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'] . '.php') ) {
    require(DIR_WS_BOXES . $column['cfgtitle'] . '.php');
    }
    }
    }
    // EOF: MOD - INFO BOXES - now pulled dynamically as per setting in admin

    Can someone give me an idee to find my way in the modification guide.

    Thanks for all your help.

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Adding new boxe in column_left

    osCMax uses infobox admin, so you don't edit the columns anymore.

    You upload your new box to the /includes/boxes directory. Then in the admin panel, you go to the Infobox Admin section and add the new box.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Apr 2008
    Location
    Brussels
    Posts
    15
    Rep Power
    0


    Default Re: Adding new boxe in column_left

    Hi Michael,
    Thanks for your answer.
    I will try it later 'cause I've decided to restart my learning of PHP from the begining.
    I've found that I'll run to quickly to make mods on OSCMax before understand what I did.
    See you,
    Patrick

Similar Threads

  1. Removing column_left with BTS
    By innovations in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 05-11-2005, 12:29 PM
  2. Column_left white space call me stupid!
    By AnnieChrist in forum osCMax v1.7 Installation
    Replies: 0
    Last Post: 04-22-2005, 03:46 PM
  3. Change column_left width
    By adam71o in forum osCMax v1.7 Installation
    Replies: 11
    Last Post: 04-12-2005, 06:51 AM
  4. making my column_left and Column_rights fit into my layout..
    By tmac2104 in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 07-08-2004, 11:36 PM
  5. Column_left background image
    By rd42 in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 07-13-2003, 11:24 PM

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
  •