TinyPortal

Development => Support => Topic started by: Xarcell on November 24, 2007, 03:12:51 PM

Title: Hide Header By Default?
Post 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.
Title: Re: Hide Header By Default?
Post by: Xarcell on November 24, 2007, 03:45:17 PM
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.
Title: Re: Hide Header By Default?
Post by: bloc on November 24, 2007, 08:41:38 PM
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.
Title: Re: Hide Header By Default?
Post by: Xarcell on November 24, 2007, 10:59:43 PM
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.