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:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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)