Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
IvanT Posted March 14, 2015 Posted March 14, 2015 Does IPB provide an interface for account registration? I want to tie in my website account registration with IPB, so when someone registers on my website, it'll also fire ipb_register_user($username, $password, ...) or perhaps provide a class that could be updated. If IPB doesn't have anything like this, then 1) is the 'members' table the only place I need to insert the user? and 2) how IPB hashes passwords? I'm using BCrypt but I recall IPB did something like md5(md5(password), salt).Thank you!Edit: I'm using IPB 3.4.x
IvanT Posted March 14, 2015 Author Posted March 14, 2015 Nevermind, I found what I was looking for. For anyone who might stumble upon this, what you want is IPSMember::create()
John 3:16 Posted March 14, 2015 Posted March 14, 2015 Ivan glad you got something going, I am looking for similar as I use ExpressEngine and want to register the same time the user signs up on my main website. I am using IPS4 so not sure the docs are ready to know how to do this just yet. If anyone is using IPS4 and has done this, please give me a hint.
John 3:16 Posted March 14, 2015 Posted March 14, 2015 I found this http://community.invisionpower.com/topic/407875-external-registration-login/?do=findComment&comment=2527641 but do I simply call this script and fill in the variables after they complete registration on my main site? Any help as I am not in the least bit a developer. Thanks!
John 3:16 Posted March 14, 2015 Posted March 14, 2015 Just tested that code out in IPS4 and it worked like champ!
John 3:16 Posted March 14, 2015 Posted March 14, 2015 Though I am still trying to figure out how to automatically login the new member after registration from an external form?
IvanT Posted March 15, 2015 Author Posted March 15, 2015 I'm not sure if this will help at all since you said you're not a developer, but what I would do (assuming 4.x is similar in this regard to 3.x) is add a custom session to the sessions table with the appropriate information when your user creates their account or logs on. Then, send the cookie back to the user, and IPB should recognize them as logged in.I'm sure IPB has some way to do this if you want to look through the source, but I don't really know much about that so I can't be of much help there. Sorry and good luck!
John 3:16 Posted March 15, 2015 Posted March 15, 2015 Thanks, yea not a dev at all, I hack the code and create the blackholes of the internet from them lol. I looked through the resources for hours and came up nada. Hopefully someone will take mercy on me
Recommended Posts
Archived
This topic is now archived and is closed to further replies.