
Originally Posted by
southshorepizza
So the file that was breaking the search engine was located at
includes/templates/your_template/templates/tpl_advanced_search_default.php
The one I kept being told was the problem was
includes/modules/pages/advanced_search_result/header_php.php
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/templates/tpl_advanced_search_default.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..
Bookmarks