Hello!
A number of archived threads discuss sorting, and how it can use file's mtime or the creation date obtained from Exif. But how do I turn on the sorting at all?
I uploaded a bunch of photos at once (using the awesome "already on the server" method, with symbolic-links).
Unfortunately, the ordering of the album now appears to be by name (or, perhaps, it is the upload order, which was, in its turn, sorted by name). This leads to pictures from our two different cameras (which use slightly different naming patterns) to be mixed incorrectly.
How do I enforce the sorting by creation date/time? Preferably -- for the entire site, but per-album would work too. I don't see anything about "sorting" anywhere on the administrative pages
Thanks!
Gallery version (not just "2"):
PHP version (e.g. 5.1.6): 525
PHPInfo Link (see FAQ): http://aldan.algebra.com/gallery2/phpinfo.php
Webserver (e.g. Apache 1.3.33): 2.2.11
Database (e.g. MySql 5.0.32): PostgreSQL 8.2.11
Activated toolkits (e.g. NetPbm, GD): netpbm, gd, magick, etc.
Operating system (e.g. Linux): FreeBSD/amd64-7.1
Browser (e.g. Firefox 2.0): various
Posts: 25
A number of archived threads? You're telling me... I reckon I've got ALL of them open, but still could not get EXIF date sorting to work.
Then I figured it out for myself...
HERE is the answer -
Site Admin - Plugins -
Under "Extra Data" there is / should be a plugin called EXIF/IPTC
Activate that plugin.
Then go to your main gallery and click on Edit.
Click on the Album tab
Sort by - Choose Origination Date, Ascending, No presort in the three dropdown boxes, and click the box for "Apply to all subdomains".
Then go Site Admin - Maintenance -
Tick the box for Maintenance mode (seems to help me with 500 errors)
And beside "Refresh Capture Dates", click on Run Now.
When it's done, and you click on continue, you will see it reports
Looks like I have two images with no exif info embedded.
I noticed before turning EXIF plugin on, it said Updated 0 of 2949 items.
Once that is done, run Clear Template Cache in maintenance mode as well...
All fixed!
If you have some display fields turned on for displaying certain dates and this EXIF/IPTC plugin is mucking them up, maybe try deactivating the plugin after you have successfully run your sort.
I bet this reply saves a lot of people a lot of frustration - I have wasted hours on this, for what is likely to be a pretty straight-forward thing for people in the know.
And as for editing a TPL file, I don't even know what language that is!!
Tis all good fun though, great to seem my site coming together.
Cheers!
Adam - www.tasadam.com
Gallery URL = http://www.tasadam.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.9 cgi-fcgi
Webserver = Apache
Database = mysqli 5.0.67-userstats-log, lock.system=flock
Toolkits = ArchiveUpload, jpegtran, LinkItemToolkit, NetPBM, Thumbnail, Gd
Acceleration = none/0, none/0
Operating system = Linux rothstein 2.6.24.5-serf-xeon-c6.1-grsec #1 SMP Tue Oct 7 06:18:04 PDT 2008 x86_64
Default theme = gecko
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729)
Posts: 22888
Thanks for the tutorial.
Perhaps this should be added to the EXIF modules page? Care to help out with some documentation?
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 25
I would if (a) I had the time, and (b) I understood how this gallery thing fits together myself, but I only downloaded it a few days ago, and now I have my own problem...
But I'll keep the offer in mind.
Feel free to quote my reply wherever you need to.