I want some sideboxes to be restricted from showing in all categories and subcategories. I have found some information regarding restricting sideboxes from showing for specific pages, but not for all categories.

I have been trying to achieve this by inserting different conditional statements in the following location.

(includes/modules/sideboxes)

I don’t know what to modify in these statements to restrict the sideboxes from all categories. The different statements are show below:

if ($this_is_home_page) {
$show_reviews = true;
} else {
$show_reviews = false;
}

if ($show_reviews == true) {
Defalt Text
}

if (in_array($cPath,explode(",",'1'))) {
$show_reviews = true;
} else {
$show_reviews = false;
}

if ($show_reviews == true) {
}

If you wished to disable for the "contact us" and "terms & conditions":

if (in_array($current_page_base,explode(",",'contact_us,conditions')) ) {
$flag_disable_left = true;
}

If you wished to disable in category listings:

if (in_array($cPath,explode(",",'3,8')) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}

If you wished to disable in EZ-Pages:

if (in_array($ezpage_id,explode(",",'2,5'))) {
$flag_disable_right = true;
}