TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,973
  • Latest: NonStop
Stats
  • Total Posts: 196,234
  • Total Topics: 21,353
  • Online today: 565
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 218
  • Total: 218

Hide Header By Default?

Started by Xarcell, November 24, 2007, 03:12:51 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Xarcell

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.

Xarcell

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.

bloc

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.

Xarcell

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.