NextGenGallery Image Count
-
Love NextGenGallery – using it on many sites. One request that I get from customers all of the time is “can you display the total number of images in each gallery?”
Now, this seems like a simple enough request for someone who maybe knows their stuff a little better than I. I have been able to achieve it, but I feel the way I am doing it is just sort of “hack-y” and I am looking for a more graceful solution.
As it stands now, without having to do multiple JOINs on multiple tables the only way I can get this to work it seems, is if I put an identifying word in each image description box for each image in the gallery, and then COUNT the images in the ngg_pictures table WHERE description = “whatever”
Obviously this is an unwieldy process when adding images to a gallery, having to either run an UPDATE query in phpMyAdmin or hand punch the info into each image in the gallery. Seems like a pretty simple thing to do – like I said, for someone more adept with PHP than I – so I was wondering if there is a solution that someone else has found that will return an image count for each corresponding gallery without too much fuss? Can this be a feature request?
- The topic ‘NextGenGallery Image Count’ is closed to new replies.