© 2005 jon

Porting Kubrick to Menalto Gallery

Over the past 2 busrides/night/day, i’ve managed to port kubrick over to gallery, for the most part. i did so because the “html_wrap” method was proving to be limited, and frustrating. While it’s not entirely fully to my satisfaction, but i think it’s a good start. For example, i’d like to be able to have full-sized images open in a separate popup window, but i think i may have to modify gallery code to do so, and am unwilling (trying to only touch the parts that i “can”).

i have it currently running gallery.smartbrother.org (click the “see kubrick” link for the default view), and the only thing you’ll have to do is upload your images to the skins/kubrick subdirectory of your gallery install to take advantage of it.

i used the “madmod” skin as a starting point, then i moved kubrick in.

i don’t think this sort of skinning is possible on gallery 1.4 but i may be mistaken. Meaning for now this will work on a development version only.

Here’s a zip file of the shebang, in its raw form. unzip it into your gallery/skins subdirectory, and modify to taste (or not). You’ll want to get kubrick from binary bonsai, to get the photoshop template, if you’re interested in further customizing it.

  • jon
    good stuff.

    i had seen photomatt's site, and had noted it in my head, then forgot it by the time i started trying to get my gallery in shape, although it didn't occur to me to view source and see that he was doing that!

    you've sent me on a quest at this point :)

    i want to do something that doesn't require hacking gallery (although the thought of forking gallery 1 has crossed my mind more than once -- would take so much time i don't have!), as to provide the easiest use and still provide an upgrade path

    and i want to do something that doesn't require a ton of time to wrangle (although perhaps given the time i've wrestled with this could have been better spent learning how to div up gallery?:)
  • harvey
    Have you checked out http://photomatt.net/photos/log/ ? He appears to have modified gallery to generate div style albums. I've been meaning to ask him how he did it, but as I'm just getting started with WordPress, CSS, and PHP, I thought I'd hold off until I knew more. There's another site based on whatever he did to gallery at http://curiousrose.com . My goal is to ultimately make gallery a part of my wordpress site like Matt has accomplished.
  • jon
    Hi! i have *only* gotten this to work with 1.5. I will download the latest nightly this weekend, however, and ensure that it still is working (that could be the problem, michael?)

    and yes, i got the same warnings too, when i use a nightly of gallery 1.5. There is only one problem that i discovered having with kubrick skin and 1.5 -- you can't get to the new "admin page". i think tha's a templating error however (it keeps redirecting to the albums page), particularly because i recall at some point it was fine.
  • Gour
    Hi!

    Any luck in getting kubrick to work with 1.5?

    Is there a chance that it can work with the latest stable, i.e. 1.4.4?

    I'm asking since I get warning that several files are missing/outdated when unpacked the current.gallery tarball.

    Sincerely,
    Gour
  • did you unzip into your [gallery_home]/skins directory, so you see the kubrick folder along with all the other included skins?


    Yep, it's listed in there right next ot the other skins, a folder named "kubrick" with 'bout the same contents as the others.

    did you make this folder writable by your webserver? the easiest is to do a

    chmod 755 kubrick

    in your skins subdirectory


    Did that. Even went in and did chmod -R 755 *

    you shouldn’t have to do anything to config.php.


    That was my work-around attempt as the configuration scripts wasn't listing it, I figured I'd try to set it manually.

    my initial guess is that its likely that the webserver can’t read the files.


    Hmm, my assumption too, just can't figure out why,/i> not.

    let me know if the above works/doesn’t work for you.


    These are the same steps I followed before, though I also tried chmod 644.

    i’ll try to remember to set up the permissions before archiving next go round.


    Thanks. Any further ideas would be appreciated too. I'd love to get my home page, gallery, & word press all using the same look.
  • jon
    couple things to (double) check:

    did you unzip into your [gallery_home]/skins directory, so you see the kubrick folder along with all the other included skins?

    did you make this folder writable by your webserver? the easiest is to do a

    chmod 755 kubrick

    in your skins subdirectory

    you shouldn't have to do anything to config.php.

    my initial guess is that its likely that the webserver can't read the files.

    let me know if the above works/doesn't work for you.

    i'll try to remember to set up the permissions before archiving next go round.
  • Hmm - I can't get kubrick to show up in my skin choices for 1.5. Dl'd, unzipped, un-tarred, everything looks good. Even when I edit it's name into config.php nothing shows up, I just dump to the default.

    Any ideas?
  • h0bbel
    I hadn't yet, I found it this morning and went straight to work. Duplicate headers/body tags would be a potential issue with Gallery 1.x, since it really wasn't designed from the ground up to be themeable at all.

    At least 1.5 adds a bit of flexibility that was lacking earlier.
  • jon
    i just fixed an issue someone noticed with duplicate body/head tags...you may want to grab it again if you have.

    j.
blog comments powered by Disqus