Try this:
This might want alteration toPHP Code:
case 7://full active tree, others per level; always cat 23, cat 150 active subs
if( $path_top == '150'){
if ($cat_depth >= 2){//only test sub-subcats+
$path_ids = explode('_',$path);
$path_parent = $path_ids[count($path_ids)-2];
if (!in_array($path_parent,explode('_',$_GET['cPath']))) $skip_cat = 1;//show only subcats w parent in $cPath
}
} elseif ($cPath_top == $path_top or $path_top == '84') {//full tree
}
} else {//if not active test for level
$test_level = 1;
}
break;
if ($cat_depth >= 2)