Uploading photos to public albums, does it affect the remaining space of user? Uploading photos to public albums, does it affect the remaining space of user?
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Uploading photos to public albums, does it affect the remaining space of user?

Started by Dr_Michael, August 29, 2005, 03:11:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dr_Michael

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.

Nibbler

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)