how to add custom stuff to main root page

teortega

Joined: 2008-01-31
Posts: 4
Posted: Fri, 2008-02-15 04:48

(1) I would like to change "this is your main page of your gallery" and the word "Gallery" above it from my main web page. I referred to the docs of "how to add custome... main root page" yet I can't find rootId in the theme.inc. I'm changed my theme to carbon today and I'm using the latest Gallery. (2) How can I also contract someone for additional help with simple changes to my main web page?
thanks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 22890
Posted: Fri, 2008-02-15 05:27

G1 or G2?
You posted in the G1 forums but G1 does not have

Quote:
"this is your main page of your gallery"

1) If G2 then documentation -> quickstart guide, config root album.

@custom stuff (if G2): http://codex.gallery2.org/Gallery2:Themes:Reference:Variables#Page_specific_info

2) Yourself, documents, forums.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
teortega

Joined: 2008-01-31
Posts: 4
Posted: Fri, 2008-02-15 21:06

Awesome documentation! Now I know how to search through it too.
Thanks!

 
Flatfoot

Joined: 2009-12-07
Posts: 17
Posted: Mon, 2009-12-07 22:50

Hi. I hope someone is still reading this forum. I need help. I've searched the help and forum, and these two links

( http://codex.gallery2.org/Gallery2:How_to_add_custom_stuff_on_main_root_page and http://gallery.menalto.com/node/70763#comment-255788 )

SEEMED like they would do what I want, but it's not working. Let me explain:

The root album is empty. When users log in they are taken to their album(s). So far so good. BUT ... the root album always shows the message "This album is empty". I thought that by following the instructions in the two links above, that my own custom message would appear, but it doesn't.

I've tried deleting the template cache, reloading the pages, etc. But I always get "This album is empty". To see what I mean go here:

http://www.chrisibbeson.com/gallery2/

Any ideas on how I can add a custom message here???

Thanks,
-Chris

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-12-07 23:12

To change that message you'll need to edit /themes/YourTheme/templates/local/album.tpl

copy /themes/YourTheme/templates/album.tpl into a folder named local
http://codex.gallery2.org/Gallery2:Editing_Templates

Make the changes there, you should be able to find that text in that file.

You're seeing that message because nothing is visible to the Everybody group. It appears all of your users set their permissions so that only registered users can see them or the parent album you have the user's albums set to be in is set like that.

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

 
Flatfoot

Joined: 2009-12-07
Posts: 17
Posted: Mon, 2009-12-07 23:26

Nivekiam,

Yes, you're absolutely correct on the permissions aspect. I hadn't even thought of that. Ok - I'll try copying the album.tpl file to the local subfolder and see what happens. I'll keep you posted. Thanks for the quick reply!

-Flatfoot

 
Flatfoot

Joined: 2009-12-07
Posts: 17
Posted: Mon, 2009-12-07 23:34

Nivekiam,

Wow, I messed something up. I copied my album.tpl into a local folder under the templates folder. Now, not only do I not see any difference in the message, I've lost my custom logo! Man, this stuff is SO confusing - all these template files, .inc files, etc...

I'm going to take a break and try again tomorrow. I'm getting way too frustrated. :)

Thanks for your help.

-Flatfoot

 
Flatfoot

Joined: 2009-12-07
Posts: 17
Posted: Mon, 2009-12-07 23:40

Ahh!! Got my custom message. Guess I ALSO had to make a local sub-folder for the theme.inc file. That seemed to do it.

Now I need to figure out what happened to my logo, though....

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-12-07 23:48

@ theme.inc, nope. That's only ever read from /themes/YourTheme/. Gallery never looks in a "local" folder for that. You may have just needed to clear your cache:
FAQ: How can I clear cached data?

@ logo, edit theme.tpl (copy to the templates/local folder and edit that)

You can see that it's looking for images/galleryLogo_sm.gif
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16503
Posted: Mon, 2009-12-07 23:48

See this for the logo too:
http://codex.gallery2.org/Gallery2:How_to_Add_Custom_Banner_or_Remove_Gallery_Logo
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
Flatfoot

Joined: 2009-12-07
Posts: 17
Posted: Tue, 2009-12-08 14:55

Wow. Thanks so much for all your help. I got the message working, and I know I'll get the logo back. Thanks again!
-Flatfoot