Graphical theme mod needed $$

Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Wed, 2009-02-11 22:16

I recently installed Gallery2 and have it up and running with no problems. What I'm concerned about is how to modify a theme so that it will include graphical elements all around the content. I built a site that has an area in the middle where I display all the content. All around it are graphics that border the content, making it look very clean and tight. http://www.theveonline.com/photo_gallery.htm

The problem is, I can't seem to figure out how to get Gallery2 to display in the center (white area) of my website. I'm not fussy about which theme is used, anything simple would be fine with me. I'm fairly sure that I can handle tweaking it once the layout issue is solved.

If anyone has a moment to take a look at the site, I'd really appreciate it. I'm new to Gallery and would also consider paying for a working example that would solve the layout issue and allow me to move on to configuring the Gallery content soon.

Greg

To get an idea of what I'm talking about, please take a look at the site.
http://www.theveonline.com/photo_gallery.htm

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-02-11 22:37
 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Thu, 2009-02-12 02:01

Very nice! What must I do to install it?

-Greg

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-02-12 02:15

rename to photo_gallery.php edit lines 3 & 4 to reflect your setup, upload to your gallery2 directory, and point your browser to it.

its heavily commented throughout.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Fri, 2009-02-13 17:57

What about the theme file? Don't I need a modified tpl file?

-Greg

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2009-02-13 18:35

This is known as embedding. Gallery lets the embedding page set the header and footer, so you basically only get the content.
My site uses the carbon theme - I stripped out all the dark background color in the theme's css.
Carbon has a hidden sidebar which leaves more room for the content. But its a matter of preference.

The sample I gave uses the matrix theme.

So no, no need to edit any tpl unless you have other needs.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Fri, 2009-02-13 20:44

The first screen looks good when it comes up, but if you click on one of the photos it slips into what looks like the Ajaxian theme. My gallery is located in "/g/gallery2/" directory. I tried putting that directory into lines 3 & 4 as you instructed, but got errors. I put line 3 back to its default and it now at least runs, but changes into a different theme if Album 1 is clicked.

require_once ('embed.php'); // Path to Gallery's embed.php
$ret = GalleryEmbed::init( array ('g2Uri'=>'/g/gallery2/', 'embedUri'=>'/g/gallery2/photo_gallery.php', 'fullInit'=>'false'));

-Greg

You can see it at http://www.theveonline.com/g/gallery2/photo_gallery.php

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Fri, 2009-02-13 21:02

This embed does not alter the album's settings. It will display whatever theme you have set for your albums.
Go back to the root album /g/gallery2/main.php?g2_itemId=7 and edit album -> theme and check the box for "Use this theme in all subalbums"
So all albums use the same theme.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Mon, 2009-02-16 19:34

Thank you for all your help. It's up and running in my layout and looks pretty nice. I have a couple questions, though. Considering the limited space I have to work with, is it possible to control the default sizes of the thumbnail images for the Album & photos within? I thought I saw a setting for it but have gone through all the Admin settings and wasn't able to locate it again.

Also, when the thumbnail for an image is clicked, the image displays full size and totally blows the layout. Is it possible to have it display in a popup window or in a new browser window?

And last, can the size or location of the sidebar be changed?

-Greg

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-02-16 20:44

Thumbnail and perferred image size settings are album independent. Edit Album

There are many posts in these forums requesting "open in new window", try searching.

Most visitors have no business in the sidebar, try a theme with a hidden sidebar like carbon.
My site uses carbon with the dark background color removed. If you would like my carbon css let me know.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Mon, 2009-02-16 21:00

Thanks, yes, I would like to try your carbon css.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-02-16 21:14
 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-02-16 21:16

You may also want to edit /gallery2/themes/carbon/templates/local/theme.tpl <-copy the original here - and remove the gallery logos (sorry guys).

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Mon, 2009-02-16 23:03

Are there other settings that would be overriding the background colors set in theme.css? I made simple background color changes in the Carbon theme.css file and put it in the /local directory as detailed in the help docs, but no changes can be seen. And yes, I did flush the cache... several times.

I also tried the css file you provided and also saw no difference.

-Greg

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-02-16 23:13

only the templates(tpl) get picked up in local directories
leave the css in the theme's root directory.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
Greg Forseth

Joined: 2009-02-09
Posts: 9
Posted: Thu, 2009-02-19 19:12

In the Carbon theme, when looking at a photo in an album, the rest of the photos in the album are represented as tiny thumbnails to the right of the photo currently being viewed. My question is, how much control do I have over their layout? I noticed that it will arrange them 4 to a row, which is one too long for my layout. Is there a parameter that I can change to limit each row to only 3 thumbnails?

-Greg

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2009-02-19 19:43

You can set defaults for each theme in Admin -> Themes
Also each album can override the global theme settings in Edit Album -> Theme.

I suggest you roam around your gallery a bit and learn some of the functionality.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2