sidebar tweaking

javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Mon, 2007-10-29 02:43

Moving to wordpress here from the old CSS site here and I can't figure out the way to get the admin related sidebar info to show up.

Is there typically a place to include admin login? Is this controlled in the theme's theme.tpl file? I know you can only switch themes within admin menu.

If I've missed anything clear in documentation, could you point me there?

Thanks!

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-10-29 04:32

By Admin, you mean Site Admin??? Does your Wordpress User have Gallery2 Admin Rights??
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Mon, 2007-10-29 21:36

I'm not sure if we set that up, I'm admin on the wordpress site; how is that set upp, in gallery2, or wordpress?

I just checked, and it looks like I am...

here's a screenshot:
[img]http://www.greenpeas.us/media/1.jpg[/img]

 
javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Mon, 2007-10-29 21:48

OK... just figured it out, I was logged in as admin... not my user with G2 privs...
Thanks!!!

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-10-29 21:59

You have it set up correctly on the WP/WPG2 side. Now, we need to look at your G2 theme.

In gallery2/themes/your_theme_name/templates/, there should be a file called theme.tpl.

You should have something like this

	<div class="gbSystemLinks">
	  {g->block type="core.SystemLinks"
		    order="core.SiteAdmin core.YourAccount core.Login core.Logout"
		    othersAt=4}
	</div>

If not, try adding it. In the "Classic" theme, it's in the middle of this code:

      <div id="gsNavBar" class="gcBorder1">
	<div class="gbSystemLinks">
	  {g->block type="core.SystemLinks"
		    order="core.SiteAdmin core.YourAccount core.Login core.Logout"
		    othersAt=4}
	</div>

	<div class="gbBreadCrumb">
	  {g->block type="core.BreadCrumb"}
	</div>
      </div>

WPG2 will log you into G2 as an admin. The system links will show the Site Admin link, if you're logged into G2 as an admin, so once the above code is in your template file, you should be good to go.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Tue, 2007-10-30 14:36

OK, looks like we are good there.

One other thing... how exactly is the best way to remove most of the information in the actual gallery header area.

[img]http://www.greenpeas.us/media/gallery_spacing.jpg[/img]
I'd like to remove this area altogether (or at least have it at the bottom.)

Thanks again for your assistance!

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-10-30 14:52

You have to find it in the template files and move/remove it. Every theme is different in the way it lays out the template files, so it will vary from theme to theme.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Tue, 2007-10-30 15:15

Hi Capt Kirk,
Is there typically a place within the theme files that controls the header area?

I found the theme.css file listed:

* Sections
* body.gallery Page body in G2 standalone (doesn't apply to embedded)
* #gallery Page container
* #gsNavBar Top bar with breadcrumb and other links
* #gsSidebar Sidebar
* #gsContent Main content

Would this area be referred to as gsNavBar?
is this the only place this is referenced?

Thanks again!

 
ClimbingMonkey

Joined: 2005-03-18
Posts: 62
Posted: Wed, 2007-10-31 05:13

That CSS controls the look and feel of some of those header elements, but if you want to make them flat out go away you will have to modify the .tpl files as capt_kirk stated. If you look in your theme.tpl you will see some code like this:

<div id="gsHeader">
<a href="{g->url}"><img src="{g->url href="images/galleryLogo_sm.gif"}"
width="107" height="48" alt=""/></a>
</div>

<div id="gsNavBar" class="gcBorder1">
<div class="gbSystemLinks">
{g->block type="core.SystemLinks"
order="core.SiteAdmin core.YourAccount core.Login core.Logout"
othersAt=4}
</div>

<div class="gbBreadCrumb">
{g->block type="core.BreadCrumb"}
</div>
</div>

This is a good place to start, and don't forget to backup the original file in case you break something!

---------------------------------------------------
Wordpress / Gallery2 (WPG2) Developer
My Site: http://www.marcnjami.com/

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2007-10-31 21:51

The WordpressEmbedded Theme actually hides a lot of this type of information (you can see it in operation on my blog)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, WPG2 Downloads, WPG2 Documentation

 
javapop
javapop's picture

Joined: 2007-10-29
Posts: 31
Posted: Thu, 2007-11-01 14:03
ClimbingMonkey wrote:

<div id="gsHeader">
<a href="{g->url}"><img src="{g->url href="images/galleryLogo_sm.gif"}"
width="107" height="48" alt=""/></a>
</div>

I deleted the above info to get rid of the logo; but this is in the body area, at the top, I believe...