Also, if you want the menu bar to hide categories flagged as "hidden from main menus" instead of just "hidden", change the < 2 to < 1 as such:
Code:$categories_query = "select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c LEFT JOIN " . TABLE_HIDE_CATEGORIES . " h ON (c.categories_id = h.categories_id), " . TABLE_CATEGORIES_DESCRIPTION . " cd where (h.visibility_status < 1 OR h.visibility_status IS NULL) and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' and c.categories_status != '0' order by c.parent_id, c.sort_order, cd.categories_name";


Reply With Quote

