News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMF 1.1.5 Collapse Header & InfoCenter By Default For Guests & Members

Started by karlbenson, May 01, 2008, 08:17:28 PM

Previous topic - Next topic

biggbigg

For 2.02 you can simply change  the 'false'    'true'   options to be both  'true'     'true'   Bolded them below in the code.



<script type="text/javascript"><!-- // --><![CDATA[
var oMainHeaderToggle = new smc_Toggle({
bToggleEnabled: true,
bCurrentlyCollapsed: ', empty($options['collapse_header']) ? 'true' : 'true', ',                                    <-  TRUE TRUE HERE INSTEAD OF FALSE TRUE
aSwappableContainers: [
\'upper_section\'
],
aSwapImages: [
{
sId: \'upshrink\',
srcExpanded: smf_images_url + \'/upshrink.png\',
altExpanded: ', JavaScriptEscape($txt['upshrink_description']), ',
srcCollapsed: smf_images_url + \'/upshrink2.png\',
altCollapsed: ', JavaScriptEscape($txt['upshrink_description']), '
}
],
oThemeOptions: {
bUseThemeSettings: ', $context['user']['is_guest'] ? 'true' : 'true', ',                                          <-       <-  TRUE TRUE HERE INSTEAD OF FALSE TRUE
sOptionName: \'collapse_header\',
sSessionVar: ', JavaScriptEscape($context['session_var']), ',
sSessionId: ', JavaScriptEscape($context['session_id']), '
},







Realinfo

in 2.0.7

I want default "Shrink header for Guests" while "Expand Header for members"

Please guide

Kindred

1- do not double post - you resurrected this ancient thread AND posted in support.
2- Given that you have removed the SMF copyright (which is legally allowed) we basically have chosen to not provide support to such sites - since, by removing the copyright, you have essentially stated that you do not need support from us.

(and you have removed the simple portal copyright - which is typically NOT allowed)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: