MyBB Community Forums

Full Version: Submit input submits multiple times
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So I've made a small modification to newthread.php that looks like

if($mybb->input['action'] == "do_newthread" && $mybb->request_method == "post") {
	
    //do stuff
    
}

The only problem now is that if I click submit really quickly when creating a thread I can submit multiple threads at once. Any ideas on how to safely fix this?
We need more context on the change really, have a look at what the code already does to stop duplicate threads and use that.
I fixed it