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,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 320
  • Total: 320

Disable that shrink(picture attached) !

Started by mariusfv, February 06, 2010, 10:43:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mariusfv

Hi to all !
I'm new here.
Can someone help to remove a shrink(picture attached).My forum is in test but when i open'it i don't want people to can hide from mistake or not left and right blocks.(for block i see is do not collapse)but for all i didn't find.
10x in advance !

P.S TP V.098 (i know is old version but a friend of mine recommanded that version)

ZarPrime

mariusfv,

Welcome to TinyPortal.

This feature has been standard in TinyPortal for quite awhile now but I can't recall when it was first added.  Unfortunately, I no longer have a TP 0.98 test site setup so I can't check it myself.  However, if it was in TP 0.98, you can find the setting here ...
Admin --> TinyPortal --> Settings and Frontpage --> General Settings --> Allow the panels to be collapsed? (yes/no)

I know it was in the first version of TP 1.0 but that may have been when it was first added.  If it isn't there, then you can try doing a search here for "disable collapse" or something like that and see what comes up because I know this question has been asked before.  If it wasn't a standard feature of TP 0.98, then you would have to edit a file to disable the panels.  That search should give you an answer.

In the meantime, if any of the TinyPortal Team or another member still has a TP 0.98 site setup and can check this for you, I'm sure they will let you know.  You'll just need to wait until one of them posts in this topic.

ZarPrime

mariusfv

Not find !
The only way on TP V.098 is admin->TP->Block Manager and edit each block and for each block is "Do not allow block to collapse" but for all blocks there isn't a setting.
Can tell me what file must to edit please ?
10x for your time !

mc

In the past, I've done it by editting the template file, to remove the code/script for the buttons.

From memory, it's the main_above template/function within index.template.php.

ZarPrime

#4
mariusfv,

OK, sorry this one took a little longer than usual to answer but I wanted to make sure that I was getting the right information before posting since I can no longer test this without installing TP 0.98 on a site to check it for myself.  MC, you are correct, an edit to the index.template.php file is required to make this happen.

Over the weekend, I spoke with a couple of the other TP Team members (Thanks Ichbin and Agridoc O0) about this issue and they gave me some insight on this, though I found the fix myself in an archived post by JPDeni from 2 years ago.

In the following post, JPDeni described what is necessary to remove the actual showing of the upshrink images.  The post is as follows ...
Quote from: JPDeni on January 21, 2007, 03:57:47 PM
In index.template.php file in your theme file, find


// TinyPortal
if($context['TPortal']['leftbar'])
             echo '<td style="padding-left: 1ex;"><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;" /></td>';
         if($context['TPortal']['rightbar'])
             echo '<td style="padding-left: 1ex;"><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;" /></td>';
// TinyPortal end


Put // in front of each line to disable the line.

According to Ichbin, you should be aware that doing this will mean that any of your members who have already collapsed the panels for some reason will no longer be able to expand them after you make this change.  According to Ichbin ...
Quote from: IchBinâ„¢ on February 08, 2010, 05:22:31 AM
Here fix only removes the icons that give you the option to upshrink. If someone already has them upshrinked, they will have no way to change the panel visibility. But yes, essentially that should work.

For this reason, before you do this, you should warn your members (maybe give them a weeks notice or so) that you will be disabling their ability to ever collapse or expand the panels and that if they want to ever see them again, they should do it now before you disable the feature.

mariusfv, allow me to give you a little advice here ...

Before deciding to do this you should seriously think about this.  Despite what your friend said about using TP 0.98 instead of the newest TinyPortal, TP 1.0 beta 4 is much more powerful and quite stable at this point despite the fact that it has a few bugs in it that can be fixed by you if needed.  TinyPortal 1.0 beta 5, which will work with both SMF 1.1.11 and SMF 2.0 RC2 is on the verge of a public release and the few bugs that were still in beta 4 have been fixed for beta 5.  If you are going to stick with TP 0.98 for now, that's fine but when beta 5 comes out I would take a good look at upgrading to the new version.  The reason I am saying this is because the Team has actually discussed the possibility of eventually phasing out support for TinyPortal 0.98 (essentially retiring it) at some point down the road once beta 5 is released.  This won't happen overnight, and nothing has yet been decided about this, but this is definitely something to be aware of.

ZarPrime

mc

Regarding the remaining hidden, there are two options for a permanent fix.

The settings that store whether the sidebars are shown for each user, are stored in the smf_themes table, under the variables, tpcollapse_rightbar, and tpcollapse_leftbar. Once the code buttons are hidden, you could manually update the database to alter the value for all occurences of those variables.

The other option is to further modify index.template.php, and remove the if statements that control whether the side bars are shown/hidden.


I had the issue when I updated to beta4, and realised that the sidebars could no longer be locked via the admin panel.

This website is proudly hosted on Crocweb Cloud Website Hosting.