coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Dr_Michael on August 29, 2005, 03:11:29 PM

Title: Uploading photos to public albums, does it affect the remaining space of user?
Post by: Dr_Michael on August 29, 2005, 03:11:29 PM
I did a search but didnt find any similar question. Please guide me if this have already answered.
I have setup my gallery so every registered member has 5 MB of space for his gallery.
But if somebody uploads to the public galleries, does it affect his available space? Can it be configured?
Thanx in advance.
Title: Re: Uploading photos to public albums, does it affect the remaining space of user?
Post by: Nibbler on August 29, 2005, 03:30:06 PM
It's user gallery space only.

include/picmgmt.inc.php

$result = db_query("SELECT sum(total_filesize) FROM {$CONFIG['TABLE_PICTURES']}, {$CONFIG['TABLE_ALBUMS']} WHERE  {$CONFIG['TABLE_PICTURES']}.aid = {$CONFIG['TABLE_ALBUMS']}.aid AND category = '" . (FIRST_USER_CAT + USER_ID) . "'");

You can try changing that to

$result = db_query("SELECT sum(total_filesize) FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = '" . USER_ID . "'");

(untested)