TinyPortal
Development => Support => Topic started by: Xarcell on November 24, 2007, 03:12:51 PM
Does anyone know how to collapse the header(info center) by default?
I'm tried with no avail, and I've also been search SMF. All techniques seem to be outdated.
I found this:
In index.template.php
Find:
$options['collapse_header'] = !empty($_COOKIE['upshrink']);
Replace With:
$options['collapse_header'] = $_COOKIE['upshrink'] !== 0;
But it doesn't save it if you expand the header.
No, thats a flaw it in its routine, as it assumes the section to be expanded if no cookie is found. If there is one, regardless of its value, it assumes the section to be upshrinked. :P
It really needs improvement, but as many things I haven't been able to follow up on that.
Do you know where I can find a snippet or correction for it?
It's for the christmas theme contest. I need the header to be upshrinked by default.