Theme: Cainlevy (Matrix-based)

cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Fri, 2005-10-28 03:37

Yeah, ok, so it's not a very original name.

With this theme I took Matrix and tried to simplify it without losing its flexibility. My primary task was to group areas visually, so I ended up marking off three sections of a page: the sidebar, the item header, and the main content. Hopefully these three sections are now easier to scan.

I also simplified the navigation. The page numbers are gone, and the back/forward links have a more prominent position. Still one or two issues there I haven't looked into (I wish "next" didn't disappear on the 2nd to last page), but yeah. Before I made this change I was watching someone use my website, and the mouse cursor roamed around the page for a bit before finding the navigation links. Hopefully people that don't use computers often will find the navigation better now.

I appreciate feedback! There are some modules I never tested/themed, so I'm not sure how they'll operate. Let me know...

Theme file: http://gallery.cainlevy.net/themes/cainlevy.zip
Preview site: http://gallery.cainlevy.net

changelog
1.0.1
-added options for displaying view counts on albums or photos
1.0.2
-added option for displaying page numbers in albums
1.0.3
-migrated the theme to Gallery 2.1

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sun, 2005-10-30 06:40

If you want to share you theme for all to use, feel free to register on the Codex and add your theme to the User Contribution page: http://codex.gallery2.org/index.php/Gallery2:UserContributions

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

 
BebopBlues
BebopBlues's picture

Joined: 2005-11-09
Posts: 9
Posted: Wed, 2005-11-09 04:24

Just trying Gallery 2 for the first time with your Cainlevy theme. So far, really good looking theme, good job.

 
BebopBlues
BebopBlues's picture

Joined: 2005-11-09
Posts: 9
Posted: Wed, 2005-11-09 09:11

Found a problem with this theme. Album frame doesn't apply to a sub album for some reason. Basically, I set the global album frame to Spiral Notebook, then created an Album, then a sub album under it, both using global settings. The Spiral Notebook shows up in the main album, but not in the sub album. Any ideas why?

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Wed, 2005-11-09 16:40

Huh. I'm trying to think why that might happen, but can't figure it out. I just tried creating more albums, three deep, on my site, and they all inherited the Spiral Notebook. I even tried changing one of them to another imageframe, but the sub-album still had Spiral Notebook.

One thing to check: on the new album, the one that isn't using the album frame, check the Theme settings and see if the "Use Global" checkbox is checked for Album Frame. I'm guessing it's not, but I don't know how that could be.

Oh, and you already know this, but Cowboy Bebop is awesome. :)

 
BebopBlues
BebopBlues's picture

Joined: 2005-11-09
Posts: 9
Posted: Wed, 2005-11-09 22:22

Ok, I figured out why. The root "Gallery" album settings wasn't set to use global, so thats why it wasn't working. Sub Albums now have correct global album frames.

One more question, what do I need to do to get that Album or Directory structure you have on left side panel of your Gallery?

And yes, Cowboy Bebop is awesome.

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Thu, 2005-11-10 01:28

Ah, for that tree structure you'll want to install the Album Select Block.

Here're my settings for it:
* Sort albums by title
x Connect tree branches with lines
x Show folder icons

Then, edit the default theme blocks (Site Admin -> Themes -> Cainlevy -> Blocks to show in sidebar) to include "Album quick links (DHTML)". And voila!

I've noticed sometimes that if you edit the title of an album, the title in the album selection tree might not update for a bit. Looks like some performance caching.

 
michaelkent

Joined: 2005-11-10
Posts: 5
Posted: Fri, 2005-11-11 19:03

Great theme, simple and attractive.

One question though, I can't seem to get counters to display on the album or picture pages, they display fine on the random image block on the sidebar.

Counters display fine with the default theme.

TIA

Michael

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2005-11-12 00:16

Thanks. :)

You mean view counters? I'll admit I cut them out completely, without researching how to make it configurable. Turns out it's not that hard to make it configurable, so if you download and upgrade to 1.0.1 (available at the same download location), you'll find that there're two new settings for showing view counts on albums and photos (or, more precisely, non-albums).

When I tested the upgrade on my own website, G2 made me go through the show-stopping upgrade process. Maybe if you don't have Cainlevy on your root album, you can do the album from Site Admin ... my guess is that G2 didn't want to touch v1.0.1 without upgrading, and it couldn't use the Site Admin page without using the theme, so it used the main upgrader.

 
michaelkent

Joined: 2005-11-10
Posts: 5
Posted: Sat, 2005-11-12 00:58

Now that's what I call service!!
I've upgraded the theme, with the aid of G2 - it was quite painless really. Works a treat, many thanks for taking the time to do this for me.

If your interested the gallery is at http://www.bletchley-reunion.org.uk/gallery2
I put it up a few days ago as a place for photos from a class 25 year reunion, so I'm still finding my way around the Gallery config etc.

