Registering on website for 2 databases (external+SMF)?

Started by Kyba, March 25, 2015, 02:02:06 PM

Previous topic - Next topic

Kyba

Hi folks!

I need some help here.
Main idea: I have a working register.php that inserts the data into a specific database. What I want is that on this registration page the people have the option of registering onto the SMF forums. Is there a way I could do it?

I'm not very familiar with the API stuff, but I added these lines into my register.php:
  require_once('SmfRestClient.php');
  $secretKey = '-';
$api = new SmfRestClient($secretKey);


What's next?

-the email provided could be the email sent to both databases. Same goes for username and for password. If that's not doable, it would be also great to just have an extra registration form below the main one for the SMF forum (on the same page though).

Thanks!
Kyba

margarett

Hi

You don't need the REST API if your site and SMF are on the same server ;) Use the other one ;)

The API has a register member function. Just use it with the data provided in your form and that's it :)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: