Mot-clé - phpDVDProfiler

Fil des billets - Fil des commentaires

lundi 7 août 2023

phpDVDProfiler version v_20230807

As I've had some issues reported lately for phpDVDProfiler (mainly compatibility issues with PHP 8.2), here's a new version of the software.

Here's what's been fixed:

  • fix: correctly display the favicon.ico and add icons for Android and Apple Touch (#41) (thanks John)
  • fix: gallery no longer has an internal error when called directly (#43)
  • fix: gallery displayed a warning from time to time
  • fix: warnings with PHP 8.2 (#44 and #45) (thanks Sebastian and Udo)

Watch out: the following PHP extensions are needed for phpDVDProfiler:

  • mysqli (used for database access)
  • mbstring (used for sanitizing filenames, and for converting dates from UTF-8 to windows-1252)
  • intl (used for the replacement of the deprecated strftime in PHP 8.1, and when sanitizing filenames)
  • gd2 (optional, but necessary if you want to correctly display the thumbnails in profiles and galleries)

If you're using the latest version of PHP 8.2, and use jpgraph for displaying statistics, I've noticed that the latest official jpgraph library (4.4.1) has some issue. If you encounter the same issue, you should switch to the jpgraph version from MiTo Team. It's not exactly a drop-in replacement for use with phpDVDProfiler. Here're the steps to make it work:

  • Download the latest release from https://github.com/mitoteam/jpgraph/releases
  • Extract the contents of the jpgraph-10.3.1/src/lib directory from the archive to the jpgraph/src folder of your installation.

You can download the archive either from this post, or from Github. As for comments, questions, and so on, I'd prefer if they're all done on Github.

Important information: I don't intend to do any kind of refactoring, developing new features, or anything else. This is just the basic needed work to make it compatible with newer versions of PHP.

dimanche 8 janvier 2023

phpDVDProfiler version v_20230108

After the previous release a week ago, I've been contacted by John who wanted two new features: mediatype banners in the galleries, and the ability to use pre-1970 release dates. When testing, we've also uncovered a few bugs (notably, there was no display when the collection is empty).

So here's a new version with those features and bug fixes:

  • new: the mediatype banner can now be forced to be displayed on every media (see AddBannerOnThumbnails in siteconfig.php)
  • new: support dates pre-1970 for release date, purchase date, ...
  • fix: better handling of DB connection problems
  • fix: don't count ignored profiles in added counter during collection update
  • fix: the interface wasn't displayed if the collection (or search result) was empty

If you want to use the new feature AddBannerOnThumbnails, there are a few manual steps to take every time you change this setting value:

  1. Change the value in the localsiteconfig.php (or siteconfig.php, but you really should copy it to localsiteconfig.php and use that instead).
  2. Do a complete import of your collection.
  3. Remove all images in the imagecache directory.

Watch out: the following PHP extensions are needed for phpDVDProfiler:

  • mysqli (used for database access)
  • mbstring (used for sanitizing filenames, and for converting dates from UTF-8 to windows-1252)
  • intl (used for the replacement of the deprecated strftime in PHP 8.1, and when sanitizing filenames)

You can download the archive either from this post, or from Github. As for comments, questions, and so on, I'd prefer if they're all done on Github.

Important information: I don't intend to do any kind of refactoring, developing new features, or anything else. This is just the basic needed work to make it compatible with newer versions of PHP.

lundi 2 janvier 2023

phpDVDProfiler version v_20230102

For the past three years, phpDVDProfiler has been running quite nicely on my website. I had to update once the code for PHP 7.4 compatibility (which I forgot to publish...) and recently Sebastian (sebk-666 on Github) opened a pull request for PHP 8.0 compatibility (many many thanks to him!).

So, it's about time to release new version I think, and I've even added a few more things in it:

  • support for PHP 7.4, 8.0 and 8.1
  • preliminary support for PHP 8.2
  • better quality images for the Swiss DVD age system

Watch out: due to the fact that PHP 8.1 has deprecated the strftime function, phpDVDProfile now needs the intl extension to be enabled on your PHP installation. If you encounter the error message "Fatal error: Uncaught Error: Class "IntlDateFormatter" not found", it means the extension is not enabled and you'll have to edit your php.ini file to do so.

You can download the archive either from this post, or from Github. As for comments, questions, and so on, I'd prefer if they're all done on Github.

Important information: I don't intend to do any kind of refactoring, developing new features, or anything else. This is just the basic needed work to make it compatible with newer versions of PHP.

jeudi 26 décembre 2019

phpDVDProfiler and PHP 7.2

For quite a few years, I've been happily using the phpDVDProfiler for displaying my DVD collection on this website. Alas, the software has been dead for some time, and wasn't fully working with newer versions of PHP. So, I took some time to make it work with PHP 7.2, and created a Github repository to publish my modifications.

You can download the archive either from this post, or from Github. As for comments, questions, and so on, I'd prefer if they're all done on Github.

Important information: I don't intend to do any kind of refactoring, developing new features, or anything else. This is just the basic needed work to make it compatible with newer versions of PHP.

Update 2020-01-30: A bit more digging in the code showed that some features were still broken, so trying to fix them:

  • add the display of dynamic range information (thanks Lowpro)
  • add 4K/UHD profiles and new features support to Pick-a-Flick
  • fix the Pick-a-Flick feature
  • fix the charset encoding in gallery and specific skins
  • remove support of MySQL 4.0 (MySQL 4.0's support has ended on December 2008... so more than ten years later, it's more than the right time to remove its support from phpDVDProfiler)

Update 2020-01-15: After a bug report from DJ Doena, a new version appears fixing the incremental update. Here's what's new in gory details:

  • add support of the Fr4me and Handle case types
  • fix fast incremental updates
  • fix the use of temporary tables in incremental updates and CleanCommon script
  • fix the French translation of the countries
  • fix the displayed flag for language Rumantsch
  • fix the RSS feed after our adding the support of 4K/UHD profiles
  • cleanup some small notices / bugs for better maintainability

Update 2020-01-07: A new version to start in the new year... and with the help of a new contributor, Gavin-John Noonan! Here's what's new:

  • add support for the 4K/UHD media format (thanks Gavin-John!)
  • fix the character set encoding in the "Watched Statistics" page
  • fix the database schema creation script for compatibility with MySQL 5.7
  • add support for MySQL 8
  • switch back to zip files for the "official" distribution as it was the format used before
  • fix small behind the scenes stuff for better code in the future

Update 2019-12-29: So I botched a few things... consequently, here's a new version:

  • Properly update the database schema
  • Correction and revamping of the method used to display the ratings logos
  • Fixed the display of boxsets in the cover gallery

This last point needs some more explanation: I've always been dissatisfied with the way ratings logos are displayed: in Switzerland, we have some accented characters in the name of the rating system, so it's always been difficult to get the proper file name for the ratings logos.[1] The revamping tries a few methods to transliterate the file name and remove all diacritics. If it can't find a matching file after transliteration, it'll still use the old format of file names.

Update 2019-12-28_b: Fixed the missing first two characters in the features list.

Update 2019-12-28: third day in a row with a new release:

  • Fix some SQL injections
  • Fix a PHP notice in the gallery
  • Remove some dead links from the navigation menu

Update 2019-12-27: a new version with the following features:

  • Support of the Auro-3D and DTS-X audio formats.
  • Support of the DVD Profiler 4 new disc features (Play All, D-Box, Cine-Chat, and MovieIQ).

These new disc features need a database schema upgrade. So if you want to display them, you need to update your schema via the schema_updater.sql script, or by completely recreating it with the schema.sql script.

Note

[1] Can we all agree that charset encodings are the bane of the software engineer?