Results 1 to 4 of 4

Replying to Adding different colors for each box

This is a discussion on Replying to Adding different colors for each box within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; hello! just trying to change the look of search box regarding the instruction on http://guide.oscdox.com/ (Adding different colors for each ...

      
  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    6
    Rep Power
    0


    Default Replying to Adding different colors for each box

    hello!
    just trying to change the look of search box regarding the instruction on http://guide.oscdox.com/ (Adding different colors for each box):
    1. Open /catalog/includes/classes/boxes.php
    Find the function infoBoxContents
    Replace:

    function infoBoxContents($contents) {
    $this->table_cellpadding = '3';
    $this->table_parameters = 'class="infoBoxContents"';
    $info_box_contents = array();
    with:
    function infoBoxContents($contents) {
    global $css_class;
    $this->table_cellpadding = '3';
    $this->table_parameters = 'class="'.$css_class.'"';
    $info_box_contents = array();

    2. Now Open one of the boxes, lets use /catalog/includes/boxes/information.php
    Replace:
    <!-- information //-->
    <tr>
    <td>
    <?php
    $info_box_contents = array();
    with:
    <!-- information //-->
    <tr>
    <td>
    <?php
    global $css_class;
    $css_class = "infoBoxContents5";
    $info_box_contents_info = array();

    3. infoBoxContents5 will have to be added to /catalog/stylesheet.css and could look something like this:
    TABLE.infoBoxContents5 {
    background-color: #FFFFF1;
    }
    but this changes
    properties of all sideboxes. Where is my mistake?
    thanx!

  2. #2
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    I installed a contrib that uses the stylesheet.css to change boxes, each one can be different. Here's the link to it:
    http://www.oscommerce.com/community/contributions,1261
    It's very easy and VERY handy!

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    6
    Rep Power
    0


    Default

    thanx Kristine! will try...

  4. #4
    Active Member
    Join Date
    Feb 2004
    Posts
    174
    Rep Power
    9


    Default

    you're welcome, good luck

Similar Threads

  1. Pull down menu for colors? -- is it possible?
    By markymrk22 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 05-26-2005, 03:13 PM
  2. Link Colors?
    By beernut in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-17-2004, 04:41 PM
  3. Need different link colors
    By doggerwatson in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 11-02-2004, 05:36 AM
  4. Old Question - Box Colors
    By simmonm in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-22-2003, 07:02 PM
  5. css link colors
    By AtroxAngel in forum osCommerce 2.2 Modification Help
    Replies: 12
    Last Post: 01-22-2003, 10:31 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
  •