Integration with member area of CMS

Started by windsurflove, January 05, 2010, 08:46:38 AM

Previous topic - Next topic

windsurflove

I have a CMS with a member area.  Members can log into this member area and access additional features.  When they log in, I would also like to log them into SMF, without requiring a separate login to SMF.  I do not want to use SMF's login form, but the CMS's login form.  I have already figured out a way to register new users both in the CMS and SMF simultaneously.

I have noted that the login mechanism for SMF is in Sources/LogInOut.php.  But it isn't well documented.

Can someone help me with this?  Has someone already done this?  Any other forum posts or links you can point me to?

Any help will be much appreciated ;)

Andre N

If you are using 1.1.x you can go to 'download'->'tools' and download the api for 1.1.x
Put the api file in your forum root, '/forum' probably
in your cms login file, require_once the api file
after the log in, call the smf_setLoginCookie and pass the variables it needs to it
then call smf_authenticateUser function and it vill check if the cookie info is correct and start the session
to find out what variables you need for the setLoginCookie function open the api file and check it out. Modify it as needed.
Repeat for any other functions you want to cause in SMF from your cms
"Every generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?"

Norv

To-do lists are for deferral. The more things you write down the later they're done... until you have 100s of lists of things you don't do.

File a security report | Developers' Blog | Bug Tracker


Also known as Norv on D* | Norv N. on G+ | Norv on Github

Advertisement: