|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
I try to made a new add-on and cannot find out how to disable the right sidebar if it on. I use the sample.inc.php script to play a little bit with it. It should be very easy to do, but how?
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
Only show right column on portal page?
under Portal layout - this should then disable within threads.
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
I mean from a script, not by user settig.
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
This will remove it for everyone including you. (assuming you do not enable the portal)
Confused as to what you require - sorry.
Maybe I am just reading your initial post incorrectly.
|
|
|
|
Joined: Aug 2006
Posts: 1,649 Likes: 1
Pooh-Bah
|
Pooh-Bah
Joined: Aug 2006
Posts: 1,649 Likes: 1 |
I think he means that IF his script dictates, it'd replace the sidebar, ELSE the sidebar remains... one or the other takes up that space.
GangsterBB.NET (Ver. 7.6.1.1) PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54 2007 Content Rulez Contest - Hon Mention UBB.classic 6.7.2 - RIP
|
|
|
|
Joined: Jun 2006
Posts: 956
Old Hand
|
Old Hand
Joined: Jun 2006
Posts: 956 |
I create a new Add-On like the chat room add-on. It based on scripts/sample.inc.php If you open this add-on I like to remove the right sidebar (if it turned on by default or user) for this page only independent from the user layout setting to get more space to the right.
Now, do you understand what I like to get?
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
Ah - ok. My apologies.
On this, I would prefer an easy way to include or disable sidebars (in your case) on particular pages without using the wrapper.
|
|
|
|
Joined: Jun 2006
Posts: 3,839 Likes: 1
Carpal Tunnel
|
Carpal Tunnel
Joined: Jun 2006
Posts: 3,839 Likes: 1 |
Sorry - and no I do not know how to disable it on just one page (I thought you wanted it disabled, whilst you test it - sorry)
|
|
|
1 members (Larry Miller),
102
guests, and
160
robots. |
Key:
Admin,
Global Mod,
Mod
|
|
|
|
|