vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Super moderators ignore attachment size (https://vborg.vbsupport.ru/showthread.php?t=56501)

mli 08-26-2003 05:45 PM

Super moderators ignore attachment size
 
Is there a hack out there to set it so super mods don't have to abide by the max attachment size? I would like moderators to completely ignore that max attachment size value and attach as big of files as they want.

Logician 08-27-2003 09:18 AM

not tested but should work:

edit functions.php, find:
PHP Code:

 if ($maxattachsize!=and $filesize>$maxattachsize) { 

REplace it as:
PHP Code:

 if ($maxattachsize!=and $filesize>$maxattachsize AND ($bbuserinfo[usergroupid]!=AND $bbuserinfo[usergroupid]!=5)) { 

find:
PHP Code:

global $safeupload,$tmppath$allowduplicates$allowimgsizefailure

and replace it as:
PHP Code:

global $safeupload,$tmppath$allowduplicates$allowimgsizefailure;
global 
$bbuserinfo

However please note that this still wont give mods or admins to upload attachmetns with unlimited sizes. There are PHP/MYSQL restrictions set in the PHP/MYSQL options in your server and you can not exceed these restrictions with coding in your scripts. Your host needs to change such settings to disable them.


All times are GMT. The time now is 10:31 PM.

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.01000 seconds
  • Memory Usage 1,711KB
  • 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
  • (4)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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