In a response to an ongoing discussion at Binary Bonsai, I decided to implement Gallery 2 for Kubrick. Estimated time: 30 minutes. This is not Vanilla Kubrick, this is my bastardized version, I just copy-pasted most of the plain HTML and made sure all the CSS was in the CSS file. Reason being, { and } are “smart tags” in Gallery 2. Ok, so let’s go.
First of all, Gallery 2 CVS as of today. Get it.
Now, if people would like me to post my modified files, do leave a comment (can’t be bothered if no-one cares ) And, unless other licenses forbid it (i.e, GPL kicks in), all files will be under the standard two-clause BSD license.
Ok, here we go: Copy templates/global.tpl to templates/global.tpl.local and edit the local-file. I ripped out all except for {include file=”gallery:`$main.viewHeadFile`“ l10Domain=$main.viewL10Domain} and {include file=”gallery:`$main.viewBodyFile`“ l10Domain=$main.viewL10Domain}. You can view variables with a tag like this: {$main.viewBodyFile }.
Next file up, layouts/matrix/templates/albumBody.tpl that again is copied to albumBody.tpl.local and after you’ve edited that one you may want to edit singleBody.tpl for the full-size pictures, sidebar.tpl for options and pathbar.tpl for the breadcrums. Not too much of a hassle, really. I think Gallery 2 is coming somewhere. But then again, I would love to see this streamlined into one file as with WordPress. Oh well, I’ve got in half an hour a Kubrick-like Gallery 2 implementation. Now for the tweaking…. (you see from the heading how bad I am with colours and layout )
I’ll definetly need to read Using VST/VSTi Plugins In Linux when I’ll want to do the same for FreeBSD. Just reinstalling 5.3BETA3 on my laptop to make it my power music-station. Yeah, it’s still the 400 Mhz thingy.
Did the first Americans come from Australia? Not through Sibir from Asia, not the Vikings with Leif Erikson and certainly not Columbus.
Paul Lamere can tell about a robotic barkeeper that will serve you a drink at a spoken request, and tell jokes while it’s making them. I’m hoping that version two can juggle the bottles, make recommendations, improvise new drinks depending on the users, eh, customers mood and send drinks to the girl in that sparkling red top. And of course, I expect it to pass all sanetary tests. How often do you wash your hands, little robot?
Follow Me
Follow me online and join a conversation