Page Index Toggle Pages: 1 [2] 
Topic Tools
Hot Topic (More than 10 Replies) File attachment size (Read 2,083 times)
Derek Barnstorm
Support Team
YaBB Next Team
Development Team
Beta Testers
****
Offline



Posts: 1,269
Location: United Kingdom

None
Re: File attachment size
Reply #1 - Apr 9th, 2012 at 3:51am
Post Tools
Hi again Merv,

For no limits, this should do the trick:

In Sources/Post.pl find:

Code (Perl)
Select All
            if ($limit && $filesize > (1024 * $limit)) { 


And replace with:

Code (Perl)
Select All
            if (!$iamadmin && $limit && $filesize > (1024 * $limit)) { 



« Last Edit: Apr 9th, 2012 at 3:53am by Derek Barnstorm »  
Back to top
 
IP Logged
 
westwegoman
Ex Member
**




None
File attachment size
Apr 9th, 2012 at 3:13am
Post Tools
If it is possible, how can I alter YaBB to still have attachment size limits for members but allow admins sizes to be larger or be unlimited.

Using 2.5AE

Thanks.
« Last Edit: Apr 9th, 2012 at 3:13am by WestwegoMan »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Topic Tools
 
  « Board Index ‹ Board  ^Top