![]() |
Bypass attachment size for Admins
Can someone please help me make it so Admins can bypass the limit of attachment file size? I have it so Admins can bypass the size of avatars, but not the file size limit. The following code is what is in my functions.php right now:
Code:
code I have now: Code:
if ($maxattachsize!=0 and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6) { |
In your new code, Replace
if ($maxattachsize!=0 and $filesize>$maxattachsize) { AS if ($maxattachsize!=0 and $filesize>$maxattachsize and $bbuserinfo[usergroupid]!=6) { |
That's what I thought I should do, but I wanted to make sure before I messed with it. Thank you for the confirmation. :)
Quote:
|
Make sure $bbuserinfo is a global in that function, I'm not sure it is.
|
And how would I do that? :)
Quote:
|
Never mind, it is.
|
Ok, if you say so. :) (That question went way over me head, anyway. :)).
Quote:
|
All times are GMT. The time now is 10:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|