XF 1.3 Eliminate the required minimum characters for creating a thread.

5fyf

Member
As the title suggest,

I want to eliminate or ignore the requirement of at least X characters in the message when a user creates a thread in one of the forums on my site.

Thank you
 
You would need to modify the code in:
library\XenForo\DataWriter\DiscussionMessage.php
library\XenForo\DataWriter\DiscussionMessage\Post.php

Code:
'message'                => array('type' => self::TYPE_STRING, 'required' => true,

Changing the true to false will do it for all forums but I wouldn't recommend editing the php files as any changes are wiped out when upgrading.

Hence why you need an add-on.
 
Wait, there's no X character requirement, unless you mean X = 1 in which case @Brogan's comment is correct (we require some text). If there's a higher character requirement, that would be from an add-on.
 
Back
Top Bottom