MyBB Community Forums

Full Version: Validate new post data
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am stuck with this problem: I have added a new input field to the newreply template. Now I want to validate the input but I can't find the right hook for validation.

newreply_end, newreply_start and newreply, newreply_do_newreply_start/end don't work because the array $post_errors is overwritten and I cannot use the posthandler because I cannot access my input. So where can I validate my field?
I looked around a little bit, if I am not missing something really important there is no hook for this?? In this case I would strongly vote for a new hook placed between the lines $post = array() and $posthandler->validate_post()