The idea is to number the thumbnails for a quick reference. Of course it depends on the ordering, I guess like in the image view.
Here are the modifications (they are small).
1. Inserted a row in the cpg14x_config table. The field values for "name" and "value" are
display_picture_number 0
2. Added a line
array('Display file number below the thumbnail', 'display_picture_number', 1,'f=index.htm&as=admin_thumbnail_display_picture_number&ae=admin_thumbnail_display_picture_number_end'),
in lang/english.php, just before the line
array('Display file name below the thumbnail', 'display_filename', 1, 'f=index.htm&as=admin_thumbnail_display_filename&ae=admin_thumbnail_display_filename_end'), //cpg1.4
This should be added in the different lang files, if the feature gets its way in version 15 I can help with some of them (French, Greek, and some more).
3. Added
<a name="admin_thumbnail_display_picture_number"></a>
<h4>Display file number below the thumbnail</h4>
<p>Toggles the display of the file number below each thumbnail.</p>
<p class="small right_align">[cpg1.4.0 or better required]</p>
<a name="admin_thumbnail_display_picture_number_end"></a>
just before
<a name="admin_thumbnail_display_filename"></a>
<h4>Display the file name below the thumbnail</h4>
<p>Toggles the display of the file name below each thumbnail.</p>
<p class="small right_align">[cpg1.4.0 or better required]</p>
<a name="admin_thumbnail_display_filename_end"></a>
in docs/index.htm
If I got things right, these modifications settle the configuration part.
Now comes the "ugly part". I think I should do better (by passing variables) but I lost grip.
4. In the include/functions.inc.php , function display_thumbnails I added in the declaration part
global $displayed_page_number;
and just after it, in the statement part
$displayed_page_number=$page;
5. In the include/functions.inc.php, function build_caption
I added in the declaration part
global $displayed_page_number;
and just after the beginning of the statement part (in the foreach loop, very first statment),
that is just after
foreach ($rowset as $key => $row) {
$caption='';
I added the following lines
if ($CONFIG['display_picture_number']) {
$picture_number_in_page++;
$picture_number=$picture_number_in_page+($displayed_page_number-1)*$CONFIG[thumbcols]*$CONFIG['thumbrows'];
$caption .='<span class="thumb_filename">' . $picture_number . '</span>';
}
(I know, part of the calculation should be done outside the loop!)
Thats all (I hope!). Also, I am not 100% certain I did not introduce a mistake somewhere. If you wish I can send you the admin password of the gallery, but over a "private" channel, i.e. email. Mine is andreas.malaspinas@gmail.com