Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Topic started by: carpman on May 27, 2005, 07:23:39 AM

Title: set header upshrink default = up
Post by: carpman on May 27, 2005, 07:23:39 AM
Hello, how can i set the upshrink header setting to be default up?

I do not wish to use this feature so have removed icon and JS from index template but need it to default to up for all users!

cheers
Title: Re: set header upshrink default = up
Post by: [Unknown] on May 27, 2005, 12:15:10 PM
There are more than a couple ways, one would be modifying the template... find this:

// We'll have to use the cookie to remember the header...
if ($context['user']['is_guest'])
$options['collapse_header'] = !empty($_COOKIE['upshrink']);


Replace:

$options['collapse_header'] = true;

If you always want it collapsed.

-[Unknown]