Примечание к релизу / Piwigo 2.0.0

pLoader, New theme "Sylvia", Privacy levels, NetInstall

2.0.0
Скачать Piwigo 2.0.0

Релиз от 15 Февраль 2009

md5sum

Project team is proud to announce the first release of the PhpWebGallery next generation: Piwigo 2.0.0. The wait has been long but the resulting gift worth it. The project name has changed from PhpWebGallery to Piwigo, mainly for following reasons: shorter, unique, no reference to programming language, keep PWG letters. The website has deeply changed, to become nice looking and attractive, we hope you enjoy. The default graphical theme follows piwigo.org website design. Many internal mecanisms have evolved.

User Features

pLoader

pLoader is a dedicated client for photo preparation and transfer, without using FTP:

pLoader shorcuts the synchronization process, so that photos are visible on your gallery as soon as transfered. Could it be easier?

Any user with the "administrator" level can use pLoader, so you may use Piwigo as a family photo gallery in an easy way.

Download pLoader for Windows® and for Ubuntu Linux.

Sylvia, new default graphical theme

New graphical theme Sylvia with dark gray background and pink flowers decoration. stripy has joined the team in 2008 and has worked on designing this new theme for Piwigo.

9 Languages

This time, we've collaborated with the translation community before releasing. As a consequence 9 languages are available directly in the first release of the branch (in alphabetical order): Deutsch (German), English, Español (Spanish), Français (French), Hrvatski (Croatian), Italiano (Italian), Nederlands (Dutch), Polski (Polish), Русский (Russian).

Many more will come in the next weeks and will be available in the extensions section of the website.

Simplified Synchronization Process

To make the synchronization process simpler, we have added a big button on the administration panel front page. This button avoid the reading of all options available in the synchronization screen, it's just the most common options.

Note: pLoader does not need the synchronization, but we have not removed the FTP upload + synchronization way of adding photos, it's an alternative.

Client Side Dynamic Features

We have introduced dynamic behaviors at client side level. To speak with technical language, we've implemented AJAX and Javascript techniques.

Public
Administration

Permissions on Each Photo

You can set permission for each photo independently of its category. Permissions on a photo uses a new privacy level mecanism. By default, there are 5 privacy levels : None, Contacts, Friends, Family, Admins. Each connected user has a privacy level set by the administrator of the gallery.

Friends will see all what a "contact" can see + photos with privacy level set to "Friends".

Privacy levels are a bit less powerful than groups for permission management at category level but they are much simpler and should be enough for a vast majority of webmasters.

For example, if photo "peter_wedding-0024.jpg" has "Family" privacy level, Peter (privacy level "Admins") will see it, Beth (privacy level "Family") will also see it but Mary (privacy level "Friends") won't see it.

Depending on their privacy level, 2 users may see more or less photos in the same category.

Permissions on each photo do not replace permissions on categories with groups. It's an addition. You can use only one of them or both. Depending on community feedback, we may adapt the permission management on one system or another.

Improved Slideshow

When you switch on slideshow on a photo selection, you get a new action bar. You can increase or decrease speed, switch on loop, go to first, go to previous, go to next, go to last, pause, resume.

Photo Manual Sort

Long time wait. This feature has been requested many times for so long. We have finally added it. Inside a category, you can manage the order of photos manually. You decide to have "peter_wedding-0023.jpg" before "peter_wedding-0018.jpg", whatever the photo addition date, the creation date, the name, the internal id...

For this first version, you have to set the rank by hand in a text field, but in the near future we plan to have a drag'n drop ordering interface on the web administration panel or/and in pLoader.

A menubar manager was added. We're talking about the menubar you see on the gallery main page with category tree, specials, menu, identification. You can hide some boxes and reorder them.

No need to modify templates. Your changes won't be lost during next upgrade.

Template Extensions

For a given page, picture.php for instance, you can replace the picture.tpl HTML template with a my_template.tpl, without duplicating the whole template.

It's another step in the customization tools Piwigo provides.

NetInstall

A new and simpler installation process is possible. Instead of:

  1. downloading the archive with all Piwigo files
  2. extract files
  3. upload them one by one on your web server

NetInstall proposes:

  1. download a single PHP script, piwigo-netinstall.php
  2. upload piwigo-netinstall.php on your web server
  3. open piwigo-netinstall.php on your web browser, it will download the archive directly from piwigo.org

This new method is an alternative and should make the installation simpler because you have much less files to deal with. Less transfer issues. Less access right issues.

Developer Features

Smarty as Template Engine

We have decided to switch from phpBB template engine (inspired by PHPLib) to Smarty. The advantages of Smarty are:

As the template gets more power, the PHP code becomes simpler, because many PHP code lines were used to manage what to display in templates. PHP code is now more "business" logic oriented.

Another nice advantage of Smarty, is its popularity. All over the world, many PHP developers know this template engine. We hope our choice will generate more contributions (on templates and template extensions) and new member in core team.

Distinct Templates on Public and Administration Sides

We have separated the template of the administration side from the public side. Now there is a single template "goto" for administration (and currently a single theme "roma"). The default template for public side is still "yoga".

goto/roma on administration side has the same look and feel than yoga/Sylvia on the public side. But any customization on yoga/Sylvia will have no effect on goto/roma.

The separation was implemented because webmasters often want to customize their public side of the gallery, but don't want the administration side to be impacted. The separation also makes the CSS stylesheets simpler, because the public side doesn't include CSS rules only useful for administration side.

UTF-8

Piwigo becomes full UTF-8. It means that we simplify the encoding management. Instead of managing one encoding for each language available, we have a single encoding, ie UTF-8, to manage all existing characters. On the same page, you can have comments in chinese, english, french and russian.

If your photo gallery is worldwide, your visitors will certainly set the interface language to their own language. With Extended Description plugin, you can have a category title in several languages. Now, interface and content can be language dependent.

PHP 5

Until now, we were keeping compatibility with PHP 4. PHP 5 has been considered as stable for 4 years and PHP 4 maintenance is now discontinued. All Linux distributions are providing PHP 5 (even Debian which always takes longer to propose new upstream versions). We have no reason to keep this compatibility, we can simplify the code and take advantage of modern PHP.

MySQL 5

Mainly due to encoding management, we have increased the MySQL version requirement from 3.23 to 5.0. Yes, PhpWebGallery 1.7 only requires a MySQL 3.23 to work. There should be no availability problem because MySQL 5 has considered as stable for 3 years now, and the current stable MySQL is 5.1 (but not available everywhere).

Add a Photo with Web API

pLoader was made possible because we have added a new web API method : pwg.images.add. pLoader is just a client for this method. With pwg.images.add, no more complex workflow to add photos (FTP + synchronization), just prepare your thumbnails (which is quite simple on client side in any programming language) and call pwg.images.add.

We hope that in the future, community will propose standalone scripts, plugins integrated to famous applications such as the Gimp, Lightroom, Aperture or digiKam. Happy coding :-) and don't hesitate to come and discuss on the forum.