SMF Support > PostgreSQL and SQLite Support

Help with registration

<< < (2/2)

Snakeman:
Well,i did with registerMember,my register php is this:

--- Code: ---<?php
define('SMF', 1);
$regOptions = array(
'interface' => 'guest',
'username' => $_GET['isim'],
'email' => $_GET['email'],
'password' => $_GET['sifre'],
'password_check' => $_GET['sifre'],
'check_reserved_name' => true,
'check_password_strength' => false,
'check_email_ban' => false,
'send_welcome_email' => isset($_GET['emailPassword']) || empty($_GET['password']),
'require' => isset($_POST['emailActivate']) ? 'activation' : 'nothing',
'memberGroup' => empty($_GET['group']) || !allowedTo('manage_membergroups') ? 0 : (int) $_GET['group'],
);

require_once('forum/Sources/Subs-Members.php');
registerMember($regOptions);
?>

--- End code ---

But there is an error;

--- Code: ---Fatal error: Call to undefined function loadLanguage() in C:\inetpub\vhosts\element-samp.net\httpdocs\forum\Sources\Subs-Members.php on line 464

--- End code ---

emanuele:
Instead of:

--- Code: ---<?php
define('SMF', 1);
--- End code ---
use:

--- Code: ---<?php
require_once('/paht/to/smf/directory/SSI.php');
--- End code ---

Snakeman:
Done,it registers now. Thank you a lot,emanuele.

Navigation

[0] Message Index

[*] Previous page

Go to full version