News:

Wondering if this will always be free?  See why free is better.

Main Menu

SMF SSI Register User

Started by anonymous001, August 16, 2015, 03:12:40 PM

Previous topic - Next topic

anonymous001

Dear smf community;

Because the api of SMF seems to be buggy as hell, I tried to use the SSI. This works charmful, but there are too some problems.
When I try to use "admin" as interface I get redirected to login page of smf, when calling my script (seems like I need to be logged into), but that's no option, because my script should register user automatic.
When I use "guest" as interface, I can only register one user, spam protection blocks me when registering more user from the same IP.

code:

<?php

require_once('SSI.php');

require_once(
'Sources/Subs-Members.php');



       
$details = array(
               
'interface' => 'guest',
               
'username' => 'testeruser',
               
'email' => '[email protected]',
'password' => 'testtest',
'password_check' => 'testtest',
'require' => 'nothing',
       );

echo registerMember($details, true);


echo 'The user was created.';

?>


Any idea how to solve this problem?
And is there an easy way to login an user automatic? So after automatic registration of user, the correct "logged in" session should be set to the user and I would redirect him.

-All the best;

Kindred

once again, you seem to be misusing the system SSI is using SMF as the master system...

You really need to be using the API, which is correct for what you are trying to do.
I don't believe that the API is "buggy as hell" since several dozen people (at least) have implemented the API without issue.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

anonymous001


JBlaze

Jason Clemons
Former Team Member 2009 - 2012

Advertisement: