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

New box

This is a discussion on New box within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; how do I add a box in the middle? NOT i rigt or left_collum.. jesper...

      
  1. #1
    Lurker
    Join Date
    Aug 2003
    Posts
    2
    Rep Power
    0


    Default New box

    how do I add a box in the middle? NOT i rigt or left_collum..

    jesper

  2. #2
    Member
    Join Date
    Nov 2002
    Location
    Pennsylvania
    Posts
    93
    Rep Power
    0


    Default

    To include a simple new box in the middle page do the following:

    copy and create a new php file called new_box.php and save it in the modules directory then put these contents in it.

    Code:
    <!-- my_simple_box //-->
    <?php
      $info_box_contents = array();
      $info_box_contents[] = array('text' => sprintf('My New Box Title', strftime('%B')));
    
      new contentBoxHeading($info_box_contents);
    
      $info_box_contents = array();
      $info_box_contents[] = array('align' => 'left',
                                               'text' => 'This is a simple box addon');
    
      new contentBox($info_box_contents);
    ?>
    <!-- my_simple_box_eof //-->
    open the page ie: index.php or default.php or whatever other pages you want to include this new box in and paste the following in your layout where you want this bix to appear.
    Code:
              <tr>
                <td><?php include(DIR_WS_MODULES . 'my_new_box.php'); ?></td>
              </tr>
    This will create a simple new box, just browse through the code and you will see where you can make changes to add your text and title

    |3ackdaft
    There\'s something about fireman, day and night they are always fireman!

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
  •