hmm.. it's really strange.. but no matter what my categories just never show up.. lol
even if i type in the category name in the search.. hehe.. must be a mod that i did a long time ago and forgot.. cause i don't want any categories to end up in my searches..
anyways... find this:
Code:
foreach $category (@category_results) {
if ($nh == 1) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
}
$cat_hits++;
}
change to this:
Code:
foreach $category (@category_results) {
if ($nh == 1) {
if ($catsearch eq "All" | | $category =~ /^$catsearch/) {
$cat_clean = &build_clean($category);
$linked_title = &build_linked_title ($category);
$category_results .= qq|<li>$linked_title\n|;
$cat_hits++;
}
}
}
btw.. change the "| |" so it doesn't have a space in the middle.... tell me if it works.. i have no clue if it does.. just seems right to me..