A Script to know how many Albums and Photos ?
sharukan
Joined: 2003-05-23
Posts: 14 |
Posted: Tue, 2003-05-27 17:06 |
Can someone, help me to make a script to know how many Albums and Photos I have in my Gallery |
|
Posts: 8194
This may be a pretty bad hack, but it would be fast. You could make a script to count the number of directories in your albums directory; that would be the number of albums. For the number of photos, count up all the photos in those directories (exclude ***.sized.***, ***.thumb.***, and ***.highlight.***).
Posts: 75
I believe there were two patches which sorta give added information with regards to number of albums, sub-albums and photos.
Check out the following
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=2317
http://sourceforge.net/tracker/index.php?func=detail&atid=307130&aid=652409&group_id=7130
or
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=2566&3
Posts: 18
I just figured this out (with help) last week in a post titled $numPhotos? nested albums counted as photos - not anymore!
I think you can link to it here (the links above did not work for me)
http://gallery.menalto.com/index.php?name=PNphpBB2&file=viewtopic&t=5992
hope this helps - LEN[/url][/b]
Posts: 75
I've updated the URLs -- I had them with the original phpBB_14 module instead of the newly upgraded PNphpBB2 name, and I tried to update them by hand. They should work now.