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.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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)