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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,021
  • Total Topics: 21,332
  • Online today: 496
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 254
  • Total: 254

How I deactivated the switch Icons?

Started by MotMann, January 08, 2006, 02:50:30 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MotMann

How i can deactivated the switch icons, that user can switch of the left sidebar or the header?

Rasyr

In index.yemplate.php, look for the following code:



// TinyPortal
echo '<div align="center">';
         if($context['TPortal']['showtop'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" /> ';
         if($context['TPortal']['leftbar'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if($context['TPortal']['rightbar'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
// TinyPortal end

// Show the menu here, according to the menu sub template.

template_menu();
echo '</div>';



To turn off the ability to open and close the header and left bar, just comment out the approproate lines like so:



// TinyPortal
echo '<div align="center">';
  //       if($context['TPortal']['showtop'])
  //           echo '<a href="javascript:void(0);" onclick="shrinkHeader(!current_header); return false;"><img id="upshrink" src="', $settings['images_url'], '/', empty($options['collapse_header']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTemp" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 1ex;" /> ';
  //       if($context['TPortal']['leftbar'])
  //           echo '<a href="javascript:void(0);" onclick="shrinkHeaderLeftbar(!current_leftbar); return false;"><img id="upshrinkLeftbar" src="', $settings['images_url'], '/', empty($options['collapse_leftbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if($context['TPortal']['rightbar'])
             echo '<a href="javascript:void(0);" onclick="shrinkHeaderRightbar(!current_rightbar); return false;"><img id="upshrinkRightbar" src="', $settings['images_url'], '/', empty($options['collapse_rightbar']) ? 'upshrink.gif' : 'upshrink2.gif', '" alt="*" title="', $txt['upshrink_description'], '" style="margin: 2px 0;" border="0" /></a><img id="upshrinkTempRightbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
// TinyPortal end

// Show the menu here, according to the menu sub template.

template_menu();
echo '</div>';




MotMann

Öhm.... are the second code not the same as the first one?

Rasyr

In the second code block, there are 4 lines where I add "//" in front of the lines.

Those "//" comment out those lines. This means that the server will not see or execute them, thus the little icons for collapsing the top and sidebar will not show up. (Note: I did not comment out the two lines of code for the right side bar).


MotMann


borgBOB

I also believe in TPAdmin you can turn these side bars on and off.

Rasyr

Quote from: borgBOB on January 08, 2006, 05:31:29 PM
I also believe in TPAdmin you can turn these side bars on and off.
I was under the impression that he wanted the top and side blocks on, but not able to be hidden. (you can also turn off the top section as well in TPAdmin - the show user/news block option).


MotMann

Quote from: Rasyr on January 08, 2006, 07:38:13 PM
I was under the impression that he wanted the top and side blocks on, but not able to be hidden.
Yes.... :) Now the User can't switch the sidebars ore top off ... that's fine.

This website is proudly hosted on Crocweb Cloud Website Hosting.