TinyPortal

Development => Support => Topic started by: mrandall131 on March 12, 2009, 08:42:06 PM

Title: Turning off left / right bars in code?
Post by: mrandall131 on March 12, 2009, 08:42:06 PM
I just installed the beta 3 on my gaming clan's site.  Everything is running very smooth except for one thing.  In the code, I was able to shut off the left and right bars using...


  // Remove bars
    $context['TPortal']['rightbar'] = 0;
    $context['TPortal']['leftbar'] = 0;


For some reason, it doesn't turn the bars off now when I load the script.  Did these variables change?
Title: Re: Turning off left / right bars in code?
Post by: G6Cad on March 12, 2009, 09:42:11 PM
If you want to turn off the panels in some sections or actions in Beta3, all you have to do is add that action inside the panel settings page inside your tpadmin
Title: Re: Turning off left / right bars in code?
Post by: mrandall131 on March 12, 2009, 10:46:44 PM
Maybe I misspoke.... I added a menu item at the top of my site (i.e. the calendar item).  Inside that code (SMF coded source / template form), I put that code in the source file.  Before, it turned the left and right bar off, now it doesn't.

To see what I mean, click the Killing Authority link in my sig.  Then, click on forum and then "K A Lounge".  When I click the lounge link, I want the left and right bars off.
Title: Re: Turning off left / right bars in code?
Post by: Renegd98 on March 12, 2009, 11:01:28 PM
To fix this do the following:

ADMIN --> PANELS AND BLOCKS --> PANELS

You'll see an item with this: 

Hide panels when in custom actions:
type clan in there

that will hide the panels when you go to "K A Lounge", because the action is clan.
Title: Re: Turning off left / right bars in code?
Post by: mrandall131 on March 13, 2009, 02:18:39 AM
Thank you very much sir!  Perfect!
Title: Re: Turning off left / right bars in code?
Post by: G6Cad on March 13, 2009, 07:19:37 AM
Just what i said  ;)
Title: Re: Turning off left / right bars in code?
Post by: mrandall131 on March 13, 2009, 04:37:42 PM
Yeah, after the explanation for dummies that I needed, I realized that.  :uglystupid2: :2funny:
Title: Re: Turning off left / right bars in code?
Post by: Renegd98 on March 13, 2009, 04:58:08 PM
Quote from: mrandall131 on March 13, 2009, 04:37:42 PM
Yeah, after the explanation for dummies that I needed, I realized that.  :uglystupid2: :2funny:

LOL