The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Queue Attachment when it's over max size...
I have a max attachment size of 1MB for my board, but occasionally someone wants to upload bigger stuff, and have to e-mail it to me to upload by ftp for download, which also means I get no 'live' download counts like I do through VB...
So is it possible to queue attachments over 1MB until I pass or refuse them? |
#2
|
||||
|
||||
Ok, first of all make your attachment limit higher, let's say 5MB. Now edit functions.php and replace this line:
Code:
$visible = iif($moderate,0,1); Code:
$visible = iif($moderate or $filesize>1048576,0,1); Now every attachment bigger than 1MB will go into moderation, and attachments bigger than 5MB won't be accepted. |
#3
|
||||
|
||||
Hey Chen, thx This will be really useful. BTW, could you please tale a look @ this thread? Sure you know how to do it
|
#4
|
||||
|
||||
wow - thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|