rc 2.0 curve default shrink expand arrow beside smf logo area removal

Started by eyo, January 01, 2011, 06:37:48 PM

Previous topic - Next topic

eyo

how can i remove this and just leave that whole area expanded permanently? thanks

Robert.

Open index.template.php
Delete this:
   // the upshrink image, right-floated
   echo '
         <img id="upshrink" src="', $settings['images_url'], '/upshrink.png" alt="*" title="', $txt['upshrink_description'], '" style="display: none;" />';

and this:
   // Define the upper_section toggle in JavaScript.
   echo '
      <script type="text/javascript"><!-- // --><![CDATA[
         var oMainHeaderToggle = new smc_Toggle({
            bToggleEnabled: true,
            bCurrentlyCollapsed: ', empty($options['collapse_header']) ? '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'] ? 'false' : 'true', ',
               sOptionName: \'collapse_header\',
               sSessionVar: ', JavaScriptEscape($context['session_var']), ',
               sSessionId: ', JavaScriptEscape($context['session_id']), '
            },
            oCookieOptions: {
               bUseCookie: ', $context['user']['is_guest'] ? 'true' : 'false', ',
               sCookieName: \'upshrink\'
            }
         });
      // ]]></script>';

Good luck :)

eyo

when you say "good luck" it makes me think twice about removing this now lol

cicka

Quote from: eyo on January 03, 2011, 10:17:19 AM
when you say "good luck" it makes me think twice about removing this now lol

Why are you afraid? In the wors case all you will have is a template error which can be easily fixed by uploading back a backup of the file from before you edit it.

But after taking a look at the code I do not think you will run into errors. It looks ok to me.

Advertisement: