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: 639
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 212
  • Total: 212

How do I turn off this particular user function?

Started by sportsguy, May 18, 2007, 01:08:19 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sportsguy

OK, so I don't want users to be able to shrink the right sidebar I have installed.  How do I remove the little button thingie that allows them to shrink the right side blocks?

Been all through the TP settings, and didn't see any setting that looked able to disable this functionality.

Lesmond


sportsguy

Well, that search turned up an answer to another question I had, but had not asked, so that ws a bonus. :)  Thanks.

This link makes me think what I want to do it not possible.

tick

GO to edit in the block you want this to be this way in and check do not allow users to collapse box.

sportsguy

It's not a box I don't want them to be able to collapse - it's the entire right hand panel.  I'm fine with some of the boxes in the panel being able to shrink - that's up to the user, but the ads must stay visible, and so, the entire panel must not be collapsible...

tick


Lesmond

Quote from: sportsguy on May 18, 2007, 01:35:07 AM
This link makes me think what I want to do it not possible.
Yes I did see the post by Ichbin, I know you can remove or comment out some code in index.template.php, best way it to experiment with it, but make sure to do a backup first

sportsguy

#7
Tick - default theme

Lesmond - coolio

Anyone have a sample of the code I'm hunting handy?

sportsguy

OK - where do I find the code that handles this option - which file?

...and what does it look like so I can cut it out?

I need to get this done before I begin selling my ad space next week.

Thanks gang.

G6Cad

Try and comment this part of the code out in your index.template.php

With comment out i mean /* the code here */

middlebar1.'<div nowrap="nowrap" style="bar_name">';
// TinyPortal

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

        echo ' &nbsp;&nbsp;HIDE/SHOW</div>'.$middlebar2;


         echo $botbar.

This website is proudly hosted on Crocweb Cloud Website Hosting.