2012-07-25, 03:19 PM
God dammit. Okay, I got it this time - I tried it myself. Undo everything.
Open newreply.php in a text editor.
Find:
Replace with:
Works exactly the same. But now it only does that if we're coming from the quick reply form. And then if you try to post an empty message it throws the error.
Open newreply.php in a text editor.
Find:
// Coming from quick reply? Set some defaults
if($mybb->input['method'] == "quickreply")
{
if($mybb->user['subscriptionmethod'] == 1)
{
$mybb->input['postoptions']['subscriptionmethod'] = "none";
}
else if($mybb->user['subscriptionmethod'] == 2)
{
$mybb->input['postoptions']['subscriptionmethod'] = "instant";
}
}
Replace with:
// Coming from quick reply? Set some defaults
if($mybb->input['method'] == "quickreply")
{
if($mybb->user['subscriptionmethod'] == 1)
{
$mybb->input['postoptions']['subscriptionmethod'] = "none";
}
else if($mybb->user['subscriptionmethod'] == 2)
{
$mybb->input['postoptions']['subscriptionmethod'] = "instant";
}
if(my_strlen($mybb->input['message']) == 0)
{
header("Location: ".$mybb->settings['bburl']."/newreply.php?tid=".$mybb->input['tid']);
return false;
}
}
Works exactly the same. But now it only does that if we're coming from the quick reply form. And then if you try to post an empty message it throws the error.