$show['sidebar'] = true;if ($_REQUEST['do'] == 'hidesidebar'){ vbsetcookie('hidesidebar', 1, true);}$vbulletin->input->clean_gpc('c', 'hidesidebar', 'TYPE_INT');if ($vbulletin->GPC['hidesidebar'] = 1){ $show['sidebar'] = false;}
<if condition="$show['sidebar']"> </if>
?$session[sessionurl]do=hidesidebar