Modifying 2532|Gigs App

This is the second time I have installed the 2532|Gigs app for a band website. header"2532|Gigs is a php/SQL gig lister designed for bands, venues and music sites alike. The web based Control Panel allows users to add, edit and delete shows and artists. Support for multiple artists as well as multiple users." Unfortunately, it has not been updated since 1/28/08, and for all intents and purposes, seems to have been discontinued. However, I like the simplicity of the app, especially the “drop-in” PHP code that displays the gigs anywhere on your website. I’m a huge fan of not having to modify or create new theme templates. However, the app is lacking in several fundamental areas, so I had to modify 4 files and create 1 new file. Instead of listing each individual update that I made, which are numerous, I have created a zip file with the modified files that you may download.

Here are the changes I made to 2532|Gigs v1.2.2:

In the Admin > Manage Gigs page:

  • The checkboxes next to each artist are checked off by default. This helps when adding a new gig, especially if you only have 1 artist.
  • I have converted the INPUT field for Details to a text area. This will enlarge the Detail field so you can see more text on the screen.

On the front-end (show_gigs.php):

  • I created a separate column for Time.
  • I have removed the empty space preceding each field.
  • In the Details cell, I have colored the background beige, and made the font color black. This will make the Details cell stand out a bit more.
  • I created a new page called past_gigs.php and uploaded it to the same directory that show_gigs.php is in. This will allow a user to display past gigs in descending order. To display it, just use the same PHP drop-in code for the upcoming shows, except you replace the path to show_gigs.php with the path to past_gigs.php.

This is the listing of gigs that I created.

Plogger beta 3 Installation Tweaks

I just installed the Plogger application for one of my clients, and, as with most apps, had to make a few tweaks in order to get it working.  Plogger is a very basic open source PHP photo gallery.  If you need something with more functionality, I would suggest checking out the slew of other PHP Photo Galleries out there such as Gallery.  The reason I chose Plogger was its sheer simplicity for integrating the photo gallery into your website.  It is truly a “drop-in” app that requires only 3 PHP statements on your page.  The thumbnails, bread crumb nav, search bar, etc flows to fill any container width you have set.  No editing of PHP include files or complicated themes. However, I did struggle with 2 issues:

Issue #1: Clicking the image to bring up the actual enlarged image resulted in a 404 error.  The directory path was messed up.  Here’s how I fixed it:

Open ‘plog-functions.php’ and find the following code:

[code lang=”php”]
function plogger_get_source_picture_url() {
global $config;
return (!empty($config[‘allow_fullpic’])) ? $config[“baseurl”].’images/’.SmartStripSlashes($GLOBALS[“current_picture”][“path”]) : “#”;

and change it to read:

[code lang=”PHP”]function plogger_get_source_picture_url() {
global $config;
return (!empty($config[‘allow_fullpic’])) ? $config[“gallery_url”].’images/’.SmartStripSlashes($GLOBALS[“current_picture”][“path”]) : “#”;

Issue #2: This is not really an issue, but a tweak.  By default, the Plogger will display your Collection first, and then force the user to drill-down to see the albums contained in that Collection.  This is fine if you have many collections, but if you only have 1 collection, then it doesn’t make sense to force the user to drill-down to the album level.  To show the albums for a specific collection, make the following change:

Open ‘index.php’ or whichever page you are calling the Plogger from, and replace the third PHP “drop-in” statement with the following code. The Plogger-ID is the ID of the Collection you want to show the albums from.

[code lang=”PHP”]


Final note: The instructions do not explicitly state this, but the 3 PHP drop-in statements need to be added to a page with the .php extension.

Here is the Plogger Gallery that I made in action.