The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How can I set a session variable?
I want to make a left column for navigation that is on every page of my site.
If my registered members click a button, I want the whole column to go away. If they close out of the window and load the forums again, I want the column to be there again. (like a php session) How can this be accomplished? |
#2
|
|||
|
|||
Quote:
Quote:
|
#3
|
|||
|
|||
Quote:
Also, whats the easiest way to set a cookie with you want an option via button? |
#4
|
|||
|
|||
Here is something I quickly wrote (not test yet)
Plugin: Sidebar Cookie Hook Location: global_start PHP Code: PHP Code:
HTML Code:
<if condition="$show['sidebar']"> </if> HTML Code:
?$session[sessionurl]do=hidesidebar |
#5
|
|||
|
|||
Thanks! Does execution order matter?
Also, do I need to change something here? Code:
?$session[sessionurl]do=hidesidebar Code:
forums/index.php?$session[sessionurl]do=hidesidebar |
#6
|
|||
|
|||
Quote:
{$vbulletin->options['bburl']}/index.php?$session[sessionurl]do=hidesidebar Also I found a slight bug in the code from taking a second peak: PHP Code:
PHP Code:
|
#7
|
|||
|
|||
Thanks!
Also, what template would I need to edit to put in a global left navigation bar? |
#8
|
|||
|
|||
I wouldn't be able to say, depends on your style. My guess would be the navbar or header template.
|
#9
|
|||
|
|||
Ok, so I've got my sidebar in and everything shows up great.
The only problem is I cant get the sidebar to go away when I click "Remove Sidebar" at the bottom of the sidebar http://www.gunzfactor.com/forums |
#10
|
||||
|
||||
Did you ever get this to work? I see on your forums that you are using this code, but I have to click the hide/show text 2x for it to work.
I can't even get it to do that using the above code?!? THANKS! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|