Thanks again

Michael

 
eMax

Joined: 2003-07-09
Posts: 13
Posted: Sat, 2005-11-12 19:17

Any idea how to add the page numbers back to each album?

[1], [2], [3] (so if you had 10 pages it would show what page your on)

eMax Hosting, LLC - Reliable, Gallery Compatible, Web Hosting Services

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2005-11-12 19:32

@michaelkent: Looks good, if I say so myself. :)

@eMax: The page numbers are something else I cut out for simplicity. If I made 'em optional, where would you want them to appear? Maybe right above the other paging buttons, and centered?

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2005-11-12 20:07

Ah, went ahead and made another update. Version 1.0.2 (available at same download link above) now includes optional page numbers. They're supposed to appear inbetween the prev/next links, but the CSS that does it makes me suspicious, so let me know if it looks misaligned or otherwise funky.

 
michaelkent

Joined: 2005-11-10
Posts: 5
Posted: Sat, 2005-11-12 21:08

Looks fine with IE but it's on the line above and on the right of the page with Firefox.

I will leave it on for you to look at. (screenshot now attached in case you don't have Firefox.

Michael

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2005-11-12 22:51

Michael, you normally use Firefox? It's possible that FF cached it from previously ... try refreshing the page to get the new .css file. I just tested in FF, and refreshing fixed it for me.

 
michaelkent

Joined: 2005-11-10
Posts: 5
Posted: Sun, 2005-11-13 00:30

Must have done. I've rebooted the PC since then and it works a treat now :)

 
Hillhiker

Joined: 2005-11-22
Posts: 7
Posted: Tue, 2005-11-22 06:03

speaking of alignment... the chainlevy.net logo in the upper right hand corner at 169x99 pix... I was wondering how or where one would insert the code to move it to the center of the header area and what the code would look like... I can make it bigger or smaller, left or right but can not center a 600x120 pix logo... TIA

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Tue, 2005-11-22 07:26

You'll want to open up templates/theme.tpl in the cainlevy theme directory and play around with the table structure that begins on line 31. I personally find alignment obscure at best with straight css, but within a table cell horizontal and vertical alignment is well supported.

One hint you might find useful is for centering an object on the horizontal axis by using a css declaration like "margin-left: auto; margin-right: auto;". Other than that, I can't say exactly what you should do.

Maybe you could post your changes here in case other people are also interested in this modification?

 
blw91126

Joined: 2004-11-12
Posts: 81
Posted: Sat, 2005-11-26 23:52

cainlevy,

Can you tell me where and what files you had to change to get the pages numbers to appear at the
top of your albums (once your inside an album).

I'd like my page numbers to appear up top like yours only to the left like they are at the bottom..

thanks
brett

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sun, 2005-11-27 02:27

In templates/album.tpl, I added:

        {if (!empty($theme.jumpRange) && $theme.params.showPager)}
        <div id="gsPages" class="gbBlock">
          {g->block type="core.Pager"}
        </div>
        {/if}

then used theme.css to move the div around where I wanted it.

 
eMax

Joined: 2003-07-09
Posts: 13
Posted: Tue, 2005-11-29 14:23

Seems your site is down as I'm unable to download the new theme. Thank you for the new update. I'll try back later.

eMax Hosting, LLC - Reliable, Gallery Compatible, Web Hosting Services

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Tue, 2005-11-29 18:20

Site should be back up ... Qwest decided, as part of my package upgrade, to disconnect my DSL this morning. Hooray for poorly-considered corporate procedures!

 
vincent1020

Joined: 2003-11-03
Posts: 19
Posted: Tue, 2005-12-20 06:07

I switched the color scheme to "Black". But some of the texts changed to white. This made many of the text can't be seen. How to change the text color?

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Tue, 2005-12-20 07:05

Hmm, black color scheme. I hadn't tried different color packs before, but I just did, and it certainly doesn't look good. If you wanted to adapt the Cainlevy theme for another color pack you'd need to edit the pictures I use to make rounded corners. I can provide my .xcf (GIMP) file if you're interested.

To fix the text color would be a bit of work. Have you used CSS before? I can tell you generally what needs to be done (you'll want to edit gallery/themes/cainlevy/theme.css). But this theme really just isn't color pack friendly.

 
vincent1020

Joined: 2003-11-03
Posts: 19
Posted: Tue, 2005-12-20 07:22

Thanks Cainlevy. I didn't use CSS before. I really want to fix it, can you kindly give me some advise.

 
vincent1020

Joined: 2003-11-03
Posts: 19
Posted: Tue, 2005-12-20 08:12

Or if changing the text color is too complicated, can we just change the background color to from white to dartk grey, just like the Matrix theme.

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Tue, 2005-12-20 17:08

Alright, let's see. Again, all of these changes are in gallery/themes/cainlevy/theme.css.

If you want to just change the background color from white to dark grey, then around line 154, change the line that says background-color: #fff; to something like background-color: #333;. Or take that line out completely. This is the easier change to make, but it messes up some images that assume a white background.

To change the text, go to the same area (around line 154) and add a new line that says color: #000;. Or, for a dark grey, maybe color: #555;. You'll notice now that it changed the text color for more than the white area ... it changed the text color for every element that is nested inside the white area, even if the nested element is black or grey. So now the fun part is figuring out what all of those nested elements are, and fixing the text color for them, too. That part will take some investigation.

 
mupf3l

Joined: 2003-09-29
Posts: 31
Posted: Sun, 2006-02-26 19:52

Are you going to provide an update to the 2.1RC1 G2 Version?

 
jlana

Joined: 2006-02-27
Posts: 3
Posted: Mon, 2006-02-27 10:59
cainlevy wrote:
Huh. I'm trying to think why that might happen, but can't figure it out. I just tried creating more albums, three deep, on my site, and they all inherited the Spiral Notebook. I even tried changing one of them to another imageframe, but the sub-album still had Spiral Notebook.

One thing to check: on the new album, the one that isn't using the album frame, check the Theme settings and see if the "Use Global" checkbox is checked for Album Frame. I'm guessing it's not, but I don't know how that could be.

Oh, and you already know this, but Cowboy Bebop is awesome. :)

Hmm, I just installed this theme for the Gallery2 and I can't get the album frames working - there's no "Album Frame" option to check under the Theme settings at all :(

EDIT: Oops ok, I just had to activate the imageframe-module ;D

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2006-03-04 01:38

Yep. I'll take a look at it this weekend. Maybe tonight...

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Wed, 2006-03-08 04:21
mupf3l wrote:
Are you going to provide an update to the 2.1RC1 G2 Version?

Version 1.0.3 now works with G2.1. You can download this version directly at the link below. Once G2.1 final releases, I'll update the main download link up above to use the 1.0.3 version.

G2.1 Theme file: http://www.cainlevy.net/gallery/themes/cainlevy-1.0.3.zip

 
The_Linguist
The_Linguist's picture

Joined: 2004-04-03
Posts: 16
Posted: Sat, 2007-03-03 11:18
cainlevy wrote:
Version 1.0.3 now works with G2.1. You can download this version directly at the link below. Once G2.1 final releases, I'll update the main download link up above to use the 1.0.3 version.

G2.1 Theme file: http://www.cainlevy.net/gallery/themes/cainlevy-1.0.3.zip

I would really like to use your theme but the download url gives a 404.

EFL Geek

Site5 Hosting

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Sat, 2007-03-03 19:53

Thanks for the heads-up. I just now fixed the issue and updated the url in the first post. Oh, wait, it's still slightly wrong. One more quick edit coming up ...

Available @ http://gallery.cainlevy.net/themes/cainlevy.zip

 
BebopBlues
BebopBlues's picture

Joined: 2005-11-09
Posts: 9
Posted: Mon, 2007-05-07 21:55

Hi, I just updated to the latest Gallery 2.2.1 and the Cainlevy 1.0.3 theme is not compatible. The Gallery works but all Site Admin options are broken. I can't even change the theme back to default. Is there another way to change the theme besides through Site Admin > Themes?

Edit: I just followed this direction and got the default Matrix theme to load, so just now waiting for cainlevy to update his theme to work with Gallery 2.2.1. :)

Quote:
I have changed the default theme and nothing works anymore. How can I switch back?

Use phpmyadmin / your mysql shell to execute the following query to change the default theme back to the matrix theme:

UPDATE g2_PluginParameterMap SET g_parameterValue = 'matrix'
WHERE g_pluginType = 'module' AND g_pluginId = 'core' AND g_parameterName = 'default.theme';

Afterwards, delete the db cache by browsing to http://example.com/gallery2/lib/support/, enter your password, click there on cache management and delete the db and template cache. Of course you need to replace example.com/gallery2/ with the actual address of your Gallery.

 
cainlevy

Joined: 2005-09-21
Posts: 60
Posted: Mon, 2007-05-07 23:48

so, uh, is anyone interested in updating the theme? i'm actually moving to flickr, and have no plans to continue maintaining the skin. if anyone's interested i can send the latest .zip file.

 
BebopBlues
BebopBlues's picture

Joined: 2005-11-09
Posts: 9
Posted: Tue, 2007-05-08 00:34

I just discovered some major issues after the upgrade, seems too many problems with Gallery. I might move to Flickr or Picasa Web Album too.

 
Arthur P.

Joined: 2008-07-20
Posts: 3
Posted: Sun, 2008-07-20 08:46

Seemingly http://gallery.cainlevy.net no longer exists, so no place to preview or download this theme.