MyBB Community Forums

Full Version: [HELP] How to make registration fail if a variable isn't met?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
As I am making a custom CAPTCHA mod, I need to know how I would make Registration fail if a PHP variable isn't met? Or maybe how to redirect to a new page where the code can be displayed afterwards? Thanks in advance.
Return an error("message", "title"); ?
where abouts would I place the code?
Where ? You're making the mod ... i don't know where you do the check for the variables. The most logical is when the member_do_register_start hook starts.
Oh, sorry. Doesn't matter. Found it.
You should probably learn about how MyBB is set up before you try making a mod, check through other plug-ins, check out how they are set up etc.
And how we check if a variable is set by the user in an form.
Could you recommend aplugin? Also a code bit which demonstrates variable setting/checking in a document. I might not need it, as the code I am using relies on a If/else statement.
recommend what? plug-in? Rolleyes
You could check out my plug-in list, I've got a few plug-ins. Other then that you'd have to find it yourself.