Making a custom error if a condition is met before submitting a thread?
I am totally new to Vanilla Forums and im moving from MyBB. I want to make a plugin (Which I have half done in MyBB) which allows you to set a bounty for your question which gets taken out your wallet (which is something else il be developing for it). What I need to do is, make sure the user has enough credits to set a bounty. So before the thread is submitted, I need to do a check to see if the user has enough credits to set that much bounty, if so, continue. If not, send the user back and tell them to set a lower bounty.
Im capible of doing all of that in PHP, I just need to know what I would need to do to stop a thread from being submitted.
Any ideas on what hook id need to use and how id stop the thread submission?