Plogger has a two-level hierarchical organization. The two basic containers — "Collections" and "Albums" — are the building blocks you will use to create your gallery. To put it simply, "Collections" contain "Albums" and "Albums" contain your photographs. In order to have a complete gallery you need one collection and one album at a minimum. When using the Plogger Administrative Tools to create your gallery, navigate the hierarchy in much the same way you would navigate the Windows file system. Click the name of your created collection in order to navigate deeper into the hierarchy. Once you click the collection's name you will be able to create albums inside that collection.
Create a "Collection" by placing a name and description in the "Add Collection" dialogue. The name will be displayed in your gallery underneath the thumbnail. Although the description is entirely optional, putting text in the description attribute will help you identify collections as well as occupying the "tool-tip" text of thumbnails in your gallery (through the IMG title attribute). Similarly, the album descriptions will appear as "tool-tips" for the album thumbnails when browsing a collection.
Plogger contains quite a few options to customize the way your gallery works. First of all, gallery thumbnails can be configured to any size you specify. You may be wondering why you need to specify the height for the small thumbnails and the width for the large thumbnails. Once given a particular height, Plogger will automatically scale the picture thumbnails and determine the appropriate width based on the dimensions of the original photo. Making the height of all your gallery thumbnails the same ensures that thumbnail rows will all align properly and the thumbnail containers will flow linearly into your container. Since the large thumbnail is displayed by itself on the page, Plogger accepts the width only so that you can get the large-view thumbnail to fit horizontally into your container. If you are using the square-thumbnails feature, you specify the width for both the large thumbnails and the small thumbnails.
If you don't like the recursive download feature — you can turn it off.
If you don't like user's to be able to comment on your pictures — you can turn it off.
If you don't want to have the auto-print link added to your individual pictures — you can turn it off.
All of these things are configurable through the "Options" tab.
A couple of words about the recursive download feature. Plogger will automatically generate compressed packages of collections, albums or individual pictures and serve them up to the browser. For example, consider the situation in which you have two collections named "Travel" and "People". If someone browsing your gallery checks both collections and clicks "Download Selected", the server will recurse through both collections, recurse through all albums within those collections, and generate a compressed package containing all the pictures it can find. Inside the package the directory structure of the compressed files will mirror the hierarchical relationships you have embedded in your gallery. Plogger supports cruft-free URL's through the use of Apache's mod_rewrite module. In order to utilize this feature, you must have a file named .htaccess in your plogger root directory with write permissions on. Once you check this option in your options tab, Plogger will generate a set of rewrite rules and save them in this file.
Plogger offers you two options in getting images into your gallery. The first option is located on the "Upload" tab and allows you to upload individual photos to your gallery through a web based form. The second option — called "Import" — allows you too move files in large groups into your database.
To utilize the "Import" feature you will need to establish an FTP connection with your web server. If you are not comfortable with FTP then you will have to upload images individually from the "Upload" tab, a very slow process. Quite simply, upload as many image files as you want into the /uploads/
directory on your web server. Plogger also allows for uploading images within subdirectories. Once uploaded, you can manage each subdirectory seperately or all together. Once you click the "Import" tab, Plogger will scan the /uploads/
directory for valid image files and display a list of them with their thumbnails, captions, and destination. Plogger will physically move your images out of the /uploads/
directory and into the /images/
directory, as well as making the necessary database entries automatically.
Plogger's "Import" feature also allows you to create directories within the /uploads/
directory to making working with large groups of pictures much easier. Experiment with creating directories one or two levels deep, Plogger will automatically determine which album you are attempting to import to by analyzing the folder names.
You may have a site in which you simply want to "drop-in" a Plogger gallery to a specific page. Plogger is designed to make this as simple as possible with a total of three lines of PHP needed to get it to work properly. The easiest way to make a custom template is to simply edit the index.php file we have setup for you as an example in the Plogger root directory.
First thing, your file MUST have a PHP extension. This file must be processed through the PHP interpreter in order to be dynamic. The second important thing is to require the necessary file — gallery.php
— into your page. To do this, include this line:
<?php include("gallery.php"); ?>
Important: You must place this code on the very first line of your template file or else you will receive "headers already sent" errors.
Inside the quotes should be the relative path to this specific file. Be sure that your gallery template resides in the same directory as gallery.php
or else the following function calls will not resolve the CSS paths properly.
Next, you must include a PHP statement within the HEAD section of your HTML. Simply place the following function call anywhere in between the opening and closing HEAD tags in your document:
<?php the_gallery_head(); ?>
This function is necessary to bring in the gallery.css
file link as well as an included javascript file used in some of the dynamic features of the gallery.
The final and most important line of PHP to integrate your gallery is the following:
<?php the_gallery(); ?>
It's as simple as that. Place this statement anywhere you want your gallery to appear on the page. You should notice that the gallery produces a CSS unordered list with display:inline attributes. This makes the thumbnails automatically flow to fill the container in which they reside. Changing the thumbnail sizes will result in the gallery automatically reflowing to accommodate it's new parameters.
That's it! Your gallery can be viewed at http://www.yoursite.com/plogger/ (or whatever you decide to name the directory) and your administrative tools are at http://www.yoursite.com/plogger/admin
Plogger Beta 2 has some exciting new features dealing with Really Simple Syndication and the ability for users to subscribe to your photo feeds. Plogger automatically generates four levels of RSS feeds, the RSS link on your gallery will change depending on what your user is viewing. The top level contains an "all-encompassing" RSS feed which will keep your viewers up-to-date on any and all changes to make to a gallery. Additionally, your viewers can subscribe to individual collections or albums depending on thier interests. The most unique feature of Plogger RSS generation is the ability to subscribe to custom search terms. If the user performs a search on your gallery, in addition to the returned results they will also recieve a custom RSS subscription link for those search terms.
To subscribe to Plogger content, simply right click on the RSS link (small blue RSS buttom) and save the link to the clipboard. Paste this link into your favorite news reader and you will be good to go.
There are four settings in the Plogger options menu that allow you to change how Plogger RSS is generated. You can change how many items are allowed in each feed, the language of the feed, and the size of the thumbnails to show in the feed. Try subscribing to your own content to get a feel for how these settings effect the output of your RSS feed.