MyBB Community Forums

Full Version: Registration query
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where are the registration query which has all the MySQL query code syntax and all? Plus, where can I add custom MySQL syntax in the registration code?
I am not sure whether I understand you correctly. But registration is handled in member.php with action = register (preparation of the form) and action = do_register (after the form has been submitted).
But the SQL actions take place in other parts, like in inc/datahandlers/user.php.
Displaying the forms and stuff: member.php Lines 686-1292 (register): https://github.com/mybb/mybb/blob/featur...r.php#L686

Handling checking and validation, then insertion into DB (do_register): Lines 88-671: https://github.com/mybb/mybb/blob/featur...er.php#L88

https://github.com/mybb/mybb/blob/featur...s/user.php is where the UserDataHandler comes from. It's what will *actually* insert the user. A UserDataHandler is created in member.php near Line 88 (linked above).
Thanks you Josh H. for this precision. I have looked it, but, where is the QUERY (INSERT INTO...) ? I search this.

Thanks!