The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
I have a group of forums (about 10) I would like to limit the max character limit for posting to be something less that what the other forums on the board are. Currently VB options only allows you to set a universal board setting that affects all forums.
Can this be done be inserting a conditional somewhere and adding the forums in question into an array for that conditional? |
|
#2
|
|||
|
|||
|
Quote:
Code:
global $forumid, $vbulletin;
if (in_array($forumid, array(1, 2, 3))) // change 1, 2, 3 to your list of forum ids
{
$vbulletin->options['postmaxchars'] = X; // change X to new char limit
}
|
|
#3
|
||||
|
||||
|
Get this error:
Quote:
|
|
#4
|
|||
|
|||
|
Oh, yeah, sorry. I was thinking about is_member_of() which works like that. Anyway, I fixed the code above.
|
|
#5
|
||||
|
||||
|
Works great, thanks!
|
![]() |
|
|