remove right sidebar when open gallery2 admin page

gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Thu, 2010-08-12 12:54

How to disable right sidebar when I open gallery2 admin page?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Thu, 2010-08-12 22:03

Right sidebar? There's only a left sidebar. Unless you're talking about some other theme that I'm not thinking about. Wonder what theme that might be though.

In Matrix, the sidebar is on the left.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Fri, 2010-08-13 06:05

No not gallery2 sidebar, but themes sidebar. I'm using zen sub theme, but gallery2 admin page is too wide for me and wirh css when I make ir smaller, then it is too small for me. So I need remove themes right sidebar. As gallery2 link is index.php?...... is not working like ir needed when disable block in block section, maybe is other sollutions?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Fri, 2010-08-13 13:10

Ah, I didn't realize this was for an embedded Gallery. The only way I know of doing that is to access Gallery directly, which sounds like you can't do. That's probably because you have the "embed only" option set. Open config.php and edit this line to show false

$gallery->setConfig('mode.embed.only', true);

Change to this:
$gallery->setConfig('mode.embed.only', false);

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2010-08-13 13:36
Quote:
Change to this:
$gallery->setConfig('mode.embed.only', false);

it should always be false, gallery fumbles some url building when that is true.

in your theme, you can test for admin page type:

{if !$theme.pageType == 'admin'}
    {g->theme include="sidebar.tpl"}
{/if}

you could also hide other page elements w/ a little javascript on admin pages:

{if $theme.pageType == 'admin'}
    {literal}
        <script>
            document.getElementById('my_element').style.display = '';
        </script>
    {/literal}
{/if}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Mon, 2010-08-16 11:52

I already have it false. I dont need to hide admin panel or something else from gallery2, I need to hide drupal node right sidebar when I open gallery2 admin page. Under block section I cant hide because gallery admin page starts with index.php......

 
gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Mon, 2010-08-16 12:26

is there some solution

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-16 12:28

I already told you the solution.
you could also hide other page elements w/ a little javascript on admin pages:

{if $theme.pageType == 'admin'}
    {literal}
        <script>
            document.getElementById('my_element').style.display = '';
        </script>
    {/literal}
{/if}

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Mon, 2010-08-16 13:51

How do I use this script/ Im beginner ;(

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2010-08-16 14:22

Place it in gallery2/themes/your_theme/templates/local/theme.tpl <-you may have to copy the original here.
Just before </body>

Since you have not provided a link to your site, I cannot suggest what to replace 'my_element' with. But it would be the id of the DOM element you want to hide.
And depending on the layout you could have to adjust float, or margin... again not sure without seeing the page layout.
And if your site is using jQuery, the scripting could be simpler.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
gkazhus

Joined: 2010-08-05
Posts: 19
Posted: Tue, 2010-08-17 10:46

My testpage can be seen here http://swhsets.ls.lv/

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-08-17 12:03

You know that's just plain stupid.
How is an image of your top secret site supposed to allow me to gleam the DOM element that YOU need help hiding?
Have fun figuring out YOUR problem by yourself. Enough of my time wasted already.
unsubscribing.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2