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
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
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.
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.
See my post here: http://www.tinyportal.net/index.php?topic=5488.msg90398#msg90398
// 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
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?
No, their setting will still be the same and they will not be able to change it back without the button.
Thanks for the reply IchBin, I guess I better leave it alone if that is the case.
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.