I came up with a solution that works for me, and so I'll present it as an option for the many seeking to display the EXIF date below the thumbnail.
I have the "Sort by EXIF" mod applied, and it works great. I noticed that when you run the mod, it extracts the EXIF date to the variable $pdate, and proceeds to write it to the database for each photo's "ptime". I noticed that it
also converts this date to a human-readable format to display as text on the "results" page that you see after running the function. That variable is called $newdate.
Well, showing the date below the thumbnails was more important to me than showing a title (I don't use the title field at present anyway). So I just altered the script to write the date to the 'title' field.
In util.php:
After:
$query = "UPDATE $picturetbl SET ptime='$pdate' WHERE pid='$pid' ";
MYSQL_QUERY($query);
I added:
$query = "UPDATE $picturetbl SET title='$newdate' WHERE pid='$pid' ";
MYSQL_QUERY($query);
A few lines above that, it defines the date format for $newdate. I altered this a little bit to be what I wanted:
$newdate = date('D, M jS Y \&\n\b\s\p\; g:i a', $pdate);
I have attached a screenshot crop of how it looks now. Works great if you value the date display over photos having a user-defined title. Hopefully someday a feature will be implemented into CPG so that a date display and title display could co-exist, but for now this is how I'm getting by.
Comments, please! I know next to nothing about PHP, SQL, etc. Is this an OK way of going about this?
Thanks!
[attachment deleted by admin]