Jump to content


  • Content count

  • Joined

  • Last visited

1 Follower

Profile Information

  • Real Name
    John Bennett
  1. jrb_hc

    Problem with Option type feature

    Hi Julie Did you manage to fix this problem? I have just installed Option Type and have encountered exactly the same problem, so if you have now fixed it I'd be grateful to know how! Thanks John
  2. jrb_hc

    BTSv1.2 Support

    Thanks again Paul, you are an absolute star! By doing it the way you said, it is working perfectly. I am developing the site on a standalone old laptop at the moment as it is a replacement for my existing site design (which is not done in OSCommerce) so do not have a URL for the test site. I'll let you know the URL when I get it put up to the server though. Thanks again John
  3. jrb_hc

    BTSv1.2 Support

    Just a little update.... I'm managing to change the category box by changing the settings for infoBoxLT (which changes the others also). I guess this means that I have done something wrong that is stopping it from looking for top_categoriesBox? John
  4. jrb_hc

    BTSv1.2 Support

    Paul Sorry to be a pain again. The category box goes in a layer which is over the top of a sculpted menu bar witha background of #FF9900. So I am trying to change the stylesheet to get rid of the borders and the background colour in the "Categories" bar and then change the text format. I've read through your (excellent) tutorial and the Wiki documentation, and tried to look at the other settings in the stylesheet, but have got myself totally confused! Perhaps this is a sign that it is time to log off and go the pub! Anyway, if you could give me any pointers as to the correct format, I would be very grateful Thanks John
  5. jrb_hc

    BTSv1.2 Support

    Thanks for responding so quickly Paul - it really is appreciated. I tried that, but eventually worked out that the top_categories.php was writing it's own version of the table to the screen before calling the BTS files. So, I have modified it as follows, which seems to work! I am pretty new to PHP, so there is a good chance I have fluffed things up! Seems OK for now though. Thanks again! <?php /**************************************************************************** * $Id: top_categories.php,v 1.0 2003/04/90 14:34:00 clescuyer Exp $ * * Display only top categories * * osCommerce, Open Source E-Commerce Solutions * http://www.oscommerce.com/ * * Copyright (c) 2003 Go?lette * Christian Lescuyer <cl@goelette.net> * http://www.goelette.net/ * * History: 1.0 Creation * * Released under the GNU General Public License ****************************************************************************/ ?> <!-- top_categories //--> <tr> <td> <?php $box_base_name = 'top_categories'; // for easy unique box template setup (added BTSv1.2) $box_id = $box_base_name . 'Box'; // for CSS styling paulm (editted BTSv1.2) ////////// // Display box heading ////////// // $boxHeading = array(); $boxHeading = BOX_HEADING_CATEGORIES; // new infoBoxHeading($info_box_contents, true, false); ////////// // Get categories list ////////// // Test for presence of status field for compatibility with older versions $status = tep_db_num_rows(tep_db_query('describe categories status')); $query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = cd.categories_id and c.parent_id=0"; if ($status >0) $query.= " and c.status = '1'"; $query.= " and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name"; $categories_query = tep_db_query($query); // Build categories string $categories_string = ''; while ($row = tep_db_fetch_array($categories_query)) { $categories_string .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'cPath=' . $row['categories_id']) . '">'; list($current) = explode('_', $HTTP_GET_VARS['cPath']); if ($row['categories_id'] == $current) $categories_string .= '<b>'; $categories_string .= $row['categories_name']; if ($row['categories_id'] == $current) $categories_string .= '</b>'; $categories_string .= '</a>'; $categories_string .= '<br>'; } ////////// // Display box contents ////////// $boxContent = $categories_string; // $boxContent[] = array('align' => 'left', 'text' => $categories_string); // new infoBox($info_box_contents); // bof BTSv1.2 if(file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php')) { // if exists, load unique box template for this box from templates/boxes/ require(DIR_WS_BOX_TEMPLATES . $box_base_name . '.tpl.php'); } else { // load default box template: templates/boxes/box.tpl.php require(DIR_WS_BOX_TEMPLATES . TEMPLATENAME_BOX); } // eof BTSv1.2 ?> </td> </tr> <!-- top_categories_eof //-->
  6. jrb_hc

    BTSv1.2 Support

    Hello, I'm sorry if this question has already been asked, but have searched all morning and cannot see it answered in the posts already! I have installed BTS over a clean installation of OSC MS2.2 I want to just show the top level categories in my Category box, so downloaded the top_categories contribution (http://www.oscommerce.com/community/contributions,1145) which basically gives you a new box file (top_categories.php) to call instead of categories.php. I created a new box template file called top_categories.tpl.php. I guess that I need to add some new lines top the top_categories.php file to make it look to BTS for its formatting and also a new entry in stylesheet.css? I have tried to do these changes by looking at categories.php, but to no avail! If anyone has any ideas, I would be very grateful to hear them. Thanks John