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
thanks by advance

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Tue, 2003-05-27 17:09

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.***).

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Tue, 2003-05-27 21:40
 
Len

Joined: 2003-04-10
Posts: 18
Posted: Tue, 2003-05-27 23:14

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]

 
dodofreak
dodofreak's picture

Joined: 2002-12-09
Posts: 75
Posted: Wed, 2003-05-28 19:23

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.