News

Zenphoto's object model framework

This is a short tutorial about how to use Zenphoto's object model framework  that you for example can use to leave the standard theme way described on the  theming tutorial or to do other custom stuff.

Before reading this you should be familiar with Zenphoto themes in general and having read the theming tutorial. Also you should have quite some PHP knowledge and an understanding about how object orientation works.

Zenphoto's main classes

This is the general class structure:

  • Gallery: The gallery itself
  • PersistentObject: This is a very general and powerful abstract database persistence class. It defines types by table names and records by a set of unique fields (keys). To instantiate a new database based object in Zenphoto, all that's (...)

New plugin: flag_thumb_as_new

This new plugin lets you flag thumbnails on your site as new either using an image/icon or plain text CSS overlay. Although developed by the official team it will not be included in the official release package. You can download it on our extensions section.

Colorbox replaces Thickbox

Zenphoto used the jQuery Thickbox script as default "box" script for quite some time.  Since Thickbox has been abandoned by its developer and the coming Zenphoto 1.2.9 will feature the brand new jQuery 1.4 Thickbox will be replaced by the Colorbox script.

So if you use a customized standard theme and included the Thickbox script as often told by us from zp-core/js you should now update your theme to either use the Thickbox from elsewhere or the new Colorbox. The standard themes — especially the Zenpage theme — have already been updated for tonight's nightly build.

Zenonfly

A plugin for preloading images via JavaScript for faster single image view browsing.

Zenphoto 1.2.8

We're pleased to announce the release of Zenphoto 1.2.8. The changelog is the same as the Release Candidate a short time ago.

We recommend everyone upgrade to this release as soon as possible. As always, you can download it from the front page of zenphoto.org.

Hope everyone has a happy new year!

Zenphoto 1.2.8 RC

The first release candidate for Zenphoto 1.2.8 is now available for download and testing from our download page. Please note that we have taken down the official 1.2.7 release as we feel the RC is more stable. This mainly because of the recent quite major bug discovery.

Zenphoto 1.2.8 changelog

  • Major bugfix for accidentally deleted image descriptions when refreshing meta data [sbillard]
  • Search and tags for Zenpage pages and news articles [sbillard]
  • Plugins:
    • Image_album_statistics plugin: first image link option [acrylian]
  • Themes
    • Zenpage search support in Efferscence+ [sbillard]
    • Zenpage search and tags support in Zenpage-default [acrylian]
    • Lots of minor bugfixes and improvements

Workaround to prevent accidentally deleted image descriptions in 1.2.7!

It just has been discovered that under certain circumstances all of your image descriptions could be cleared if you refresh the meta data. This could happen if you have Exif/IPTC data in the image but not a description. The same applies to the title.

We therefore strongly advise anyone to backup the database before any update to 1.2.7 and before any meta data refresh. You could of course also try the nightly build where this issue has been fixed.

Since we are a small team we have only one developement stream that is under continous developement so that we can't provide a bugfix release inbetween. Sorry for the inconvenience and thanks for your understanding.

xmpMetadata

Enable this filter to scan images (or xmp sidecar files) for metadata.

Relevant metadata found will be incorporated into the image (or album object) see Adobe XMP Specification for xmp metadata description. This plugin attempts to map the xmp metadata to Zenphoto or IPTC fields.

If a sidecar file exists, it will take precedence (the image file will not be examined.) The sidecar file should reside in the same folder, have the same prefix name as the image (album), and the suffix .xmp. Thus, the sidecar for image.jpg would be named image.xmp.

NOTE: dynamic albums have an .alb suffix. Append .xmp to that name so that the dynamic album sidecar would be named album.alb.xmp.

There are two options for this plugin

  • The suffix of the metadata sidecar file
  • A list of image file suffixes that may contain metadata
Check each image type you wish the plugin to search within for an xmp block. These are disabled by default because scanning image files can (...)

flag_thumbnail

Use to overlay thumbnail images with icons depending on the state of the image.

Thumbnails may be flagged with the following icons:

  • : New—images whose date (or mtime) are within the selected "range" of the current day.
  • : Protected—images which are in a password protected album or because a parent album is password protected.
  • : Un-published—images that are marked as not visible.
  • : Geotagged—images which have latitude/longitude information in their metadata.

The icon with which the thumbnail is flagged is selectable by option. The above standard icons are provided as defaults. Additional icons can be used by placing them in the plugins/flag_thumbnail folder.