I have oscmax installed in public_html\catalog
I have a file with the following code in public_html
The code was originally made to work from the public_html\catalog, but I have tried inserting the word 'catalog' here and there within the code, without really knowing the syntax. Please let me know if I got it right, which I don't think I did because it doesn't work.
Code:<?php if ((USE_CACHE == 'true') && empty($SID)) { ; } else { if ( DISPLAY_DHTML_MENU == 'Dhtml' ) { include('catalog/' . DIR_WS_BOXES . 'categories_dhtml_dropdown.php'); } else { function tep_show_category($counter) { // BoF - Contribution Category Box Enhancement 1.1 global $tree, $boxContent, $cPath_array, $cat_name; $cPath_new = 'cPath=' . 'catalog/' . $tree[$counter]['path']; $boxContent .= '<li><a href="'; $boxContent .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">'; // display category name $boxContent .= $tree[$counter]['name']; if ($cat_name == $tree[$counter]['name']) { $boxContent .= '</span>'; } // EoF Category Box Enhancement $boxContent .= '</a></li>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $boxContent .= ' (' . $products_in_category . ')'; } } if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <!-- categories //--> <?php $boxContent = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } tep_show_category($first_element); $box_base_name = 'dropdown'; include (bts_select('boxes', $box_base_name)); // BTS 1.5 } } ?>





LinkBack URL
About LinkBacks






Bookmarks