The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
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']) { $show['attachoption'] = false; } Code:
if (is_member_of($bbuserinfo, '6')) { $vboptions['attachlimit'] = 8; } |
#3
|
|||
|
|||
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 :-/ |
#4
|
|||
|
|||
Anyone else have input on this?
|
#5
|
|||
|
|||
Any help?
|
#6
|
|||
|
|||
Still looking for this
|
#7
|
|||
|
|||
still no one huh?
|
#8
|
|||
|
|||
bump still would like this feature!
|
#9
|
|||
|
|||
Anyone have ANY clue?
|
#10
|
|||
|
|||
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). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|