Hacking Piwigo

piwigo_org_logo
Piwigo Logo

Here is a semi-sequential account of events over the last couple of months (squeezed in when I have a spare moment) that have resulted in piwigo.mixedbredie.net.

Install PhpWebGallery in test (2009)
Install Piwigo in test (2010)
Go back to Gallery2
Install Gallery3 in test (2010)
Tire of lack of nice themes in Gallery3 even after some tweaking.
Go back to piwigo and update and move from test to live site
Add some themes.
Add some plugins.
Read the documentation and then head to the forums where there are threads for plugins and themes. Get used to french people writing technical stuff in English.
(note to self: learn French hahahhahahaa ha ha)

Making the changes:
Choose a theme that works and looks like you want it (mostly) to look.
Start mangling it. The Local-Files editor is your friend allowing you to make local changes to templates, CSS and configuration files that overrule the default options.
Realise I can make a child theme just using a theme.css and config-inc.php in a “my-theme” directory.
Change the background colour
Change the body text colour
Change the link colour
Change the link hover colour
Change colour of different elements in the page
Add a header image
Creating and using custom template files
Changing size of thumbnails > regenerate thumbnails plugin by p@t – Set this to 286 x 286

I had to hack some more CSS style rules together in order to get the look I was after.  I shamelessly copied this from www.fotolobia.com where the Turkish designer has done a far better job than I have.

digiKam splash
digiKam splash

Meanwhile, running in parallel to this there is the continuing development of digikam that seems to advance at a rate that most linux distros can’t keep up with.  The latest stable version of digikam is always at least one, maybe two or three, versions ahead of what is available in the repositories.  I use linux mint 10 with the K Desktop Environment (KDE 4.6.5) and my desktop tends to be used for managing photos with digiKam and editing photos with GIMP.

Trying to keep the desktop updated so that the latest digiKam will run has dissolved into an arms race between the linux mint maintainers, the digiKam developers and the end users of both communities. Some distros update the “stable” version of KDE quicker than others and others custom package digiKam.  An alternative is to compile it yourself.  This is a whole week of fun all by itself and when I am done I’ll put the procedure up here.  Some others have already done this and I am working from their scripts.

Which Web Gallery?

One of the reasons for setting up a server and website was to put some of our thousands of pictures on display in some sort of online gallery.  Agent Smith introduced me to Gallery1 and 2 way back when we was young and fit.  Gallery 2 has been serving up my pictures for about 5 years now and Agent Smith’s gallery installation is probably closer to 10 years old.

The venerable Gallery2 now has a younger sibling – Gallery3.  I had a beta install on my test site for a while but it seemed a bit clunky and non-functional.  The full Gallery3 release is much improved on the beta and there is the start of a plugin and theme base from which to choose style and function.

I have a couple of other installations of PHP/MYSQL web gallery applications on my test site and one that I considered using a couple of years ago was PHPWebGallery.  This has now become Piwigo and is much enhanced.

So I now have three live web galleries – Piwigo, Gallery3 and Gallery2.  Which one do I use?

At the moment Piwigo only integrates with WordPress via a plugin (PiwigoPress) that displays some thumbnails and links in the sidebar.  Clicking a link takes you to the Piwigo gallery site.  You can see the plugin working at the bottom of my sidebar on the right.  It would be nice if there was some sort of lightbox effect available.

Gallery3 has a WordPress plugin called “heiv Gallery3” and allows you to embed an image from your new Gallery3 installation within a WordPress post or page.  The image contains a link to the image within the gallery.  Some sort of lightbox effect would be nice too.
[hgallery3 id=”21″ show_caroussel=”true” text_caroussel=”Image” height=”60″ width=”80″ direct_link=”true” timed=”true” delay=”5000″ info_pane=”true”]

Gallery2 uses the WPG2 plugin to embed images in WordPress posts and pages and there is a drive to try and create a similar plugin for Gallery3.

I think I’ll keep all three running and tinker with them a bit more before making up my mind.