5fyf Member Apr 28, 2014 #1 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
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
P Paul B XenForo moderator Staff member Apr 28, 2014 #2 That will require custom development/an add-on. Upvote 0 Downvote
5fyf Member Apr 28, 2014 #3 Thank you @Brogan what if I want to ignore it for all forums? Is it going to be any different? Upvote 0 Downvote
P Paul B XenForo moderator Staff member Apr 28, 2014 #4 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. Upvote 0 Downvote
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.
Mike XenForo developer Staff member Apr 28, 2014 #7 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. Upvote 0 Downvote
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.