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
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.
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!
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
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
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
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
Posts: 27300
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
Posts: 49
Thnks just about to dive in the deep end!!
Posts: 49
well I have had a look at the header.php where I found the code that creates the links to each gallery.
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.
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/
Posts: 7994
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!
Posts: 49
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.
Posts: 7994
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!
Posts: 3
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!
Posts: 7994
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!
Posts: 3
Posts: 3
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
incompetantnovice 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:
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?
Posts: 16504
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
Posts: 49
Look in the theme folder select the theme you want to change edit the theme.tpl
Posts: 16504
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