Zenphoto 1.6.3 June 04, 2024
Content
This is a bugfix update.
Developer Note
We couldn't test PHP 8.3 yet but according to the documentation we believe Zenphoto should be compatible.
General
- AVIF image support for GD (PHP 8.1+) and Imagick graphic libraries if the server configuration supports it [acrylian, fretzl]
- Fix ExifOrientation value not properly being fetched on manual image rotations [acyrlian, fretzl]
- Fix admin thumb images not having width and height attributes [acrylian]
- Fix and improve album breadcrumb sometimes returning an "empty" parent for toplevel abums [acrylian]
- Fix searchEngine classs query incompatibility with MySQL 8 [acrylian – Thanks to Mazurki and Kuzzzma]
- Login form of the authority class now uses proper required field attributes [acrylian]
- The admin user form for new users sets user name and email now as required [acrylian]
- Image meta data:
- The quite old Exifer library has been removed in favor of PHP's native exif_read_data() [acrylian – Thanks to JesseHC, Kuzzzma, RolandTi]
- Move logic sorting out of meta data fields not enabled and/or set for display to the image class itself. [acrylian]
- The backend now lists all enabled meta data fields that have values regardless if set for display for better control. Also the backend now displays the date without time zone [acrylian]
- Improvement of converting linefeeds to <br> on description import [acrylian – Thanks to JesseHC]
- Proper display of datetime, date and time metadata fields [acrylian – Thanks to JesseHC]
Changes to date and time formatting options
The date format options have been changed. Additional to the date format selectors, the time format selector now also has a "custom" option. The time cannot be set to "none" anymore. The time can be disabled for standard date functions via a new checkbox option. While fixing image metadata date display (see above) we figured we always need separate defined date and time formats instead of a combined one.
Since the "preferred date" options basically doubled selectable formats anyway and as combined datetime custom formats conflicts a little with the separate options they have been removed. If still set previously they will still work but throw a deprecation notice in the debug log. Support for these formats will be completely removed in Zenphoto 1.7.
This also results in changes with the formerly used general DATE_FORMAT constant and additional format constants have been added:
- DATE_FORMAT: Despite the name this could confusingly be a date or datetime format or a preffered localized format (technically also only a time…). This is now consistently always the date format only as the name suggests.
- TIME_FORMAT (new): Always holds the defined time format
- DATETIME_FORMAT (new): Always holds the date and time format combined
- DATETIME_DISPLAYFORMAT (new): Use this when you formerly used DATE_FORMAT. This has the date and time format as defined and also removes the time if disabled for display via the new option. All standard template functions have been updated to use the new constant. Developers of custom themes and plugins using the DATE_FORMAT constant directly may need to update their code.
Themes
- basic, garland, zenpage: Updates for contact_form plugin changes [acrylian]
- zenpage: Although actually marked as deprecated general support for the now included featured_image plugin added as a demo for custom theme authors [acrylian]
New plugins
- featured_image: Former "half official" plugin now included. Be sure to remove it from the /plugins folder before updating. While it internally there have been some changes it is still compatible with the old plugin. The only change is that only real image (photo) formats are allowed for selection now. [acrylian]
- Maxspace support added to template functions
- New template functions for default thumb sizes
Plugin updates
- cacheManager: Register all admin image sizes [acrylian – Thanks to JesseHC]
- class-video:
- fix missing argument defaults in getCustomImage() method to match other custom image function [acrylian]
- getID3 1.9.23 update
- comment_form:
- Uses required attribute for required fields now, some new functions to streamline the form code a bit [acrylian]
- Option to enable form autocomplete and also autocomplete token suggestions for input elements [acrylian, kuzzzma]
- contact_form:
- Form now properly uses the native required attribute for required fields [acrylian]
- Proper input types for phone and email fields [acrylian]
- All procedural functions have been deprecated and moved to a new contactForm class. Most methods use the same name but some have been renamed. [acrylian]
- Option to enable form autocomplete and also autocomplete token suggestions for input elements [acrylian, kuzzzma]
- If you use a custom form you should review the official contact form template and update yours accordingly.
- favoritesHandler: Fix db query incompatibility with MySQL 8 [acrylian]
- html_meta_tags:
- Consistently use sized image instead of thumb version [acrylian – Thanks to JesseHC]
- Option introduced in 1.6.2 to allow indexing of paginated pages reworked/renamed to explicitly disallowing it (from opt-in to opt-out) They are now by default allowed for indexing (again) as Google and other search engines nowadays very well do index paginated pages. The value set on disalowing also is now "noindex,follow" [acrylian – Thanks to JesseHC and kuzzzma]
- Since it internally changed and you used the option before you may need to set it properly again.
- Also further options to disallow indexing for search/search results and some usually known static custom pages have been added. [acrylian]
- openStreetMap: Change default map zoom option value to 13 instead of 4 being zoomed out too far. NOTE: This only applies to first time plugin activation, existing values are not changed. [acrylian – Thanks to JesseHC]
- register_user_form: proper attributes for required fields added [acrylian]
- scriptless-socialsharing: Update icon for X formerly know as Twitter (Note the class name change), .eot icon font format removed [acrylian]
- sitemap-extended:
- Use full thumb image for videos in image/video sitemap if full image option is set [acrylian – Thanks to JesseHC]
- Fix wrong time display on admin sitemap list [acrylian – Thanks to kuzzzma]
Deprecated plugins
All classes, methods and functions of plugins being deprecated completely are now deprecated conistently via docblocs. These don't throw individual deprecation notices because the whole plugin is deprecated.
Also some plugins that were listed as deprecated in the 1.6.2 release post are now correctly marked as deprecated on the backend.
- zenphoto_sendmail: The phpMailer plugin incorporates a sendmail option which should be used instead. This plugin now throws a deprecation notice about that
Translations
- Dutch (fretzl)
- French (rolandti)
- German (acrylian)
- Italian (bic)
- Russian (kuzzzma)
- Spanish and Argentinian Spanish (guirala)
For questions and comments please use the forum or discuss on the social networks.