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,966
  • Latest: safir45
Stats
  • Total Posts: 195,991
  • Total Topics: 21,323
  • Online today: 545
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 307
  • Total: 308
  • @rjen

Disable collapse function? (entire column)

Started by pomeid, June 04, 2006, 03:29:51 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pomeid

Hi all :)

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

Thanks and regards.

IchBin

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;" />';

Ianedres

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?

Techdomain

yes - that is right. You could possibly just remove the code to display the upshrink too though??

Ianedres

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!

Techdomain

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.

IchBin

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.

Techdomain

But he wants it so you cannot collapse the sidebar

Ianedres

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.

anunlike

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

This website is proudly hosted on Crocweb Cloud Website Hosting.