[ABD] User Attachment Quota 0.0.3

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

[ABD] User Attachment Quota 0.0.3

Post by alightner » Sat Aug 18, 2007 5:13 am

MOD Title: User Attachment Quota
MOD Version: 0.0.3
MOD Author: alightner
phpBB Version: RC7

MOD Description: This MOD will allow the admin to set the users' attachment quotas on a per group basis.

For example:
Members of group A can EACH upload X bytes of data.
Members of group B can EACH upload Y bytes of data.

If you have a user who is a member of both A and B,
(assuming Y > X) they would be able to upload Y bytes of data.

If you set the group's user attachment quota = 0, that means any member of that group will have unlimited attachment space (until the quota for the entire board's attachment space is reached).

By setting the quota on a per group basis - I'm hoping this mod could get used in conjunction with the AutoGroups Mod to let the user's quota naturally increase as they post more.

New in version 0.0.2: Also displays Disc Usage stats in the UCP under Overview->Manage attachments
New in version 0.0.3: 3 Installation Bug fixes and validated against RC7


MOD Download: http://www.elizabethford.com/phpbbMods/ ... _0_0_3.zip
Last Stable version: 0.0.3

Screenshots:
ACP Manage Group Settings
What the user sees if they try to exceed their quota
UCP display of Disc Usage
Demo Board: NA
Demo Username: NA
Demo Password: NA
Last edited by alightner on Tue Oct 30, 2007 12:23 am, edited 4 times in total.
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [DEV] User Attachment Quota

Post by alightner » Sat Aug 18, 2007 5:14 am

I have this mod working on a test RC4 forum, but I need to figure out how to package it up for distribution.

Hopefully that won't take too long ;)
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.1

Post by alightner » Sat Aug 18, 2007 1:31 pm

I've uploaded the mod along with some screenshots.

It's my first mod, so I hope I packaged it correctly ;)
Please let me know if you download and successfully install it.

Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [Beta] User Attachment Quota 0.0.1

Post by playerfr » Sat Aug 18, 2007 3:23 pm

This is very nice idea :) like this i can put unlimited quota to admins and Mods :D

Thanks :)
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.2

Post by alightner » Sat Aug 18, 2007 9:35 pm

I decided that since the user gets a message telling them to delete old attachments when they run out of space, I should give them info on how much space they have available in the UCP.

The latest mod version 0.0.2: Also displays Disc Usage stats in the UCP under Overview->Manage attachments
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

User avatar
playerfr
Registered User
Posts: 851
Joined: Fri Jul 18, 2003 9:50 am
Location: France - Paris

Re: [Beta] User Attachment Quota 0.0.2

Post by playerfr » Sun Aug 19, 2007 1:33 am

Thanks will going to install it is a great tool :)
All kind of help for your Forums / Sites. Installing for you the forum, the Mods, creating Custom Mods : for small fee http://www.phpbbhelpers.com

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.2

Post by alightner » Tue Aug 21, 2007 2:01 pm

Has anyone finished installing this yet? I would appreciated feedback.

Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

savva_papa
Registered User
Posts: 4
Joined: Mon Oct 29, 2007 5:46 am

Re: [Beta] User Attachment Quota 0.0.2

Post by savva_papa » Mon Oct 29, 2007 6:03 am

Hey,

When i try to alter the SQL database with this "ALTER TABLE `attachquota`.`phpbb_groups` ADD COLUMN `group_user_upload_size` INT(8) UNSIGNED NOT NULL DEFAULT 0 AFTER `group_legend`;"

I get the following error:
ERROR 1146 (42S02): Table 'attachquota.phpbb_groups' doesn't exist

I tried looking for a table called attachquota and i tried looking in the phpbb_groups for the attachquota subheading but i couldn't find anything.

I'm using phpbb 3.0.RC5

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.2

Post by alightner » Mon Oct 29, 2007 12:08 pm

Oops sorry about that it should have read:

Code: Select all

ALTER TABLE `phpbb_groups` ADD COLUMN `group_user_upload_size` INT(8) UNSIGNED NOT NULL DEFAULT 0 AFTER `group_legend`;
Thats why I was waiting for feedback - I'll upload the fix soon, but that should get you by in the mean time.
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

savva_papa
Registered User
Posts: 4
Joined: Mon Oct 29, 2007 5:46 am

Re: [Beta] User Attachment Quota 0.0.2

Post by savva_papa » Mon Oct 29, 2007 6:32 pm

Alright, i tried installing the mod, but it looks like i messed something up.

I am unable to post new messages and when i'm in the ACP under Board configuration i cant go to Attachments, i just get a blank page.

If you could let me know which file would cause these two issues, i'll double check that i put the code in correctly.

Also, i noticed a typo:

Open: includes/function_posting.php -function should have a "s" at the end.

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.2

Post by alightner » Mon Oct 29, 2007 6:54 pm

I'm not sure where your error lies without seeing your files. Can you place copies of the following files from your forum into a zip file where I could download them?
  • language/en/acp/groups.php,
  • adm/style/acp_groups.html,
  • includes/acp/acp_groups.php,
  • includes/function_posting.php,
  • includes/functions_user.php,
  • language/en/posting.php,
  • language/en/ucp.php,
  • styles/prosilver/template/ucp_attachments.html,
  • includes/ucp/ucp_attachments.php
Then I could compare your files with mine to see what's different.
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

savva_papa
Registered User
Posts: 4
Joined: Mon Oct 29, 2007 5:46 am

Re: [Beta] User Attachment Quota 0.0.2

Post by savva_papa » Mon Oct 29, 2007 7:29 pm


alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.2

Post by alightner » Mon Oct 29, 2007 7:47 pm

I found a typo in functions_posting.php:

Find:

Code: Select all

if( $existing_user_upload_size   $file->get('filesize') > $user_max_attachment_quota )
And change it to

Code: Select all

if( $existing_user_upload_size + $file->get('filesize') > $user_max_attachment_quota )
Not sure how or why the + sign got removed from the installation instructions.

I'll upload the updated mod installation instructions very soon!

Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

alightner
Registered User
Posts: 1118
Joined: Fri Mar 23, 2007 12:42 pm

Re: [Beta] User Attachment Quota 0.0.3

Post by alightner » Tue Oct 30, 2007 12:23 am

I've fixed all the bugs that savva_papa found in the installation process. This was my first mod, and feedback on how I packaged it up is/was appreciated. The latest zip file can be found here:
http://www.elizabethford.com/phpbbMods/ ... _0_0_3.zip

Thanks!
My phpbb3 mods:
Calendar
User Attachment Quota
Do not PM me with questions about my mods.
Support will only be given through the topic threads above.

Dr Hook
Registered User
Posts: 30
Joined: Fri Dec 07, 2007 7:06 pm

Re: [Beta] User Attachment Quota 0.0.3

Post by Dr Hook » Mon Dec 31, 2007 6:25 pm

Great mod! Very much needed.

Question: what will happen to user who have previously exceeded the set quota after the mod is installed? Also, any update on when this mod will be approved?

Locked

Return to “[3.0.x] Abandoned MODs”