![]() |
Problem with setting a cookie variable with a hook!
I setup a sidebar for navigation on my forums. I want the sidebar to be removable if my users click a link at the bottom of the side bar. The sidebar works great, but if you click the "remove" link, nothing happens.
http://www.gunzfactor.com/forums Hook Name: "Sidebar Cookie" Hook Location: global_start Hook Code: Code:
$show['sidebar'] = true; The template conditional: HTML Code:
<if condition="$show['sidebar']"> </if> HTML Code:
{$vbulletin->options['bburl']}/index.php?$session[sessionurl]do=hidesidebar |
The following should work:
PHP Code:
|
Ok, I'm having problems, can anyone figure out how to get this to work with my "hide the sidebar" code....
I have this in my main template PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
All times are GMT. The time now is 08:58 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|