Member
Member
saundstu   2010-03-24, 23:43
#1

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

Member
Member
kagutsuchi   2010-03-25, 00:23
#2

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

Member
Member
saundstu   2010-03-25, 21:44
#3

I have already tried that...

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

Member
Member
kagutsuchi   2010-03-25, 22:54
#4

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)

Member
Member
saundstu   2010-03-26, 21:48
#5

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

Administrator
Administrator
acrylian   2010-03-27, 10:53
#6

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.

Member
Member
saundstu   2010-03-27, 12:18
#7

"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

Administrator
Administrator
acrylian   2010-03-27, 12:21
#8

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.

Member
Member
saundstu   2010-03-27, 12:27
#9

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

Administrator
Administrator
acrylian   2010-03-27, 13:46
#10

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

Member
Member
saundstu   2010-03-27, 18:35
#11

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

Member
Member
sbillard   2010-03-27, 19:04
#12

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

Member
Member
saundstu   2010-03-27, 19:28
#13

You sir, are a star...

S

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