TinyPortal

Development => Support => Topic started by: leftezi on August 04, 2011, 12:52:04 PM

Title: Make visible only specific shrink panel buttons
Post by: leftezi on August 04, 2011, 12:52:04 PM
SMF version: SMF 2.0
TP version: TP 1RC2
Default Forum Language: Greek
Link to my site: "e-kapnisma.gr"
Theme name and version: Default
Browser Name and Version: Firefox 5.0
Mods installed:
TinyPortal 1.104
Bookmarks 2.3
Ad Managment 3.0.1
YouTube BBCode 2.6
Export Personal Messages 1.3.4
Join date and Location in Posts 1.2
Related Error messages:

Is there a way to modify something an make visible only the left shrink panel button?
There are three buttons visible now to shrink panels (left, center, bottom).
Title: Re: Make visible only specific shrink panel buttons
Post by: ZarPrime on August 04, 2011, 03:34:46 PM
Hello leftezi,

Welcome back to the TP Support Site.

In TinyPortal General Settings (SITE/index.php?action=tpadmin;sa=settings), there is an option to "Allow the panels to be collapsed?".  This is an all or nothing option.  Selecting "No" for this option will remove the upshrinks for all panels.  As far as I know, there is no way to do this on a per panel basis.  Another Team Member may know of a way to do this that I am not aware of.  In other words, it's all or nothing, as far as I know.

ZarPrime
Title: Re: Make visible only specific shrink panel buttons
Post by: leftezi on August 04, 2011, 03:41:37 PM
Thank you.
Yeah! I saw this. But maybe is a good option to include in the next update.

Only through file manipulation is it possible. Maybe some one can help.
Title: Re: Make visible only specific shrink panel buttons
Post by: ZarPrime on August 04, 2011, 04:01:39 PM
You should have access to the bugtracker where you can put in a Feature Request for TP2.  If you can't seem to put in the request there, let me know.  The link is here --> http://www.tinyportal.net/index.php?project=1;area=issues

ZarPrime
Title: Re: Make visible only specific shrink panel buttons
Post by: leftezi on August 04, 2011, 11:17:29 PM
I putted a request there.   O0
Just for now i don't want to have three options, one for each panel. I know this is not easy to do.
I only ask if someone can help me to erase the other two buttons and hold only the left panel shrink button.
This should be not very hard to do. ;)
Title: Re: Make visible only specific shrink panel buttons
Post by: ZarPrime on August 05, 2011, 05:17:49 PM
Quote from: leftezi on August 04, 2011, 12:52:04 PM
There are three buttons visible now to shrink panels (left, center, bottom).

Just as a side note, this is because those are the only panels that you have blocks in.  If you had blocks in the top, lower, or right panel, you'd have 3 more buttons.  Center is the same as the upper panel.

ZarPrime
Title: Re: Make visible only specific shrink panel buttons
Post by: leftezi on August 05, 2011, 05:55:23 PM
Yeah! Right.
i had only three panels, that's why a was writing for only three buttons.  ;D

But i still looking for someone who knows how to delete the buttons that i don't want to be visible.
Somewhere in some file should be some code to change or to delete!!  ;D
Title: Re: Make visible only specific shrink panel buttons
Post by: leftezi on August 06, 2011, 03:23:53 AM
Found it:  :D

in file "TPortal.php"

Find:
$panels = array('Left', 'Right', 'Center', 'Top', 'Bottom', 'Lower');

replace with:
$panels = array('Left');

This makes only the left shrink button visible.