![]() |
attachment limit per usergroup
just as the title states, is this out or can this be made?
Would like the admins on my site to be able to add more attachments per post then members. Thanks |
The maximum number of attachments per post is a site-wide number, as I am sure you know.
To conditionalize it on usergroups, such that a special usergroup was allowed X attachments while everyone else got the AdminCP site-wide limit, would require you to change the script newattachment.php. In vb 3 and variants, find this code: Code:
if ($attachcount >= $vboptions['attachlimit'] AND $vboptions['attachlimit']) Code:
if (is_member_of($bbuserinfo, '6')) { |
just tried it...i tried to up more then 3(thats what my board is set at) and i get this message:
You may only attach up to 3 files per post :-/ |
Anyone else have input on this?
|
Any help?
|
Still looking for this
|
still no one huh?
|
bump still would like this feature!
|
Anyone have ANY clue?
|
Actually, I see now that one needs to make the change I suggested at the top of the script. In newattachment.php, around line 50, you'll find this:
if (!$bbuserinfo['userid']) // Guests can not post attachments { print_no_permission(); } AFTER this code, add the code I suggested: if (is_member_of($bbuserinfo, '6')) { $vboptions['attachlimit'] = 8; } using the usergroup you need (I used '6' here) and the attachment limit you want (I used 8). |
CarCdr, YES!!!! thanks so much!!! ok one more thing maybe you can help with....i have my members set to only 3 per post....but i want admins and mods to have more...is there a way we can add more browse boxes for the admins and mods who are allowed to upload then three at a time? catch my drift?
thanks alot for the help! |
Quote:
This is the easiest thing to do, but it is not that nice. To change the appearance for usergroups 6 and 7 (for example) to, say, 8 input boxes, put this at the top of the file just after or before the previous mod: if (is_member_of($bbuserinfo, '8') OR is_member_of($bbuserinfo, '9')) { $vboptions['attachboxcount'] = 8; } |
Perfect CarCdr, thanks alot for the help, thats all i needed :-D
|
Is this modification compatible with 3.6.x (preferably 3.6.8)
|
All times are GMT. The time now is 07:36 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|