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,965
  • Latest: boruko
Stats
  • Total Posts: 195,980
  • Total Topics: 21,320
  • Online today: 281
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 303
  • Total: 303

Make visible only specific shrink panel buttons

Started by leftezi, August 04, 2011, 12:52:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

leftezi

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).

ZarPrime

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

leftezi

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.

ZarPrime

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

leftezi

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. ;)

ZarPrime

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

leftezi

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

leftezi

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.

This website is proudly hosted on Crocweb Cloud Website Hosting.