News

FEATURED

Zenphoto 1.4.6

General

  • New template functions getHeadTitle() / printHeadTitle() to for usage within/for the HTML page's head <title></title> [acrylian]
  • Improved 404 handling [sbillard]
  • imagick options to hint image sizes to better utilize server memory. [yaourt]
  • Various HTML validation issues on the backend corrected [acrylian, sbillard, sphoto]
  • New options for search pattern matching [sbillard]
  • Plugins may now "declare" deprecated functions. [sbillard]
  • Bulk options and edit links for images on the images order tab [sbillard, acrylian]
  • Backend pages now warn about possible unsaved data in forms if you try to leave a page [sbillard]
  • If you are using plugins with content macros that generate html, a conflict with TinyMCE's automatically wrapping everything using paragraphs could occur. Zenphoto now (...)

Lighttpd Rewrite Rules

Zenphoto rewrite rules for Lighttpd works similarly to NGINX rewrite rules. Most URL resources are passed directly to index.php for processing.

keyboardnav-extended

A Zenphoto plugin for keyboard navigation using the left/right arrows for gallery/album pages, single image pages,news index/categories and single news articles pages. On single image pages the up arrow key also takes back to the album.

Note: This only works correctly with themes following the standard theme structure.

Inspired by Laurent Marineau's plugin http://www.zenphoto.org/news/keyboard-plugin though no adaption.

3rd party plugin ThumbsZoom update for 1.4.6

Antonio Ranesi has updated his ThumbsZoom plugin to finally be compatible with Zenphoto 1.4.6.

Path constants

Zenphoto uses several path related constants internally you should always use these if you work with paths so your themes and plugins are safe for any possible name changes. These constants are defined in /zp-core/global-definitions.php.

For all URL's to actual items (albums, image, news and pages) you should rather use Zenphoto's object model framework or the related template functions.

ALBUMFOLDER
/albums/ – stores all albums and images. If you use a custom name it of course stores that name.
ALBUM_FOLDER_WEBPATH
http(s)://yourdomain.com/albums/ – full webpath to the /albums folder
ALBUM_FOLDER_SERVERPATH
/var/www/html/zenphoto/albums/ – The path to the albums folder but with the full server path if you installed in a subfolder "zenphoto" (exact path depends on the host)
BACKUPFOLDER
/backup/ – stores the database backup made with the backup utility
CACHEFOLDER
/cache/ – stores all the cached images
COMMON_FOLDER
(...)

New 3rd party theme "Paradigm"

A new responsive theme based on Bootstrap by Olivier Ffrenchhttp://www.zenphoto.org/theme/paradigm/index.jpg.html 

index

 

Blog post about moving from Gallery3 to Zenphoto

Our user Mark Headrick has written a lengthly post about his personal migration process to Zenphoto: http://blog.markheadrick.com/2014/08/15/galleries-moved-from-gallery-to-zenphoto-platform/

Translation tutorial in Polish (Third party)

A short two part tutorial in Polish covering theme based translation: 
http://www.bpabak.pl/motywy-2 

Scriptless socialsharing

A plugin that provides scriptless and privacy friendly sharing buttons for Facebook, Twitter, Google+, Pinterest, Linkedin and Xing. You can enable them on the plugin options.

To have it work correctly you should to enable the html_meta_tags plugin and the Open Graph (og:) meta data elements.

Zenphoto URL structure

Zenphoto has a specific URL structure for all front end items we explain here. We recommend to use mod_rewrite but Zenphoto works without it as well. The examples assume Zenphoto has been installed in the root of a domain.

Mod_rewrite links (SEO friendly)

The URL's are not completly rewritten via mod_rewrite/htaccess but internally. Therefore some parts can be changed via the rewriteToken plugin.

Gallery
Gallery index:
yourdomain.com
Gallery index, several pages:
yourdomain.com/page/<pagenumber>
Album (thumbnail page):
yourdomain.com/<albumname>/
Album, several pages:
yourdomain.com/<albumname>/page/<pagenumber>
Sub album (similar for more levels):
yourdomain.com/<albumname/subalbum>/
Image page (sized image):
yourdomain.com/<albumname>/<imagename.suffix><mod_rewrite suffix e.g .html (optional)>
Link to a tag:
yourdomain.com/page/search/tags/<tagname>
Date archive link:
yourdomain.com/page/archive/<YYYY-MM>
Static custom page:
(...)