Graphical theme mod needed $$
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
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. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
Very nice! What must I do to install it? -Greg |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
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 |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
What about the theme file? Don't I need a modified tpl file? -Greg |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
This is known as embedding. Gallery lets the embedding page set the header and footer, so you basically only get the content. The sample I gave uses the matrix theme. So no, no need to edit any tpl unless you have other needs. -s |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
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 -Greg You can see it at http://www.theveonline.com/g/gallery2/photo_gallery.php |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
This embed does not alter the album's settings. It will display whatever theme you have set for your albums. -s |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
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
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
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. -s |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
Thanks, yes, I would like to try your carbon css. |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
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 |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
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
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
only the templates(tpl) get picked up in local directories -s |
|
Greg Forseth
Joined: 2009-02-09
Posts: 9 |
![]() |
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
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
You can set defaults for each theme in Admin -> Themes I suggest you roam around your gallery a bit and learn some of the functionality. -s |
|