Pages: 1 2
Hello/Hi/Greetings,
So, I'm continuing to work on migrating my G3 site to Piwi go, and in the import process and then the database import, I noticed that the dates of the albums didn't come over.
I'm not seeing a way to edit the creation date in the GUI, so I decided to look in the database and directly change each one of my *albums* dates.
For example, I have an album that says: This album contains 26 photos, added on Friday 15 August 2014.
I want to change that album to show... "added on Friday 15 August 2001"
What table should I be looking at? I see all my albums listed under the categories table, but there are no dates that I see.
I see in the images table where the images have the date created and the date available columns... but I don't see albums listed there.
Thank you :)
Last edited by SnotRocket (2014-08-23 07:24:45)
Offline
Hi
It uses the data of the contained photos
Offline
Hi SnotRocket,
If you used [extension by plg] Menalto2Piwigo, it should have set the "date added" correctly. From G3 I took the items.created column. Doesn't it match your need?
Offline
I did use the migration tool and most of the information seems to have come across. My view counts are there and proper, the dates of the images are all correct... but the folders are not.
What I'm having an issue with is the sort order.
I'd love for it to be sorted oldest to newest (or any order) - but no matter what I choose from the drop down (sort order icon), the order never changes.
I assume it's because all of the folders were created at the same time when I did my import from the "galleries" folder.
mistic100: I assume that you mean that it's taking the meta data from one of the pictures and then applies it to the main album and that date becomes the album date?
To give you an example: http://www.2000transam.com/gallery/inde … tegory/132
If you guys try to sort the order.. choose any sort method you want... the order never changes.
Interestingly enough.. even if I choose A-Z or Z-A.. or old to new, new to old.
The *pictures* get sorted... but not the albums.
Last edited by SnotRocket (2014-08-23 23:44:14)
Offline
Here's maybe an example of what I'm (also) having an issue with.
In the "My Family" album from above...
Album shows created on 16 August 2014
First image in the set shows:
It was created on 19 Dec 2011
...... How to I modify Piwigo / database to show that the folder was actually created on 19 Dec 2011 vs 16 Aug 2014.... so that the FOLDERS show oldest to newest or newest to oldest in my gallery?
Offline
So, I'd like to bump this since I've moved to 2.7 and thought that it might help with my issue.
2.7 didn't fix it.
So, I'm back to trying to figure out how to edit meta data for *albums*.
If all my *photos* within an album were created on (example) Jan 1 1950, my album is still showing a newer creation date of (example) May 1 2014.
This has broken my ability to sort my albums by date since ALL of my folders were created at the same date/time when I migrated from Gallery3.
How can I change an album creation date to either something that I manually choose, or if there is an automatic way to read the meta data date from an image within the folder and do a mass site update, that would work as well.
Thanks for any assistance :)
Offline
Any chance that a dev wants to look at my issue?
I'm actually willing to pay someone to fix this, as I'm sure (based on posts here) that others are also having the same issue.... every one of theirs has also gone unanswered.
I've been working in the database... copied date_creation to date_available in the image table - no change.
I looked at the categories table and referenced the representative_picture_id table to the images table to make sure that there was proper date information in the database...
My database is correct.
Just to clarify, in case I haven't... I fully manage my gallery via FTP. File and directory times are correct at the file system level as well as in the database...
Except I can't find where to edit "This album contains 27 photos, added on Wednesday 1 October 2014."
I'm wondering if I can edit that "Wednesday 1 October 2014" to the proper date, if that will correct my issue.
Mistic says that "It uses the data of the contained photos"....
Can someone be more specific - what contained photo? The album highlight? If that's the case... it's still not sorting based on that.
I would believe that a dev knows how or where to look for the reason rather than me beating my head against the wall trying to make it work.
Please, give it a shot yourself - http://thehouseofjohnson.net/gallery - try to sort... anything. Albums or photos.
Last edited by SnotRocket (2014-10-15 22:28:56)
Offline
Can I describe this any differently to get some assistance / someone to look at it?
Offline
Hello
it seems there is several things going one here
you migrated ; you see that the date_available (posted xxx) field is the date of migration and not the one from items.created field from G2 : but did you check if that items.created column was correctly filled in the database?
you say that you "fully manage my gallery via FTP" but those pictures are in /upload not in /galeries so how could you manage them?
"Except I can't find where to edit This album contains 27 photos, added on " since this date in the one the most recent date_available field of the pictrues in it, and since that date_available available is the one the migration, it's consistent
"I've been working in the database... copied date_creation to date_available in the image table - no change." this is where it sounds weird; are you sure that the edition page of those pictures still display 2014?
then if you want to change the album date, it's the lastmodified column you need to change in piwigo_categories. But this field is taken from the pictures inside, so it should be updated somehow -don't know the internal mechanic- if you change the date_available ; piwigo is optimized so it might be a cache or that field is updated when doing a sync
Offline
Thank you for replying flop.
Let me see if I can answer all of your questions and then describe what I've done vs what I expect to happen.
Issue 1:
Yes, I migrated. I then had issues (my issues) with my install and blew everything away. I took it upon myself and decided that I'd gamble that my import from G3 had failed and wasn't allowing me to sort. However, after a new install and sync, nothing had changed.
My current install is a ground up fresh install. All images were added via the galleries folder and then synced.
I do NOT use the uploads folder - at all... ever. Fully managed by FTP.
Issue 2:
Image dates and tables:
Here is the database that includes date_available and date_creation.
Here is the image properties in the gallery:
And the album properties:
Issue 2b (modifying the database to reflect date_created = date_available):
Yes...
So.. this is what I expect to happen... if I change the database on my specific album's highlighted thumbnail, I would expect that the whole album's date available would change.
I'm starting here, specifically for this post... This is an image in an album and it's the highlight:
Database before:
Database after:
Album properties after:
Yay! I'm able to (manually) change my database...
.... I've done all of this.... but now this is where my problem actually exists...
When I go to try and sort my albums from "guest" view...
I can change it any way I want.... any selection.
The albums are NEVER reordered, no matter what date is reflected on the albums.
It's hard for me to screen shot this... but you can try it out yourself...
http://thehouseofjohnson.net/gallery/in … tegory/350
Try to sort in any way you'd like.
Since that subfolder now has the oldest date in the album.. I would expect that if you sort by oldest to newest, that folder should be at the top.
This may help you find the image that we now know has the correct date on it...
further discussion:
I would like to know how to have piwigo, or even manually via SQL commands, modify all of my images to reflect the same date_created and date_available. I had done this already on my initial install, but I was still running into the same issue where sort wasn't working.
In my mind, that should allow all of the albums to have the correct date_created listed.. and then in theory that should allow my gallery to sort properly.
Except we can see from above that my albums aren't being sorted, even with the correct dates listed.
What else can I do, or what else can I look at?
Last edited by SnotRocket (2014-10-28 15:33:05)
Offline
So, I've already gone one step further.
I've done an "UPDATE piwigo_images SET lastmodified = date_creation" and "UPDATE piwigo_images SET date_available = date_creation"
Now, all 3 fields in the database show the exact same date. (date_available, date_creation and lastmodified)
Sort is still not working.
Now I'm looking at the piwigo_categories table.
"Lastmodified" is all showing my latest sync date (2014-10-15)
I don't see any "date creation" or anything similar in that part of the database.
Last edited by SnotRocket (2014-10-28 15:57:31)
Offline
try first to synch, then try to change piwigo_categories table.
that finally should work ; if not I'm beating my head against the wall wiht you
ps: so the thing which was not clear is that you did a re install in the mean time ; thx for the whole details ;
Offline
So, a bit further into my issues / documentation.
I have an astonishing number of files without exif dates.
This seems to be at least part of the root of my sort issue.
As I go in and fix my exif info, and then manually, do a sync within piwigo, then copy the date_creation to the date_available fields in the database... things start to work.
But ONLY if I go in as admin and force a sort on the albums and sub albums.
As a user... sort still doesn't work.
Maybe I'm now missing a setting somewhere in my setup that's forcing the admin sort, and not allowing the user to change the sort order?
Is such a feature/setting in piwigo?
Last edited by SnotRocket (2014-10-30 16:00:06)
Offline
the sorting order is:
- available for users registered or not, to sort pictures dynamically from the plublic part
- available for admin, on the admin side, to sort pictures by default
- available for admin, on the admin side, to sort albums by default
I'm afraid you've mistaken album ordering and pictures ordering since that theme is very ambiguous about "is it an album thumbnail or is it a picture thumbnail?"
Offline
Not sure that "mistake" is the proper word.
Album sorting, nor image sorting works properly on the user side. You, as a user, can see that.
What I expect to happen is this: As a user, I'm clicking the sort icon at the top of the page.. and selecting anything... any sort order. Let's say oldest to newest or newest to oldest.
I expect that albums would show at the top, and be sorted in my date order that I choose. I would then expect the images below the albums to also sort new to old, or old to new.
Basically what I expect is this:
Sorted Date - New to Old:
Album 1 | Album 2 | Album 3 | Album 4
Album 5 | Album 6 | Album 7 | Album 8
Image 1 | Image 2 | Image 3 | Image 4
Then, sorted old to new:
Album 8 | Album 7 | Album 6 | Album 5
Album 4 | Album 3 | Album 2 | Album 1
Image 4 | Image 3 | Image 2 | Image 1
I agree that the theme that I'm using isn't ideal at showing the differences between album and image... but regardless of that... when you sort/order.. nothing changes.
Automatic Album and image ordering by the admin console by forcing the sort order as an admin (new to old, old to new, whatever), seems to be working now that I'm fixing the EXIF info in my database.
Offline
Pages: 1 2