Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Nick Whetstone on November 23, 2009, 11:38:07 AM

Title: Dual login/registration with Elgg?
Post by: Nick Whetstone on November 23, 2009, 11:38:07 AM
I'm trying to build a dual login/registration system with Elgg and SMF. I can't find out how to get the forms to submit and process through both login.php (elgg) and LogInOut.php (SMF). Could someone please point me in the right direction? If so, that would be awesome. Thank you
Title: Re: Dual login/registration with Elgg?
Post by: Arantor on November 23, 2009, 01:32:35 PM
Might help if we knew which version of SMF.
Title: Re: Dual login/registration with Elgg?
Post by: Nick Whetstone on November 23, 2009, 01:33:37 PM
Ahh, sorry about that. I'm using 2.0 RC2 with elgg 1.6
Title: Re: Dual login/registration with Elgg?
Post by: Arantor on November 23, 2009, 01:49:53 PM
I guess the other question is whether it runs both ways or only one way.

Can a user sign up on either and have it cross-registered, or is there only one registration area (either in Elgg only or SMF only)?
Title: Re: Dual login/registration with Elgg?
Post by: Nick Whetstone on November 23, 2009, 01:52:52 PM
Quote from: Arantor on November 23, 2009, 01:49:53 PM
I guess the other question is whether it runs both ways or only one way.

Can a user sign up on either and have it cross-registered, or is there only one registration area (either in Elgg only or SMF only)?
I'm planning to run the registration through the homepage, elgg, but I can use SMF's SSI.php instead if such a function (registration form) exists.
Title: Re: Dual login/registration with Elgg?
Post by: Arantor on November 23, 2009, 02:05:44 PM
There isn't a registration form in SSI.php for 2.0. There also isn't a stable API yet for 2.0 (for 1.1 there is both an SSI Register mod and the SMF API which has the ability to be inserted into your elgg code and called smf_registerMember to create the account, there are two different betas for 2.0 though)
Title: Re: Dual login/registration with Elgg?
Post by: Nick Whetstone on November 23, 2009, 02:30:56 PM
The betas for 2.0 haven't been released to the public yet, have they?
Title: Re: Dual login/registration with Elgg?
Post by: Arantor on November 23, 2009, 02:32:37 PM
Neither of the API betas have, no. One of them includes a great deal of SMF code (which IMHO makes it unsuitable for bridging to something like this), the other only includes two of the three DB backends and was only coded yesterday by me, needs much more testing to make sure it works as intended.
Title: Re: Dual login/registration with Elgg?
Post by: Nick Whetstone on November 23, 2009, 03:04:13 PM
Ok. I guess I shall wait until an API for 2.0 is released. Thanks for your time