Sorry for making a mountain out of a molehill! It's pretty simple

This bit will turn off the sidebox on all SSL pages

if ($request_type == 'SSL') {
$show_blank_sidebox = false;
}