Log in

View Full Version : Minimum Post Characters in Specific Forum


SirVault
04-07-2013, 03:14 PM
How can I change the minimum post characters for one specific forum only?

So say for the entire forum I have a minimum post character of 10. How would I make it a minimum of 3 for one specific forum?

Thanks.

Lynne
04-07-2013, 03:36 PM
Probably something like...

hook - fetch_foruminfo
if ($forumid == 'xxx')
{
$vbulletin->options['postminchars'] = 'yyy';
}

SirVault
04-07-2013, 08:09 PM
Probably something like...

hook - fetch_foruminfo
if ($forumid == 'xxx')
{
$vbulletin->options['postminchars'] = 'yyy';
}

Where's this go?

CoffeeLovesYou
04-08-2013, 02:16 AM
Make sure you have your Plugin/Products enabled in vB Options.
If you go, in the ACP, go to Products/Plugins and Add New Plugin. Make the name of it whatever you want (i.e. Minimum Chars for Forum ID xxx) and for the hook, set it to fetch_foruminfo in the dropdown box. Leave execution order how it is.
Paste that code Lynne provided into the plugin code.
For example, if you want ForumID 3 to have 5 min chars, the code will be:

if ($forumid == '3')
{
$vbulletin->options['postminchars'] = '5';
}

If you wanna do more than one forum, just keep adding them on.

i.e.

if ($forumid == '3')
{
$vbulletin->options['postminchars'] = '5';
}
if ($forumid == '32')
{
$vbulletin->options['postminchars'] = '1';
}

SirVault
04-09-2013, 05:43 PM
Thanks a bunch guys. :)