How can I get the "upload date" to show on each photo? :-)

thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Tue, 2012-05-15 20:31

Hello,

For some reason I don't see the "upload date" for each individual photo in my gallery, and I can't figure out how to set it up. I don't see it in the available blocks or anything.

I've had this gallery for a very long time now, so it's possible I might have deleted the code or something and just don't remember. :S

I'd like the upload date to show on photos, but not on albums.

Can anyone offer me some advice?

Thank you so so much!

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Fri, 2012-05-18 15:58

If no one can help me show the upload date on each photo, is there an easier way for me to see the upload date for each photo?

For example, is there a way for me to increase the number of "Log entries" that display in the backend from 5 to, say, 300?

I just need to keep track of when items are uploaded.

Thank you so much! :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26107
Posted: Fri, 2012-05-18 17:20

Doesn't the about this photo module show this info?
If not it should not be that hard to add.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Fri, 2012-05-18 19:05

Thank you, floridave!

I have the about this photo module installed, but for some reason it lists every photo (both old and newly uploaded photos) as being from Wed, December 31st, 1969.

http://www.missmoeller.com/gallery/index.php/Graphic-Design/Me-Inc-Extra-Credit/Period-5/caroline

How might I fix this?

Thank you so much! :-)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26107
Posted: Fri, 2012-05-18 21:15

I suspect that those are not images from a camera that have EXIF data so it defaults to some value.
You could see if the http://codex.gallery2.org/Gallery3:Modules:editcreation or http://codex.gallery2.org/Gallery3:Modules:editcaptured
helps or not.
If not then you would have to edit the abou_this_photo module to show the date the item was added.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
thefluffyshrimp

Joined: 2007-02-25
Posts: 72
Posted: Fri, 2012-05-18 23:42

Thank you, floridave.

How can I edit the about_this_module to show the date the item was added?

Thank you so very much. :-)

 
jnash
jnash's picture

Joined: 2004-08-02
Posts: 669
Posted: Fri, 2012-05-18 23:43

It should be picking up the creation date if the photo has the appropriate exif tag. Can you confirm this? Also, can you confirm that the exif module is active?

If these two are indeed correct, then try rebuilding your exif info from admin->maintenance->tasks

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 26107
Posted: Sat, 2012-05-19 01:55

If the item does not have any exif info

This bit of code should be what you are after.
It might work in the block or you could just add it to the photo page.
<?= date('D j M Y', $item->created); ?>

You could add some code to the block and helper to show the date the item is added to Gallery. I'm not sure where created code is used. You'd have to look for it in the theme or modules code.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

 
lexoulu

Joined: 2012-05-18
Posts: 2
Posted: Sat, 2012-05-19 14:40
Quote:
, is there a way for me to increase the number of "Log entries" that display in the backend from 5 to, say, 300?

read http://gallery.menalto.com/node/90840

change find_all(5)
to find_all(300)

 
tempg

Joined: 2005-12-17
Posts: 1637
Posted: Thu, 2012-05-24 19:24

Seems like two separate issues.
I read OP's request for "date added" as meaning date uploaded into the gallery, not date captured (by the camera); if that's right, exif shouldn't matter. (And I'll have to do a test install, but I didn't think about_this_photo showed added/uploaded dates by default, but can be edited to do so.)
Am I missing something?