I have performed an extensive re-write on this code based on some ideas from above. Mainly, I've included the pagenav functionality, as discussed by xware. Now, the default number of thumbnails per page will be 10, and if you have more than 10 members in your photo gallery, the pagenav feature will show up. You can change the default # per page, if you want, in the main_photogallery.php file; it's documented near the top.
xware, I'd be interested to see how you did it, just for comparison.
I've also added the letters function, as the built-in member list has, per the suggestion of Jakeman.
The new .ZIP file is attached to the original post above, but here is a shortcut:
https://vborg.vbsupport.ru/attachmen...&postid=205482