If we get it right, you need to perform a search that would exclude some categories from the search results. This functionality hasn't been introduced yet, but you can use this "trick":
// Check category (exclude for search)
if ($item['c']) {
$categories = explode(',', $item['c']);
if (isset($category_exclude) && array_intersect($categories, $category_exclude)) {
continue;
}
}
in the search.php file before the line
$MB = function_exists('mb_strtolower');
Before
set the parameter
$category_exclude = '1,2,3,4'
(numbers are the ones for the categories to be excluded from the search results). If you insert
nothing will be excluded, if
then the news with category '1' will be excluded (the numbers for the categories can be checked in the admin panel under the categories tab).