I don't. Very few people will follow through on what I've shared here. Those that do aren't in the same space as me. While we live in a MyBB bubble, the chances of one of my users ever seeing a site using the ideas I've shared here are worse than winning the lottery -- especially since my forum is in such an extreme niche and I have no hopes of recruiting members here. This is just a small way to give back to a community that I have taken a lot from.
I meant to give an update on this, sorry. Functions almost 100% OK, but if you try to submit a blank post on the quickreply form, you get a hanging ajax loader.
(2012-07-25, 03:19 PM)Fábio Maia Wrote: God dammit. Okay, I got it this time - I tried it myself. Undo everything.
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.
I meant to give an update on this, sorry. Functions almost 100% OK, but if you try to submit a blank post on the quickreply form, you get a hanging ajax loader.