Dynamic Well-known member Mar 16, 2014 #1 Hello, Is there a way to stop the "Please enter a valid message" text giving an error without actually including anything in the post? Thanks.
Hello, Is there a way to stop the "Please enter a valid message" text giving an error without actually including anything in the post? Thanks.
R rdn Well-known member Mar 16, 2014 #2 Why should you create a thread without a content? :/ Upvote 0 Downvote
Dynamic Well-known member Mar 16, 2014 #3 Because I am not using my installation for a community to focus on discussion. The discussions are not as important. Upvote 0 Downvote
Because I am not using my installation for a community to focus on discussion. The discussions are not as important.
P Paul B XenForo moderator Staff member Mar 16, 2014 #4 Doesn't make much sense but do an empty quote or bb code. Upvote 0 Downvote
Dynamic Well-known member Mar 16, 2014 #5 Hi @Brogan, This would require the user to need to do this when creating the thread. I would much prefer it if the user need not add a single thing to the editor. Upvote 0 Downvote
Hi @Brogan, This would require the user to need to do this when creating the thread. I would much prefer it if the user need not add a single thing to the editor.
P Paul B XenForo moderator Staff member Mar 16, 2014 #6 You will need to either edit the code then, or develop an add-on to override the default functionality. Upvote 0 Downvote
You will need to either edit the code then, or develop an add-on to override the default functionality.
Dynamic Well-known member Mar 16, 2014 #7 Brogan said: You will need to either edit the code then, or develop an add-on to override the default functionality. Click to expand... Cool. Do you know where I would be able to find the code that says it needs something in there to post? Upvote 0 Downvote
Brogan said: You will need to either edit the code then, or develop an add-on to override the default functionality. Click to expand... Cool. Do you know where I would be able to find the code that says it needs something in there to post?
P Paul B XenForo moderator Staff member Mar 16, 2014 #8 A quick search for please_enter_valid_message results in two relevant hits in: library\XenForo\DataWriter\DiscussionMessage.php library\XenForo\DataWriter\DiscussionMessage\Post.php Upvote 0 Downvote
A quick search for please_enter_valid_message results in two relevant hits in: library\XenForo\DataWriter\DiscussionMessage.php library\XenForo\DataWriter\DiscussionMessage\Post.php
Dynamic Well-known member Mar 16, 2014 #10 Hi everyone, This one was easy. Thanks to @Brogan for pointing me to that file If anyone else wishes to do this, this is what I did. Open up library\XenForo\DataWriter\DiscussionMessage.php Find Code: 'message' => array('type' => self::TYPE_STRING, 'required' => true, Replace with Code: 'message' => array('type' => self::TYPE_STRING, 'required' => false, Upvote 0 Downvote
Hi everyone, This one was easy. Thanks to @Brogan for pointing me to that file If anyone else wishes to do this, this is what I did. Open up library\XenForo\DataWriter\DiscussionMessage.php Find Code: 'message' => array('type' => self::TYPE_STRING, 'required' => true, Replace with Code: 'message' => array('type' => self::TYPE_STRING, 'required' => false,