printLatestUpdatedAlbums strange behaviour

Hi,
I use the function printLatestUpdatedAlbums to display the last three updated albums on my home page and it worked fine but there are some things that I don't understand about it :

1. here http://www.zenphoto.org/documentation/plugins/_plugins---image_album_statistics.php.html#functionprintLatestUpdatedAlbums the function is discribed as "Prints the top voted albums". I presume that it's a mistake and that it should be "Prints the last updated albums", isn't it ?

2. Randomly, one of my subalbums (containing videos) appears in this list even if it wasn't updated at all recently.
I can correct it easily by clicking "refresh metadata for this album" but it will happen again and I don't know how to prevent it.
I've noticed that before refreshing the metadata of the album, the overview panel shows that I have 301 images in the gallery then after the refresh it shows 300 image.
I use this code :
<?php printLatestUpdatedAlbums(3, 'showtitle', '','','','','200','200','true'); ?>

Do you have any idea about it ? I hope that I'm clear.
I use zenphoto version 1.2.6 [4381], image_album_statistics v1.2.6 is on, PHP Version 5.2.8.

Thank you for your help.

Comments

  • Do you have an image in the album that is used for the thumbnail of the video?
  • Yes Stephen.
  • I would guess that the plugin is not handling this correctly. Acrylian will have to look into both things you mentioned.
  • acrylian Administrator, Developer
    1. That's indeed a copy&paste error.
    2. Might be possible that there is a bug. I am currently busy otherwise so if you like to take a look yourself meanwhile. The code is within `getAlbumStatistic()` starting line 53.
  • I must admit that I had a look and that it doesn't appear really clearly to me :)
  • acrylian Administrator, Developer
    Well, it works (or should work) this way in general:

    1. Gets all albums
    2. Gets the latest image from each album
    3. Sorts these array of the latest images by mtime

    Maybe we could get the albums itself by mtime, I am not sure currently how and when the album mtime value is added. This code has been there for quite a while now. I guess I will have to consult sbillard on that detail.
  • This issue happened again.
    Any ideas ?

    Thank you for your time.
Sign In or Register to comment.