View Single Post
Old October 24th, 2005, 10:26 AM   #1 (permalink)
imported_ludachris
Member
Verified Customer
 
Join Date: Oct 2005
Posts: 23
Keep track of Photo count for each user (fixed)

In Photopost, we had modified the script slightly to keep track of each users' photo count. If they removed a photo, it decreased their photo count. When they addeda photo, it increased. This was done by adding a field called Photos in the User table to keep that number. Can someone tell me exactly how I would add the code to keep this function working? I found the spots in function_gallery.php where the postcount is increased and decreased. But I don't know exactly how I should go about modifying the code to keep track of both the post count and the photo count. Should I add queries or just modify the existing ones?

Also, with photopost, they gave us a script to run to get an accurate count of how many photos are in the database for each user. Sort of like a maintenance script. How would we do this with vBa Gallery? Since I'm assuming our photo counts will now be off since we're not counting them anymore.
imported_ludachris is offline