0 Members and 1 Guest are viewing this topic.
$sql=$Db1->query("UPDATE stats SET new_members=new_members+1 WHERE date='$today_date'");
// smf api $username = $_POST['uUsername'];$email = $_POST['uEmail']; $passwd = $_POST['uPassword'];require_once("forum/smf_1-1_api.php"); smf_registerMember($username, $email, $passwd, $extra_fields = array(), $theme_options = array()); // api end
header("Location: setcookies.php?".iif(isset($returnTo),"view=$returnTo","view=account&ac=main")."".iif("$id","&id=$id").iif($ptype,"&ptype=$ptype").iif($step,"&step=$step")."".iif(isset($ac),"&ac=$ac")."&sid=$sessid&sid2=$sessid2&siduid=$userid");
// smf api include_once ("forum/smf_1-1_api.php");$cookiename = $smf_settings['cookiename'];$username = $form_user;$password = $form_pwd;unset($_COOKIE[$cookiename]);smf_setLoginCookie(3600, $username, $password, $encrypted = false);smf_authenticateUser(); // smf api end
$Db1->sql_close();
include_once ("forum/smf_1-1_api.php");$cookiename = $smf_settings['cookiename'];$username = $_POST['username'];$password = $_POST['password'];setcookie($cookiename);smf_setLoginCookie(3600, $username, $password, $encrypted = false);smf_authenticateUser();
Thanks and after adding it how to integrate database members join site can automatic login to forum?
Hello , are you sure you uploaded smf api inside your forum folder ? also this is for smf 1.1x wont work on smf 2 versions as mentioned in topic
How can i install SMF 1.1.x by Softaculous
is there any cost of it such as maintenance in SMF forum?