Hi all :)
How to disable collapse function of a entire column, not a block?
Thanks and regards.
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;" />';
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?
yes - that is right. You could possibly just remove the code to display the upshrink too though??
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!
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.
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.
But he wants it so you cannot collapse the sidebar
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.
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)
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?
Hmm.. blocks as in those blocks on the left, right and center bars :D Random suggestions to improve the block functions.