TinyPortal

Development => Support => Topic started by: Protoman on December 16, 2006, 02:34:13 PM

Title: How can I remove this button permanently ?
Post by: Protoman on December 16, 2006, 02:34:13 PM
I need your helps, I ave setted up everything for my SMF but in a little trouble, how can I remove/delete this button permanently without affecting anything else (That button is very very annoying and I must delete it) :

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fi86.photobucket.com%2Falbums%2Fk118%2FProtoMan_03%2Fhelp.jpg&hash=5affeca5537358c0244e55dc4d005af6680b7bba)

Thank you very much. Please help me  :-X
Title: Re: How can I remove this button permanently ?
Post by: G6Cad on December 16, 2006, 02:43:17 PM
Look in your index.template.php for the shrick button action and comment it out with a // or /**/ that way you will stil have the code there in place in caase anything goes wrong or you want it back at some time
Title: Re: How can I remove this button permanently ?
Post by: IchBin on December 16, 2006, 05:16:09 PM
Assuming thats the right upshrink? Do you want the left and header as well?
Searching for upshrink or shrink in the file that G6 pointed out will lead you to the code for those buttons.
Title: Re: How can I remove this button permanently ?
Post by: Protoman on December 17, 2006, 03:38:28 AM
Can you tell me which code to be changed ? Seems I don't know how to remove it (I don't know which one control that button in the front page since I want it to be remained in the collapsible forum). Thank you.
Title: Re: How can I remove this button permanently ?
Post by: Ianedres on December 17, 2006, 04:59:22 AM
See my post here: http://www.tinyportal.net/index.php?topic=5488.msg90398#msg90398
Title: Re: How can I remove this button permanently ?
Post by: iwyen on December 18, 2006, 04:20:01 PM

// 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


LOL.. I just took it out for my new theme cos' I can't think of how to fit them in. But when I wanted to turn off one of the bars cos' I needed more space (w/o scrolling) I started missing them  :D
Title: Re: How can I remove this button permanently ?
Post by: OzExcalibur on January 21, 2007, 08:09:16 AM
If I remove the button to allow the sidebar to be collapsed will it affect people who already have set it to collapsed?

e.g. will it automatically reveret to not being being collapsed or are they stuck with it being collapsed?
Title: Re: How can I remove this button permanently ?
Post by: IchBin on January 22, 2007, 01:00:30 AM
No, their setting will still be the same and they will not be able to change it back without the button.
Title: Re: How can I remove this button permanently ?
Post by: OzExcalibur on January 22, 2007, 01:50:35 AM
Thanks for the reply IchBin, I guess I better leave it alone if that is the case.
Title: Re: How can I remove this button permanently ?
Post by: IchBin on January 22, 2007, 04:18:43 AM
I'm sure you could always get the code to reset everyones bars, but I haven't seen such a thing posted here before, nor do I know how to do it.