Theme Change

m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Thu, 2009-07-02 11:12

Would it be possible to move the gBreadcrumbs into gmenu

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2009-07-02 13:28

I would create a new theme and then customize it.
You can move the code about in header.html.php

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Thu, 2009-07-02 23:43

Thnks just about to dive in the deep end!!

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Fri, 2009-07-03 01:49

well I have had a look at the header.php where I found the code that creates the links to each gallery.

Quote:
<?= $theme->header_bottom() ?>

<? if (!empty($parents)): ?>
<ul class="gBreadcrumbs">
<? foreach ($parents as $parent): ?>
<li>
<a href="<?= url::site("albums/{$parent->id}?show=$item->id") ?>">
<?= p::clean($parent->title) ?>
</a>
</li>
<? endforeach ?>
<li class="active"><?= p::clean($item->title) ?></li>
</ul>
<? endif ?>

But the dropdown menu boxes are in a different php file : gallery_menu.php.
I have managed to work out how the menu structure works and have a new menu item called gallery.

Quote:
$menu->append(Menu::factory("dialog")
->id("gallery")
->label(t("Gallery"))
->url(url::site("Some link to code etc")));

The problem is how to translate the first portion of code into the menu php so that the dropdown gallery menu creates submenu's correctly labled on the fly.
From what I have seen on this php page the menu's and submenu's are written indervidually.
location of this page is modules/gallery/controllers/
I am going to look around on kohanaphp to see if there are any hints to this problem.http://dev.kohanaphp.com/

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2009-07-12 15:52

I'm a little confused about what you're aiming for here. Can you make an HTML mockup of it so that we can see where you're heading? I can help you with the transformation to use the Menu class.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Sun, 2009-07-12 20:50

Basically I had the simple forum installed on G2 and wanted to move it away from the top bradcrumb where your accoun and login is.
I want to restrict acces to the forum to photographers and have it hidden from registered users.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-07-13 02:12

I'm still not really following what you want. A screenshot or simple mockup would help considerably here.
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
Redafvir

Joined: 2009-07-13
Posts: 3
Posted: Mon, 2009-07-13 19:41

I thought I'd slot this question sneakily into this post to keep the Forum tidier, it's very much related.

I've been fiddling around with the CSS and the header.html.php trying to make the height go from 48 -> 120. As you can see my new header-logo and background are a little all over the place due to the images being over twice the height of the Header table (The menu is also halfway up the box).

So how would I change the height of the Header box? Any help appreciated. Searching the forum/wiki and asking in the IRC didn't get me any answers. I do feel a little silly asking about something so minor but I've been trying to fix it for about 2 hours now.

Cheers,
- Redafvir (a very code inept writer)

Update: Fixed it. It was simply an issue with the padding and my updated image size!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2009-07-13 19:50

Redafvir: want to post details about what you did for others to learn from?
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!

 
Redafvir

Joined: 2009-07-13
Posts: 3
Posted: Mon, 2009-07-13 22:02
Quote:
 
Redafvir

Joined: 2009-07-13
Posts: 3
Posted: Mon, 2009-07-13 22:38
bharat wrote:
Redafvir: want to post details about what you did for others to learn from?

Heh heh, I appear to have gotten too carried away with personalising the theme that I forgot to be helpful. One thing you should know is that as well as being a very incompetant novice coder I'm also brand new to using Gallery. I decided to roll with the G3 beta to share my learning process; though, I'm having to search everything I type to avoid stating the obvious. Perhaps I should keep my observations to myself.

To change the height of the Header in Themes/Default(or your Theme)/css/screen.css

Look for:

#gHeader {
  background-color: #e8e8e8;
  border-bottom: 1px solid #fff;
  font-size: .8em;
  margin-bottom: 1em;
  padding: 1em 20px 0 20px;
  }

And add in a "height: 145px;" or whichever you desire. I then had to play around with the padding to get it to fit correctly, 0.5em did the trick. Would that be the correct method? Here's the result: http://outofmana.co.uk/neonrelapse/archive/index.php/ (WIP)

From what I've read this is a different method to G2, isn't it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-07-13 22:18

That's a blank post. Did you mean to post something?

scratch that, seem to have been browsing right when you were doing that. :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
m3lvm

Joined: 2009-06-17
Posts: 49
Posted: Mon, 2009-07-20 21:03

Look in the theme folder select the theme you want to change edit the theme.tpl

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2009-07-20 21:09

Not in G3. The tpl files are gone. Smarty is gone. It's hopefully much easier.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here