zenphoto forums » General Zenphoto Discussion

modified image updating gallery

(13 posts)
  • Started 3 years ago by saundstu
  • Latest reply from saundstu
  1. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    Hi.

    Is there any way to set the system so that if a user modifies a single image ( changes description, edits thumbnail etc ) the album containing that image becomes the first album in the gallery display?...

    cheers

    Posted 3 years ago #
  2. Zenphoto support team
    kagutsuchi

    Assistant developer
    Joined: Aug '09
    Posts: 514

    If you set the sorting to mtime (meaning last modified time) it should show the images in the order that they were last modified.

    Posted 3 years ago #
  3. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    I have already tried that...

    Is there anyway to set the gallery order to display the most recent modified album?

    Posted 3 years ago #
  4. Zenphoto support team
    kagutsuchi

    Assistant developer
    Joined: Aug '09
    Posts: 514

    Are you using filemtime under Options->Gallery? That should change the order of the albums to what you describe.

    If that fails, you can use the functions of the image_album_statistics plugin to achieve what you want. (http://www.zenphoto.org/documentation/plugins/_zp-extensions---image_album_statistics.php.html)

    Posted 3 years ago #
  5. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    I have tried filemtime and every other database field.

    It update the gallery once and thats it!...

    image_album_statistics does what i need, However now I have lost the ability to select the next page in the gallery...

    Must be doing something very wrong.

    S

    Posted 3 years ago #
  6. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,490

    If you set to filemtime the gallery order of course does not change until there is a change.

    The image_album_statisticcs plugin is not meant to replace the normal album/image loops, it is for displaying the "x images or album" of the given setting. So there is of course no pagination.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  7. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    "If you set to filemtime the gallery order of course does not change until there is a change."

    I realise that... I have several different user accounts whilst we are testing... The gallery order updates once after filemtime is selected. subsequent uploads by different users have no effect.

    Its gonna be something simple I am missing :)

    S

    Posted 3 years ago #
  8. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,490

    Did you try to refresh the database (button on the admin overview). That forces Zenphoto to check the filesystem with the database as Zenphoto is filesystem based.

    There is also a sortorder for subalbums in an album on each album admin page.

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  9. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    Tried refreshing the database... It updates the fields in the db tables but does not update the gallery...

    We have it set so you have a main gallery and within that each user has one album they can upload to... only admin can create subalbums...

    image_album_statistics worked straight out of the box and updated as it should but we need the pagination as well...

    S

    Posted 3 years ago #
  10. Zenphoto development team
    acrylian

    Developer
    Joined: Jul '07
    Posts: 13,490

    Have you tried to set the subalbum sortorder within those albums?

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  11. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    Went away and had a rethink about the whole site design.

    The problem is now sorted.

    However... when you use a custom index page "as per Gallery index page link in options/theme" how do you set logout to reference that page?

    S

    Posted 3 years ago #
  12. Zenphoto development team
    sbillard

    Chief Developer
    Joined: May '07
    Posts: 9,818

    Logout returns you to the page you were on when the logout occurred. If you want to direct somewhere else, you would have to cause your logout form to set that "location" as query parameters. See particularly lines 159-167 of auth_zp.php

    Don't forget to read the Forum rules and usage resources
    Posted 3 years ago #
  13. saundstu

    Member
    Joined: Mar '10
    Posts: 22

    You sir, are a star...

    S

    Posted 3 years ago #

RSS feed for this topic

Reply

You must log in to post.