TinyPortal

Development => Support => Topic started by: pomeid on June 04, 2006, 03:29:51 AM

Title: Disable collapse function? (entire column)
Post by: pomeid on June 04, 2006, 03:29:51 AM
Hi all :)

How to disable collapse function of a entire column, not a block?

Thanks and regards.
Title: Re: Disable collapse function? (entire column)
Post by: IchBin on June 04, 2006, 05:03:37 AM
You'll have to go into the index.template.php file and manually remove the code.

Just look for something similar to this code:
             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: 0px 0px 20px 0px;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
Title: Re: Disable collapse function? (entire column)
Post by: Ianedres on November 28, 2006, 08:48:07 AM
Quote from: IchBinâââ,¬Å¾Ã,¢ on June 04, 2006, 05:03:37 AM
You'll have to go into the index.template.php file and manually remove the code.

So there is no other method than this to disable column-collapses? This would affect every displayed page through the portal, correct?
Title: Re: Disable collapse function? (entire column)
Post by: Techdomain on November 28, 2006, 09:23:27 AM
yes - that is right. You could possibly just remove the code to display the upshrink too though??
Title: Re: Disable collapse function? (entire column)
Post by: Ianedres on November 28, 2006, 09:33:32 AM
Quote from: JRW on November 28, 2006, 09:23:27 AM
yes - that is right. You could possibly just remove the code to display the upshrink too though??

I could see this as a feature-request in future versions, in that certain items allow or disallow the columns to be collapsed, perhaps based on permissions and/or paid-advertisement areas.

Still, I'm so very impressed with TP and SMF as well. I'm up late trying to intergrate it all at once, and make one large swap from phpBB2 and no portal.

Thanks for the quick reply!
Title: Re: Disable collapse function? (entire column)
Post by: Techdomain on November 28, 2006, 10:19:54 AM
No worries. That is one thing that I have always been happy with here - the speed and quality of reply when you have a drama is excellent.
Title: Re: Disable collapse function? (entire column)
Post by: IchBin on November 28, 2006, 08:30:31 PM
Quote from: tim antley on November 28, 2006, 09:33:32 AM
I could see this as a feature-request in future versions, in that certain items allow or disallow the columns to be collapsed, perhaps based on permissions and/or paid-advertisement areas.
You can already do this. You can select where you want a block to show by choosing an action from the drop downs or display for a certain article. In an article you can choose whether to display the left or rightbars.
Title: Re: Disable collapse function? (entire column)
Post by: Techdomain on November 28, 2006, 10:11:24 PM
But he wants it so you cannot collapse the sidebar
Title: Re: Disable collapse function? (entire column)
Post by: Ianedres on December 01, 2006, 04:28:09 AM
I managed to do this by editing line #685 & #687 (using Windows EDIT) of index.template.php where I inserted "//" at the beginning of each line.

Search for "leftbar" and "rightbar" near the end of the file; it merely comments those lines out of the code, and you can easily restore to the original code.

Still, I would love to see this be displayed via permissions-based option set in the admin panel. Currently, I set a block to display a rotating banner (via phpMyNewAds) which I would rather guests be required to view, and regular visitors be able to collapse the column.
Title: Re: Disable collapse function? (entire column)
Post by: anunlike on December 01, 2006, 05:29:40 AM
I read this topic and went ahead and threw this suggestion out to Bloc with a few others I had.

If anyone wants to give their own, improve on these or whatever, feel more than free.

Random Block Suggestions (http://www.tinyportal.net/smf/index.php?topic=10941.0)
Title: Re: Disable collapse function? (entire column)
Post by: Coldfx on December 04, 2006, 01:24:23 AM
Quote from: anunlike on December 01, 2006, 05:29:40 AM
I read this topic and went ahead and threw this suggestion out to Bloc with a few others I had.

If anyone wants to give their own, improve on these or whatever, feel more than free.

Random Block Suggestions (http://www.tinyportal.net/smf/index.php?topic=10941.0)

Shouldn't it be "Bloc Suggestions", since you're referring to Bloc?
Title: Re: Disable collapse function? (entire column)
Post by: iwyen on December 18, 2006, 04:22:26 PM
Hmm.. blocks as in those blocks on the left, right and center bars :D Random suggestions to improve the block functions.