Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: differnet header bar for each infobox

  1. #1
    developer_x
    Guest


    Default differnet header bar for each infobox

    Hi,

    How can I have a different heder bar(image) for each infobox. When I tried applying an image by editing the box.tpl file of the one of the templates folder, the image got appplied on every box except the category box.
    I wont prefer an image in the background via stylesheet editing. Is there any other easy way?

  2. #2
    developer_x
    Guest


    Default RE: differnet header bar for each infobox

    I know it won't be hard. Comeone guys, guide me.

  3. #3
    techmatters
    Guest


    Default RE: differnet header bar for each infobox

    Actually it is a bit fiddly.
    You need to create your own customised boxes.

    There is a wealth of info here http://www.oscommerce.info/kb/osComm...t/Catalog_Area
    but you may need to adapt it to your own needs.

    Below is a procedure on customising boxes that I developed that might be helpful.

    Files Affected:
    /catalog/includes/column_left.php
    /catalog/includes/column_right.php
    /catalog/includes/boxes/
    /catalog/templates/mytemplate/boxes/

    The first 2 are the main programs to be addressed when removing or adding side boxes.

    Column_left.php and column_right.php are included in the main template and this is where all the side boxes are added, removed or swapped from right to left.
    e.g.

    // require(DIR_WS_BOXES . 'whats_new.php');
    // require(DIR_WS_BOXES . 'affiliate.php');
    require(DIR_WS_BOXES . 'information.php');

    The "What's New" and "Affiliate" boxes have been removed (commented out) while the information.php box remains (contains the static information pages)

    Action Steps

    Step 1:

    Edit these files to include or remove new boxes as required.

    Step 2 – Create new side boxes:

    Two files/folders are affected:

    /catalog/includes/boxes/
    /catalog/templates/mytemplate/boxes/

    Step 3 – Create new side boxes:

    In the following folder:

    /catalog/includes/boxes

    Create your own box file here, using others as examples or amend as required.
    Each box in the template has a file here:

    /catalog/templates/mytemplate/boxes/

    This file is where you can create customised boxes doing different things and having different layouts.

    See box.tpl.php as an example to create your own.

    Name your new file (mynewfile.tpl.php) and set $box_base_name in includes/boxes/mynewfile.php to mynewfile.
    E.g. $box_base_name = 'manufacturers';
    It will then automatically call manufacturers.tpl.php

    Step 4 – Upload:
    Any of the above files that have been amended or created.

  4. #4
    developer_x
    Guest


    Default Gonna try it...

    Thanks. I have read most of what is there in the kb. But its my first time at oscmax.
    I'm gonna give it a try to what you said.

Similar Threads

  1. infobox problem
    By bersh31 in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 10-12-2006, 10:45 PM
  2. help removing 1px space separating infobox header/contents
    By adam71o in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 03-15-2006, 08:48 AM
  3. infobox admin
    By chfields in forum osCMax v2 Features Discussion
    Replies: 1
    Last Post: 10-25-2005, 08:20 AM
  4. header / header.php top logo problem
    By the_error_king in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-05-2004, 05:02 PM
  5. infobox height
    By judoka in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-05-2004, 12:23 AM

Bookmarks

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
  •