View Single Post
  #26  
Old 26 May 2009, 23:29
AlphaNation AlphaNation is offline
 
Join Date: May 2009
Originally Posted by ravyn View Post
Sometimes I will collapse boxes and as I return to the forum home page, they will remain collapsed, but the side menu boxes don't remember. They will either be open or closed depending on whether I have added the display:none thing in the style variable, but not dependant on whether I have opened or closed them before. Is there a reason for this?
There's 2 tricks to remember the state of a collapsed element.
1 - Using unique variables and the tricks involved in naming them.
2 - Some places require you to reference the GLOBAL to get the collapsed state from the cookie.

To do something like collapse a post.
Button:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Table:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Without using $GLOBALS['vbcollapse'], it won't get the information from the cookie.
Reply With Quote