2012-05-17, 07:14 AM
Hello everyone,
I'd like to add myBB to my site, but the user base is decidedly not tech savvy. I would like to avoid at all costs forcing people to register new usernames and passwords to use the forum.
I've spent about an hour browsing through the myBB code and off the top of my head I see two possible methods for integrating the two login systems:
1) When users log in to the site system, I create an additional cookie for myBB that tricks it into thinking this person is already logged-in. As the domain is the same this would probably work with a bit of tweaking.
2) I replicate the series of myBB login function calls within my own login script, thereby simultaneously logging the user into both systems in one pass.
(Both approaches assume I've already run a script to dupe all relevant registered user data from my existing user table into myBB's mybb_user table.)
Before I dive in, I'd be grateful if any veterans could provide some insight into which would be a better strategy... or suggest an entirely new one.
Thank you for your time.
I'd like to add myBB to my site, but the user base is decidedly not tech savvy. I would like to avoid at all costs forcing people to register new usernames and passwords to use the forum.
I've spent about an hour browsing through the myBB code and off the top of my head I see two possible methods for integrating the two login systems:
1) When users log in to the site system, I create an additional cookie for myBB that tricks it into thinking this person is already logged-in. As the domain is the same this would probably work with a bit of tweaking.
2) I replicate the series of myBB login function calls within my own login script, thereby simultaneously logging the user into both systems in one pass.
(Both approaches assume I've already run a script to dupe all relevant registered user data from my existing user table into myBB's mybb_user table.)
Before I dive in, I'd be grateful if any veterans could provide some insight into which would be a better strategy... or suggest an entirely new one.
Thank you for your time.