2012-07-25, 03:05 PM
Yeah, I didn't think of any of that. But I have a better solution. Undo the previous changes first.
Open the ./inc/datahandlers/post.php file in a text editor again.
Find:
Replace with:
Basically if the message is empty it takes you straight to a standard new reply page. Otherwise you're just taken to the preview page. That simulates the functionality you want right? You could probably get rid of the preview box if you don't want it, so that it's actually just a full editor.
Open the ./inc/datahandlers/post.php file in a text editor again.
Find:
// Do we even have a message at all?
if(my_strlen($post['message']) == 0)
{
$this->set_error("missing_message");
return false;
}
Replace with:
// Do we even have a message at all?
if(my_strlen($post['message']) == 0)
{
header("Location: ".$mybb->settings['bburl']."/newreply.php?tid=".$post['tid']);
return false;
}
Basically if the message is empty it takes you straight to a standard new reply page. Otherwise you're just taken to the preview page. That simulates the functionality you want right? You could probably get rid of the preview box if you don't want it, so that it's actually just a full editor.