vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Attachment Size on Usergroup (https://vborg.vbsupport.ru/showthread.php?t=68712)

gfxhavenowner 08-26-2004 12:31 AM

Attachment Size on Usergroup
 
Asked about this at VB.com, they said try here.

I'm looking for a hack that would allow me to configure custom upload sizes through the ACP. For example, I want to be able to upload files up to 10 meg, but I only want admins to be able to use this option. Any thoughts?

gfxhavenowner 08-26-2004 06:38 PM

I can't be the only person who would want this hack....

Bison 08-27-2004 03:24 AM

I'd like to have it, but I just don't have the time to create this hack. This would certainly become the *Hack of the Month*, easily...

Logikos 08-30-2004 03:05 AM

isn't there something like this allready in the acp?

Beermonster 08-30-2004 07:39 AM

Quote:

Originally Posted by Live Wire
isn't there something like this allready in the acp?

Isn't it Usergroup Manager/Attachment Permissions

kall 08-30-2004 11:05 AM

Quote:

Originally Posted by Beermonster
Isn't it Usergroup Manager/Attachment Permissions

He might be meaning 'per file/per usergroup attachment pemissions'.

At the moment, we can say that a jpg can be a maximum size, but it is a global thing, not configurable per usergroup.

It would be an ultra simple hack, if that was what he was asking for...

CarCdr 08-30-2004 12:16 PM

The maximum size allowable will be dictated by PHP, through the .ini settings for

upload_max_filesize
post_max_size

One could retrieve these values, take the minimum of the two, and call this the "max allowable size".

Then, in the function process_upload (functions_file.php), the line:

$maxattachsize = $attachtypes["$extension"]['size'];

could be changed to use this "max allowable size" for any upload if the user is a member of one the privileged groups.

Logikos 08-30-2004 07:23 PM

Either way, like Log sad. Would have tyo own a dedicated server to do this.

kall 08-30-2004 07:26 PM

Quote:

Originally Posted by Live Wire
Either way, like Log sad. Would have tyo own a dedicated server to do this.

Err...what? Who said what where?

(Also, I am intrigued by your banner...what is Wed Design?)


All times are GMT. The time now is 03:18 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01190 seconds
  • Memory Usage 1,724KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete