![]() |
|
zenlatest modifications (slimbox & sorting) - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: zenlatest modifications (slimbox & sorting) (/thread-2780.html) |
zenlatest modifications (slimbox & sorting) - tomc - 2008-04-30 Thought I'd share two modifications that I made the zenlatest wordpress plugin:
`
There I just changed "order by 'date'" to "order by 'id'" See it in action here: zenlatest modifications (slimbox & sorting) - jakobfriis - 2008-05-17 Good modification first of all, but i have a slight issue with your SQL modification. The modification will work just fine, but your description is not correct. As far as i can see from my database and from the system, the date field represents the date the image was added - not taken. But since the ID field is the primary key for the table, the modification will work perfectly. I will incorporate your SQL change into the next release, and if you have any other modifications i will be happy to add them also if they can be of general interest. zenlatest modifications (slimbox & sorting) - sbillard - 2008-05-17 The date field represents a best guess at when the image was taken. If there is an EXIF date taken field present, that is used. Otherwise the filemtime() of the image is used which most likely is when the image was uploaded. (It is the "last changed" time.) zenlatest modifications (slimbox & sorting) - jakobfriis - 2008-05-18 nice i must have been lucky that my pictures dont have exif data after i post process them. The change to sort by primary key is definatly in the next release. zenlatest modifications (slimbox & sorting) - jakobfriis - 2008-05-18 I have made release 1.2.3 containing Tomc's SQL modification. Slimbox option might be in next release. |