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,970
  • Latest: bynw
Stats
  • Total Posts: 196,046
  • Total Topics: 21,335
  • Online today: 319
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 188
  • Total: 188

how to disable members from collapsing left/ right panels?

Started by cru, August 06, 2007, 03:08:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ronlx2


Ravenlord

Quote from: IchBinâ,,¢ on August 11, 2007, 04:36:28 PM
<search for>
...
</search for>
<remove>
...
</remove>
Sorry for the bump of an old topic, but i just started working with the SMF and i experienced some probs with how i want the page and the board to look.

My System is like that:

Your Joomla version is: 1.0.13
Your SMF version is: 1.1.4
Your Joomla-SMF version: 2.0.2.1

On SMF i use "Alienation11final" as theme.
The bridge is configured to wrap the board. User stats and information is shown inside the login-component of joomla, so i don't need the sidebox with all that stuff.

If i use the modification from here, the menu will always be unshrinked. I want to hide the menu for everyone and for ever. But it seems i don't have enough knowledge to do it myself. Any hints?

IchBin

What do you mean by "hide the menu for everyone and for ever"? Never have it display? Totally get rid of it? Just turn the block off.

peterjc

I try to remove the code already and it work perfectly.  The button is disappear.  And i remove the javascript too.

The only problem is i try this.  When the right bar is shrinked, and i remove all the button code include the javascript, and i refresh my page, the right bar will never show up again. 

what is the problem?

thank.

IchBin

The cookie has already been set. As I stated in my other topic that is a side affect of this happening. You might be able to add this code to your index.template.php in the right where you removed the javascript.
$options['collapse_leftbar'] = false;

kc8pnd

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: 2px 2ex;" border="0" /></a><img id="upshrinkTempLeftbar" src="', $settings['images_url'], '/blank.gif" alt="" style="margin-right: 0ex;" />';
         if($context['TPortal']['rightbar'])
             echo '<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;" />';


to completely get rid of the images

This website is proudly hosted on Crocweb Cloud Website Hosting.