Member
Member
flu   2009-09-03, 14:51
#1

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 :

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.

Member
Member
sbillard   2009-09-03, 15:40
#2

Do you have an image in the album that is used for the thumbnail of the video?

Member
Member
flu   2009-09-03, 15:46
#3

Yes Stephen.

Member
Member
sbillard   2009-09-03, 16:22
#4

I would guess that the plugin is not handling this correctly. Acrylian will have to look into both things you mentioned.

Administrator
Administrator
acrylian   2009-09-03, 17:17
#5
  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.
Member
Member
flu   2009-09-07, 15:33
#6

I must admit that I had a look and that it doesn't appear really clearly to me

Administrator
Administrator
acrylian   2009-09-07, 16:23
#7

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.

Member
Member
flu   2009-09-13, 16:34
#8

This issue happened again.
Any ideas ?

Thank you for your time.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.