Header text,Search,View Count, Modules
klinion
Joined: 2009-02-26
Posts: 180 |
Posted: Tue, 2009-08-25 21:10 |
Hi. Think gallery 3 is magic. Will give feedback in right place. Don't know much about the creation process but have been trying to create a simple theme for myself. www.talkingwalk.com/gallery3/ will find it. Four questions I hope can be answered. Many, Many Thanks, |
|
Posts: 16504
1) There isn't much documentation for themes right now, but you can just copy the default one into a different directory.
Example:
/themes/MyTheme
You can then edit /themes/MyTheme/theme.info to give your theme a unique name, description, etc
Edit /themes/MyTheme/views/page.html.php to start changing the layout of the page
2) No idea
3) Right now, you'd need to edit the database
4) Not sure
Are you using the latest experimental version? http://codex.gallery2.org/Gallery3:Upgrading
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 27300
There is a bug / sql limitation that short words don't get searched, perhaps this is related: http://sourceforge.net/apps/trac/gallery/ticket/618
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 180
Thanks for the quick replies and info.Regarding
1. Header text. You suggest editing /themes/MyTheme/views/page.html.php. Can find it but not a clue where to start. Any help?
2. Easy to keep the letters/number at 4+ so. solved thanks.
3. View counts. I'll keep hidden. Don't fancy messing with a database yet.
4. Disappearing modules in dashboard. Haven't disappeared, the background has turned white. Haven't found where to change it back and no idea why it happened. Which file is it in please,
Many thanks,
Ken
Posts: 16504
sorry, should have looked closer. To change the logo that's actually specified in views/header.html.php and that will allow you to change the other header text if you're talking about the stuff in <head> for the HTML. If not, please post a screen shot of stuff you want to change, highlighted.
For your view counts, yes, easiest to just hide them with CSS
For the disappearing modules, have you changed CSS code? Could you PM me login details and I can take a look at the part, or you can use Firefox with Firebug to dig into that pretty easily.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 180
Thanks nivekiam
Modules problem solved. Firebug is some tool but not helped with the header. Have changed the logo in views/header.html.php. What I wish to do is create a largish text header at the top of the page to the right of the logo. Can get it to pick up header text from the dashboard theme options and put it alongside the logo but cannot find anywhere I can adjust font size/color or to be able to position the text in the header. Doesn't seem possible in views/header.html.php and I have found nowhere else to edit. Hope I make some sense, Ken
Posts: 16504
Hmmm. It does look like that text is buried inside the gHeader div so you could do some formatting through CSS. But there's not specific span to be able to directly address just that text.
NOTE: The theme layout/system underwent some pretty big changes this past weekend. header.html.php and footer.html.php are no longer around. They've been combined into just page.html.php. This will hopefully make things a bit easier. Now the entire page is skeleton is in one file.
I think the place you're going to have the most control over that is in page.html.php
Then you can place your text in a div or span and address it with CSS from there.
To get the latest code: http://codex.gallery2.org/Gallery3:Upgrading
And for a tutorial on how to clone/copy an existing theme to start from there: http://codex.gallery2.org/Gallery3:Tutorials:Themes
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 16504
o.k. playing around with this a bit more. Looks like editing the header text (in the latest version of G3) replaces the logo and anything else. So you should be able to type in HTML (divs and all) to create a custom header there. Yep, just tested with <b>test</b> and that works.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 180
Magic, never thought of that, thanks a lot. Now I need to learn how to write this stuff. I presume I can write into the header text box telling it what size and sort of text and the color needed. Then how to position it. An enormous learning curve this.
What I must do is put on this forum how I got to where I'm at with the site as it's been great using other folks discoveries and the support from nivekiam,
Thanks,
Ken