TinyPortal

Development => Resources => Topic started by: uniektekniek on January 27, 2010, 03:40:04 AM

Title: Collapsed Header as default
Post by: uniektekniek on January 27, 2010, 03:40:04 AM
im using the default theme and im just wondering where i'd find the code to set the header to collapsed when the page loads... like when you click it opens rather than closes..
Title: Re: Collapsed Header as default
Post by: IchBin on January 27, 2010, 04:19:57 AM
If the theme is not saving the header upshrink it sounds like you have a different problem. When you shrink the header, it should not expand when you reload the page or go to another page.

If that is not your problem, then I would suggest a search at SMF since it was the default theme you're asking about. :)
http://www.simplemachines.org/community/index.php?topic=237013.0
Title: Re: Collapsed Header as default
Post by: uniektekniek on January 27, 2010, 04:21:41 AM
thank you
Title: Re: Collapsed Header as default
Post by: shane is my name on April 13, 2010, 09:49:36 PM
I was looking to do the same thing a few days ago, and someone in the forum gave me this tip... it works...

go into the index.template.php,  Find the collapse_header section in there and just reverse the false / true like below: 
empty($options['collapse_header']) ? 'true' : 'false