how do I add a box in the middle? NOT i rigt or left_collum..
jesper
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...
how do I add a box in the middle? NOT i rigt or left_collum..
jesper
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.
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:<!-- 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 //-->
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 titleCode:<tr> <td><?php include(DIR_WS_MODULES . 'my_new_box.php'); ?></td> </tr>
|3ackdaft
There\'s something about fireman, day and night they are always fireman!
Bookmarks