Background Manager version 0.9.3 released

on January 14, 2012 in WordPress with 1 comment by

An update to Background Manager (0.9.3) has been released today, which adds support for a user-defined background opacity. In combination with the background color, this will allow the user to set a “brightness” of the background, without having to edit any of the images.

The update also addresses an issue where background overrides, either on a page, post or a custom post type, would not be honored if the plugin was set to select a random image at each browser session. It would remember only the first random image, regardless whether the current viewed post or pages used a different image set.

An attempt has been made to address the issue with overlays, but will need to be verified by those who experienced it as I was unable to reproduce the issue on several servers. Thanks to the input of those who reported the issue, I was able to narrow it down to the function, but the actual cause still wasn’t clear. There have been several changes to this function, which will hopefully eliminate the problem.

On the technical side of the problem, PHP really does not have a good method to obtain MIME-types. Several methods exist, but each has their draw backs. The one used in Background Manager, or rather its framework Pf4wp, is the fileinfo class and a deprecated fall-back mime-content-type. The mime-content-type has now been removed, and the use of fileinfo class encapsulated in a silent try..catch block as it has been the source of unexpected behavior in the past. Additionally, it now favors the use of the file command, provided it is available to the operating system (*NIX) and is executable by PHP. A quick Google search reveals that the Holy Grail of MIME-type detection with PHP is still being sought, but I welcome any suggestions.

Furthermore, the update also changes how the preview is displayed from the Settings page, and adds an additional footer on the same page with some helpful links, including a debug page to help diagnose any potential future issues.

One comment

  1. tom
    posted on May 31, 2013 at 4:25 PM  |  reply

    Great plugin- I am using the Woo mystile theme and want to display the slider on the ‘full width’ page in the dropdown option in pages but it does not show images. If I use the default page in the dropdown it displays the images OK. Any help to display on full width would be appreciated

Join the discussion

Your email address will not be published. Required fields are marked *