Topic: Showing total number of images in a gallery

Hi, I'm wondering if there is anyway to edit the gallery index page to display the total number of images in the gallery beside the gallery title.  Thank you.

Re: Showing total number of images in a gallery

I'm also having problem importing galleries containing photos with uppercase extension like .JPG, all the photos with uppercase extension will dissapear.
If I delete the gallery, change all the extension to lowercase .jpg, then import the gallery again, the problem is solved. But I'm wondering if there's a way to not have to change the uppercase .JPG and have the gallery successfully imported, as it takes a lot of time to change the extensions one by one.

Re: Showing total number of images in a gallery

I'm wondering if there is anyway to edit the gallery index page to display the total number of images in the gallery beside the gallery title.

It's surprisingly difficult to do that. The number of images is not stored anywhere so you would have to write some php code to look inside the gallery.xml file and count them. You could just edit the index.php file and add the numbers in manually but it would be a pain to update if the numbers change a lot.

importing galleries containing photos with uppercase extension like .JPG, all the photos with uppercase extension will dissapear

I'll look into that one and get back to you.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Showing total number of images in a gallery

SvManager treats image.jpg and image.JPG as two different files. At least that's what happens on my Linux/Apache test server – I can't speak for all servers. I ran some tests using a SimpleViewer gallery and I was able to use either – or even both in the same gallery!

The only place I ran into trouble was if the entry in the gallery.xml file did not correspond to the actual file name. Like imageURL="images/myimage.jpg" in the xml file and the actual image is called myimage.JPG. I could get around that one by simply rebuilding the gallery in the galleries screen.

So try rebuilding one of your galleries.

jack

Jack Hardie
SimpleViewer Support Team.

Re: Showing total number of images in a gallery

I have double checked and all the gallery.xml data correspond to the actual file names, as these were all previously working simpleviewer galleries before I installed svmanager.

I found that when I import an existing gallery into svmanager, all the files with upper case extensions are left out and was not written into the new gallery.xml file.
e.g. I had photos 1.JPG 2.JPG 3.jpg 4.JPG, the new gallery.xml file created would only have written the information for 3.jpg and not the rest, so obviously only 1 out of 4 picture appears.

I tried rebuilding but it didn't work, then I found the solution by simply reverting to the the old gallery.xml file the system backed up, and it worked.
Still puzzled about why it is doing that though, but since the solution is much easier than renaming every file, I consider it solved.

Thanks for all your help, I'm in love with these programs by the way.