Gallery2 Integration & H kits

I guess I haven’t done any leisure hacking for so long that I found working on my site really appealing 🙂

I’ve gotten much further along with embedding Gallery2. A week ago I couldn’t decide whether I wanna go with Coppermine or Gallery2. The main objection to Gallery2 was the lack of an open comment system; but then I thought may be I can integrate the WordPress comment system into Gallery2! What a messy concept… but I decided to go with it.

The idea is I’d associate an album to a WP page. I doubt I really want a per-image commenting ability of coppermine, in particular I want all the comments to be grouped in one place (ok so I don’t really get a whole lot of comments, but I am not one to be deterred by such details 😉 ) . I chose Gallery2 over Coppermine mainly because it has an extremely nice array of methods to upload & construct galleries. I can even create the galleries on my PC and then upload them in the right hierarchy to my server with the Gallery Remote application! This beats uploading via ftp and then use the web interface to create new albums ala Coppermine.

Anyway, it went ok with the WPG2 plugin integration, which was a breeze. But the main stumbling block was the commenting system – I simply have no way of associating a WP page ID with an album. The Gallery2 API didn’t expose the details of an album, so I can’t associate a WP ID to it. Anyway after a few hours of crash and burn I found a way using mod rewrite to do its job… phew. So may be now I’ll start reconstructing my gallery – this time with a real interface 😀

The first kit I’ll upload however is a 3-figure H diorama that I finished before I went on hacking. I haven’t done any H kits for so long, I’m fixing that with a full dosage 🙂 For that, I also implemented some sort of adult check thingy. Coming soon!

3 comments

  1. I see you’ve gotten rid of the annoying popup! Cool!

    I feel your pain. When I was tinkering with Drupal a while back, I wanted to get a gallery integrated, and there were several forum posts and replies from both the Drupal people and Menalto’s Gallery people about it. The trouble was, G2 couldn’t share users, and the gallery uploads (from me) were tough to get into the daily stories. Drupal, not being a blog, was also a bit top heavy for what I wanted so I abandoned the project.

    Needless to say, most Linux apps like G2 and WordPress, and their chief help desk people, are working at a feverish pace to get the code corrected for all these integrations. I assume you’ve copy/pasted some code from G2?

    Anyway, I’m glad to hear that you’ve gotten much closer to satisfied with G2. I liked the interface and cross platform power myself, but since I don’t own a website anymore, my tinkering days are on hiatus.

  2. Yeah, I don’t know whether the popup is theme specific or what, but there’s no easy way to turn it off other than editing the theme. I hope themes work better in WordPress than phpBB, which means as long as you don’t touch the core code you’re safe for the next upgrade.

    I think I’m lucky that when I began tinkering with G2, the latest version rolled out (2.1). Together with an upgraded WordPress/G2 bridge module, it’s relatively painless to have G2 share the templates of WordPress. I did look at the G2 code to see if I needed to copy & paste some in so that I can grab some G2 album data, but with the way I’m doing it right now there is no need for that.
    There’s more aesthetic work on the integration, mainly because I still have different G2 and WP themes, and the comment areas are unreadable 🙁 CSS are great until your styles collide like crazy!

  3. The bridge writers sometimes only write for specific releases of the parent app. This means that you find those integration questions flooding their forums. Frustrating!

    But you’re getting there. Every day I pop in and things look better.

Leave a Reply