Guest Posted April 30, 2004 Share Posted April 30, 2004 This is probuably very simple but im stumped! How can i create my own boxes to then include in the columns either side of the page? I tries to do it but it all went wrong :angry: Please help me :blink: -Adam- Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2004 Share Posted April 30, 2004 http://wiki.oscommerce.com/docsCatBoxSpecNew The_Bear Link to comment Share on other sites More sharing options...
agiftcodotcom Posted April 30, 2004 Share Posted April 30, 2004 catalog/includes/boxes add a php file with the following code (Replace"NEWBOXNAME" with a name/"YOUR TEXT..." with your text) <?php /* $Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ ?> <!-- information //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_NEWBOXNAME); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); $info_box_contents[] = array('text' => 'YOUR TEXT OR INFORMATION GOES HERE BETWEEN THE APOSTROPHES.'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> catalog/includes/column_left.php (or right), add this where you want it to be (replace: new_file.php, with the file name) require(DIR_WS_BOXES . 'new_file.php'); catalog/includes/languages/english.php, add the following define('BOX_HEADING_NEWBOXNAME', 'New Box Heading'); Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
Guest Posted April 30, 2004 Share Posted April 30, 2004 Cheers :D Link to comment Share on other sites More sharing options...
blessed Posted May 12, 2004 Share Posted May 12, 2004 I added this and it's awesome, it added to the right column.. but it added 9 of them. How do I limit this to one? thanks! Link to comment Share on other sites More sharing options...
agiftcodotcom Posted May 12, 2004 Share Posted May 12, 2004 How many times did you put "require(DIR_WS_BOXES . 'new_file.php');" in column_right.php? That's the only thing I would know to check :( Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
blessed Posted May 12, 2004 Share Posted May 12, 2004 just once...lol Link to comment Share on other sites More sharing options...
agiftcodotcom Posted May 12, 2004 Share Posted May 12, 2004 You never know when someone gets "CNTRL V" Happy :D Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
blessed Posted May 12, 2004 Share Posted May 12, 2004 I think the problem lie with the version of osc that I'm using. LOL>.. it don't always work everywhere :( It does what I want it too, letting me link where I'm affiliated with....but not 100% in this format. Link to comment Share on other sites More sharing options...
SGershon Posted May 18, 2004 Share Posted May 18, 2004 Blessed, did you solved the 9 boxes problem? No, I dont have the 9 boxes problem, but I am very curious! SGershon If at first you don't succeed, you must be a programmer. Tip Posted: Languageless Reviews Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.