It is in fact BOTH files that are the problem.. For different reasons as the edits to these files serve a different purpose..
The issue with the
includes/templates/your_template/templates/tpl_advanced_search_default.php is due to a conflict with the categories sidebox which makes the categories dropdown default to the last category in the list versus "All Categories" as it should. (which is why you get no search results)
Make the following change to
includes/templates/YOUR_TEMPLATE/sideboxes/tpl_categories.php
Code:
// Begin hideCategories code
list($nada, $mycpath)= split('=', $box_categories_array[$i]['path']);
$mycid = split('_', $mycpath);
$cat_to_check = array_pop($mycid);
$hide_status = $db->Execute("select visibility_status
FROM " . TABLE_HIDE_CATEGORIES . "
WHERE categories_id = " . $cat_to_check . "
LIMIT 1");
if ($hide_status->fields['visibility_status'] < 1) {
// End hideCategories code
The code in the
includes/modules/pages/advanced_search_result/header_php.php does not work at all.. Still don't know why, and unless someone else has the answer for how to get this to work, I will not be including it in the next hideCategories release..